1.0.1 • Published 1 year ago
@bundle-validator/plugin-bundle-content v1.0.1
@bundle-validator/plugin-bundle-content
Checks if file does not bundle given libraries.
Usage
- Add plugin package as a devDependency:
ornpm install @bundle-validator/plugin-bundle-content --save-dev
yarn add @bundle-validator/plugin-bundle-content --save-dev
Add this plugin to the
plugins
array ofbundle-validator
config:{ "plugins": [["@bundle-validator/plugin-bundle-content", { "externals": ["lodash"] }]] }
Options
externals
(required)
Use to specify which packages should not be included in a given JS file.
Currently, plugin is able to detect presence of following libraries:
lodash
- https://lodash.com/