@computerrock/rollup-monorepo-bundler
v2.0.0
Published
Rollup bundler for Lerna monorepo packages.
Downloads
39
Keywords
Readme
@computerrock/rollup-monorepo-bundler
Rollup bundler for Lerna monorepo packages.
Usage
Install package in your monorepo by running:
npm install @computerrock/rollup-monorepo-bundler
Then in your package.json
file add:
{
"scripts": {
"start": "rollup-monorepo-bundler start",
"build": "rollup-monorepo-bundler build"
}
}
Package configuration
To configure which monorepo packages should be bundled with rollup-monorepo-bundler, install it and configure it in
each package by modifying package.json
and creating rollup.config.js
:
{
"scripts": {
"start": "rollup-monorepo-bundler start",
"prepare": "rollup-monorepo-bundler prepare",
"build": "rollup-monorepo-bundler build"
}
}
At the moment only external
is available for overwriting in rollup.config.js
:
// rollup.config.js
module.exports = {
external: [],
};