A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
javascript
web-performance
webpack
web
es6
compiler
commonjs
amd
es2015
plugins
javascript-compiler
build-tool
loaders
module-bundler
esm
javascript-modules
-
Updated
May 16, 2022 - JavaScript
The commonjs plugin should transform only calls to a global function called “require”. Calls to functions containing the term ”require” (e.g. “myrequire”) and calling “require” on an object (e.g. “myObj.require”) must not be transformed.
Versions
Reproduction
Unit tests that check this would be: