{"name":"@originjs/vite-plugin-commonjs","version":"1.0.0-beta6","keywords":["vite-plugin","commonjs"],"author":{"name":"jiawulin@vip.qq.com"},"license":"MulanPSL2","_id":"@originjs/vite-plugin-commonjs@1.0.0-beta6","maintainers":[{"name":"jiawulin","email":"jiawulin@vip.qq.com"},{"name":"peteralfredlee","email":"peteralfredlee@gmail.com"},{"name":"yuangongji","email":"yuangongji@foxmail.com"}],"homepage":"https://github.com/originjs/vite-pluginst#readme","bugs":{"url":"https://github.com/originjs/vite-plugins/issues"},"dist":{"shasum":"b687c6f8bad96df7dc89f4ee8852854eccbbc3fb","tarball":"http://registry-npm.ywwl.com/@originjs/vite-plugin-commonjs/download/@originjs/vite-plugin-commonjs-1.0.0-beta6.tgz","fileCount":12,"integrity":"sha512-2Ke5MhQRVLYR+aY2L0jbkIoMXtMTbnuXAEvAJicB0B3VFqWuLiv8sdVOEN2+01a9gfcJrUkT5gClpMUcQpSH7w==","signatures":[{"sig":"MEUCIQD6Mm8f+e5zucn0+1Aln2tyBetQWIgfns2n6Ta1D/tzgwIgZJXiJwtKcSPk3MnsgvjRWFT79+kNjxscxGmcPAW3toI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22493,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1DxwCRA9TVsSAnZWagAAI68P/3BQVl+sHZSgh0TW4CU+\n3GEgwBNI/CPFSEq4bYc66svhlbujq74cvmdtpyFBGB3lKQPGR1OzkSl5gG/B\ndmBDB9TQ7VN7rWQCuG5k8QbG61GKoq0P8bwEA/UhopaXpyEl4IEd5xn02188\nftER9WHasDaUvcjM7aUNnpTbd9iIChOr+QGQuzUA5oVBtwAKa8LeQb0MenwL\nru448UgmGNoqfJQUM5gpFyQsO4Mj+fR7NwwNb0EyWPPY6cPZuudQWip8xds5\ngoXyWKFZvcb7h5u6tYHtAJO7jbG2JlL6O49N/H8gD6z8fx5y5nWT1sb49PHk\ndfJ74wqpQeYce7v/yJ3MhuxMPv6ESehUrBp1FjzaPtFKsXVBmKYcaqFz9VkU\nkNgbyQihfQhfxJWltSblHhN64I+Jwj2GlnA0JHTbudpL4mFWAf48oK2bhjDz\nvpxX8f9p62QZ3wA0FtNTalCl3mo0cNg73pBav2dDuo/8chDKkUnofXiQ1vL6\nI0VUFS0ocfd7W1LeQNOoVKvmPEcsDm6Aq3/vVVn+EIcpKOMFKfxBUmo4f+Jr\nxtVBFcvU3xPBg5kndCRuC5+DZBV3jkw7QKRMjfdaH9dody0UG73dcbtYXh5d\nT5ey6CPFUOeZkMJXp2PfElGCEiNOd6Ef9yvh0KRawkgY9iu4e2Mvv3ly9WAq\n0GPZ\r\n=uK3b\r\n-----END PGP SIGNATURE-----\r\n","size":8351,"noattachment":false,"key":"/@originjs/vite-plugin-commonjs/-/@originjs/vite-plugin-commonjs-1.0.0-beta6.tgz"},"main":"lib/index.js","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"jiawulin","email":"jiawulin@vip.qq.com"},"repository":{"url":"git+https://github.com/originjs/vite-plugins.git","type":"git"},"_npmVersion":"6.14.13","description":"A vite plugin that support commonjs to esm in vite","directories":{},"_nodeVersion":"14.17.0","dependencies":{"esbuild":"^0.12.6"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^2.3.6","typescript":"^4.3.2","@types/node":"^15.12.2"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-commonjs_1.0.0-beta6_1624521840477_0.7528620306593257","host":"s3://npm-registry-packages"},"readme":"# vite-plugin-commonjs\r\n\r\nSupport commonJS to esm in `vite`\r\n\r\n## Install\r\n```shell\r\nnpm install @originjs/vite-plugin-commonjs --save-dev\r\n```\r\nor\r\n```shell\r\nyarn add @originjs/vite-plugin-commonjs --dev\r\n```\r\n\r\n## Usage\r\n```js\r\nimport { viteCommonjs } from '@originjs/vite-plugin-commonjs'\r\n\r\nexport default {\r\n    plugins: [\r\n        viteCommonjs()\r\n    ]\r\n}\r\n```\r\n\r\n#### Options\r\n\r\n- `exclude: string[]`\r\n  Dependencies to exclude from transform.\r\n\r\n-  `include: string[]`\r\n  Dependencies that only need to be transform.\r\n\r\n### CommonJS module in node_modules\r\n```js\r\nimport { esbuildCommonjs } from '@originjs/vite-plugin-commonjs'\r\n\r\nexport default {\r\n    optimizeDeps:{\r\n    esbuildOptions:{\r\n      plugins:[\r\n        esbuildCommonjs(['react-calendar','react-date-picker']) \r\n      ]\r\n    }\r\n  }\r\n}\r\n```\r\n#### Options\r\n\r\n- `include: string[]`\r\n  Dependent modules need to be transform.\r\n","publish_time":1624521840630,"_cnpm_publish_time":1624521840630,"dist-tags":{"latest":"1.0.3"}}