rollup-config-x v5.0.0
about
Referencing plugins via rollup.config.js
or inline can get tedious across similar projects. Including a Node.js packaged external configuration is thankfully possible using a node:
shortcut. Passing down custom command line arguments prefixed, not unsurprisingly, config
is also supported.
Useful when importing from node_modules
, this x config adds the @rollup/node-resolve
plugin flipping the default browser
and preferBuiltins
settings. Command line flag --configPreferBuiltins
is available for the latter.
setup
Download the latest version beside Rollup:
# Add to package.json
npm install rollup rollup-config-x --save-dev
usage
Then as part of npm scripts for example:
{
"scripts": {
"start": "rollup -c node:x --configPreferBuiltins <file>"
}
}
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago