generated fromtjx666/unplugin-starter
- Notifications
You must be signed in to change notification settings - Fork3
Detect duplicate packaged dependencies
License
NotificationsYou must be signed in to change notification settings
tjx666/unplugin-detect-duplicated-deps
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Detect duplicate packaged dependencies
npm i -D unplugin-detect-duplicated-deps
You can use the jsdoc to check option description and default value.
Vite
// vite.config.tsimportUnpluginDetectDuplicatedDepsfrom'unplugin-detect-duplicated-deps/vite';exportdefaultdefineConfig({plugins:[UnpluginDetectDuplicatedDeps()],});
Rollup
// rollup.config.jsimportUnpluginDetectDuplicatedDepsfrom'unplugin-detect-duplicated-deps/rollup';exportdefault{plugins:[UnpluginDetectDuplicatedDeps()],};
Webpack
// webpack.config.mjsimportUnpluginDetectDuplicatedDepsfrom'unplugin-detect-duplicated-deps/webpack';constconfig={plugins:[UnpluginDetectDuplicatedDeps()],};
exportdefaultdefineConfig({plugins:[UnpluginDetectDuplicatedDeps({// will exit build process if duplicated deps foundthrowErrorWhenDuplicated:true,// ignore specific duplicated depsignore:{axios:['0.27.2'],vue:['*'],},}),],});
Becausevite6 plan to deprecate commonjs node api, this plugin deprecate the commonjs support from 1.x. If you want use this plugin in commonjs environment, check0.x
- duplicate-package-checker-webpack-plugin
- unplugin
- unplugin-starter
- bundlephobia provide the api to get package size
- vercel host documentation
MIT License © 2023-PRESENTYuTengjing
About
Detect duplicate packaged dependencies
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.