@bundle-validator/plugin-bundle-content
Checks if file does not bundle given libraries.
Usage
-
Add plugin package as a devDependency:
npm install @bundle-validator/plugin-bundle-content --save-dev
or
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/