1.0.1 • Published 3 years 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-devyarn add @bundle-validator/plugin-bundle-content --save-dev Add this plugin to the
pluginsarray ofbundle-validatorconfig:{ "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/