How do I have to configure rollup.js (=> config file "rollup.config.js") if all dependencies should be embedded into the (fat) result bundle (especially: how to configure the rollup parameters "globals", "external", "plugins.babel.exclude")?
Let's say I have done something like:
> npm install dependency1 --save-dev
> npm install dependency2 --save-dev
And the index file (index.js) looks like:
import D1 from 'dependency1'
import D2 from 'dependency2'
[...]
export default SomethingThatUsesD1AndD2
=> The resulting bundle shall be one fat single file that contains everything
Use rollup-plugin-node-resolve (and rollup-plugin-commonjs if you have CommonJS dependencies).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With