ILIAS
ILIAS copied to clipboard
Add `@rollup/plugin-commonjs` npm package
This PR adds @rollup/plugin-commonjs as npm package.
Usage:
- None yet, file input to come.
Wrapped By:
- Not applicable.
Reasoning:
- This package handles:
- It converts CommonJS, or JavaScript code prior to ES6, into ES6 compatible code. It is essentially the reversed process of the
@babel/preset-envpackage.
- It converts CommonJS, or JavaScript code prior to ES6, into ES6 compatible code. It is essentially the reversed process of the
- Its required because:
- Rollup.js, the module bundler we are using, demands that the code which should be bundled is compatible with ES6. However, since we are using third party libraries in our code, it sometimes happens that a library does not provide a ES6 compatible format. This is when we need to transform the code before we can bundle it. This plugin is usually only used together with the
@rollup/plugin-node-resolvepackage.
- Rollup.js, the module bundler we are using, demands that the code which should be bundled is compatible with ES6. However, since we are using third party libraries in our code, it sometimes happens that a library does not provide a ES6 compatible format. This is when we need to transform the code before we can bundle it. This plugin is usually only used together with the
Maintenance:
- The package is part of Rollup.js' plugin repository, which is actively maintained and receives yearly major releases and ~monthly to ~weekly minor/patch updates.
Links:
- Package manager: https://www.npmjs.com/package/@rollup/plugin-commonjs
- GitHub: https://github.com/rollup/plugins/tree/master/packages/commonjs/#readme
- Documentation: https://rollupjs.org/introduction/#importing-commonjs
Jour Fixe, 14 OCT 2024: Dependency is accepted for ILIAS 10. Note: we do not want new dependencies that require this one.
I think this is not (yet) needed.