mono-bundler
v1.43.92
Published
Monorepo bundler based on rollup.js
Downloads
12
Readme
mono-bundler
Monorepo bundler based on rollup.js and vercel/ncc
Usage
Installation
npm i mono-bundler
Usage in workspace
package.json (root)
"scripts": {
"build": "mono -c",
}
Create mono.config.js:
export default {
packages: [
'apps/**/*',
'packages/*/components',
],
createLoaders: true, // creates a loader file per bundle
hashFileNames: true, // adds a hash to the output file names
legacyBrowserSupport: true, // adds babel runtime polyfills for legacy browsers, e.g. IE11
// rollup options
plugins: [
// rollup plugins
]
}
For further options, see: Rollup Options