@element-public/rollup-plugin-external
v1.0.0
Published
Externalize dependencies and peerDependencies from rollup bundle. Error out for any included dependencies that are not declared in package.json.
Downloads
2
Keywords
Readme
rollup-plugin-external
Externalizes all dependencies
and peerDependencies
and makes sure all used dependencies are declared in the package.json
. Error out for any used dependencies that are not declared in package.json.
Install
npm i --save-dev @element/rollup-plugin-external
Usage
Include this plugin as the first plugin within rollup.config.js
:
import { externalPackages } from '@element/rollup-plugin-external';
export default {
input: /* ... */,
output: [/* ... */],
plugins: [
externalPackages(),
// Other plugins
],
};