DEV Community

loading...

Discussion on: How To Setup Rollup Config

Collapse
djibe profile image
djibe

Hi,
note that commonjs must be invoked before babel.

"When using @rollup/plugin-babel with @rollup/plugin-commonjs in the same Rollup configuration, it's important to note that @rollup/plugin-commonjs must be placed before this plugin in the plugins array for the two to work together properly."
github.com/rollup/plugins/tree/mas...