Closed jorgecasar closed 5 months ago
You can add custom plugins yourself via
barrel-begone.config.js
:
import commonjs from '@rollup/plugin-commonjs';
export default {
rollup: {
plugins:[commonjs()]
}
}
I don't think the barrel file analysis will work on commonjs modules though, because it only checks import
/export
, but at least you should be able to get the module graph size
It's not working neither with the plugin.
Thanks for your answer and I hope all libraries move to esm to make our life easier.
Using commander breaks the tool. It load a module file that import a commonjs one. Maybe adding @rollup/plugin-commonjs could support commonjs dependencies