{"_id":"@aleen42/vite-plugin-webpackchunkname","name":"@aleen42/vite-plugin-webpackchunkname","dist-tags":{"latest":"0.2.2-beta.0"},"versions":{"0.2.2-beta.0":{"name":"@aleen42/vite-plugin-webpackchunkname","version":"0.2.2-beta.0","description":"A webpackChunkName plugin for Vite.","main":"dist/vite-plugin-webpackchunkname.js","types":"dist/index.d.ts","scripts":{"build":"rollup -c rollup.config.ts","test":"jest --no-cache --detectOpenHandles","lint":"eslint src --ext .js,.ts","format":"prettier --write ."},"repository":{"type":"git","url":"git+https://github.com/CaptainLiao/vite-plugin-webpackchunkname.git"},"keywords":["vite plugin","vite webpackchunkname","rollup webpackChunkName","manualChunks"],"author":{"name":"CaptainLiao"},"license":"MIT","dependencies":{"@rollup/plugin-alias":"^3.1.9","@rollup/pluginutils":"^4.2.0","es-module-lexer":"^0.10.0","magic-string":"^0.26.1"},"devDependencies":{"@types/jest":"^27.4.1","@types/node":"^17.0.21","eslint":"^8.10.0","jest":"^27.5.1","lint-staged":"^12.3.5","prettier":"^2.5.1","rollup":"^2.75.6","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.31.2","ts-jest":"^27.1.3","ts-node":"^10.7.0","tslib":"^2.3.1","typescript":"^4.6.2","vite":"*","yorkie":"^2.0.0"},"peerDependencies":{"@rollup/plugin-alias":"*","rollup":"^2.67.2","vite":"*"},"gitHooks":{"pre-commit":"lint-staged","commit-msg":"node script/verifyCommit.js"},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["prettier --parser=typescript --write"]},"gitHead":"abd09389c79fed2d427f90138de0e279eac27214","bugs":{"url":"https://github.com/CaptainLiao/vite-plugin-webpackchunkname/issues"},"homepage":"https://github.com/CaptainLiao/vite-plugin-webpackchunkname#readme","_id":"@aleen42/vite-plugin-webpackchunkname@0.2.2-beta.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-5Vixm6KmFH2+YEB01MOOFMAPVJbcfMjy2oL/kG6z7YuNeyum4KIQZx3tfvfC7zkdBoD8ILNrB4Nw5oAKLg3khA==","shasum":"eb2b0f4f341ddd35dfecc11ed00d40adb05ba37a","tarball":"https://registry.npmjs.org/@aleen42/vite-plugin-webpackchunkname/-/vite-plugin-webpackchunkname-0.2.2-beta.0.tgz","fileCount":28,"unpackedSize":49658,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICarMtj6DjlNNojHGNClyZOA/ZEyWsoOI7Kx5dVxi96LAiAcyI7XVceJWo+6Uc6IDpcHfm2vJW0htv4FbDd/k0mNSg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrouGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJ0Q//e14te5BU0CnxMPrnTxsCfRqhjeVwmzanTkgCbEe3Fz1JTkSB\r\nDEzymKfOBf/Rnmy5AO5XqCDgB+AE4YM42S88Josya8NEUkNQLxQPrYs3li0Y\r\nGkiiztreTnLMrrSvOW2WMelb5oQVhys9CBfJJZOQj7TDVqEi4d51hmtVyVDc\r\nfK9Vphl8KTCo9NcIjCs5Z/rMUX6tJWGOpRSiRFpkXNXF9jG1wL0Oqs5sdtbz\r\nYCM+XTIINTfvid4Yz4x1QzBsKjnJ9wjS4r+VwfCFd37pnG4ZQfc/NnL0PFiU\r\n70W8KIjo0U2HtXeKoTgESZhIaFKfhV64qAswoYA5wgjdoBXh7krdEBHpa4kI\r\nulyalkQs07+rp32wfZAtpWrEtBILtH1lf/U2ufOCqVfMZot8/ERfzVTNcTbL\r\nPcbzF83/5g7YAZa7+CsP+Tr77s4dqF8iZt6DLkzDuZa1tlFbZI3nrNO3VrBK\r\nknA48sqYO9BDesI2FhEqG2nz5id65cyetM6bS10fGvex0H47V5xA07Xi2kMW\r\nYck76cSwXAmLyAzCv0kDoR7Ka3tYV4TB6LuSEn0zoJ8BnaAj6+5X3MulAOOC\r\ncNO+3gebKt8Q5/eqA6lP6RjsPOQKGwYsBAxsWD6nIDIw5y30BNEM+gNYF4jn\r\nph1lrTu5MBgNVUdCsitLYTecTeok9836UNU=\r\n=KCMJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aleen42","email":"aleen42@vip.qq.com"},"directories":{},"maintainers":[{"name":"aleen42","email":"aleen42@vip.qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-webpackchunkname_0.2.2-beta.0_1672383366267_0.792907601927443"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-30T06:56:06.186Z","0.2.2-beta.0":"2022-12-30T06:56:06.447Z","modified":"2022-12-30T06:56:06.618Z"},"maintainers":[{"name":"aleen42","email":"aleen42@vip.qq.com"}],"description":"A webpackChunkName plugin for Vite.","homepage":"https://github.com/CaptainLiao/vite-plugin-webpackchunkname#readme","keywords":["vite plugin","vite webpackchunkname","rollup webpackChunkName","manualChunks"],"repository":{"type":"git","url":"git+https://github.com/CaptainLiao/vite-plugin-webpackchunkname.git"},"author":{"name":"CaptainLiao"},"bugs":{"url":"https://github.com/CaptainLiao/vite-plugin-webpackchunkname/issues"},"license":"MIT","readme":"## Features\n\nUse `webpackChunkName` config in vite project as well as `webpack` do.\n\n**Not support third party packages**. [see vitejs #8824](https://github.com/vitejs/vite/pull/8824)\n\n## Install\n\nInstall the package from npm (or yarn, or pnpm).\n\n```bash\nnpm install --save-dev vite-plugin-webpackchunkname\n```\n\n### Basic usage\n\nAdd it to `vite.config.ts`\n\n```ts\n// vite.config.ts\nimport { manualChunksPlugin } from 'vite-plugin-webpackchunkname'\n// Other dependencies...\n\nexport default defineConfig({\n  plugins: [\n    manualChunksPlugin(),\n  ]\n})\n```\n\nthen add `webpackChunkName` comments to the import:\n````js\nimport(/* webpackChunkName: \"detail\" */ \"@/detail/somepage.vue\")\n````\n\n### Support for user defined manual chunks\n\nSince this plugin extends and overrides the usage of `build.output.manualChunks`.  The way to apply your own manual chunks must be done using the callback (rather than the string array) in a way similar to the example below:\n\n```\n /* build.output.manualChunks */\n    manualChunks: (\n      id: string\n    ) => {\n      if (id.indexOf(\"node_modules/lodash/\") !== -1) {\n        return \"lodash\";\n      }\n    },\n```\n\n## License\n\nCopyright [CaptainLiao](https://github.com/CaptainLiao)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. \nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","readmeFilename":"README.md"}