diff --git a/docs/plugin-transform-modules-commonjs.md b/docs/plugin-transform-modules-commonjs.md index deefbee7ba..97a2b2c45e 100644 --- a/docs/plugin-transform-modules-commonjs.md +++ b/docs/plugin-transform-modules-commonjs.md @@ -4,6 +4,13 @@ title: @babel/plugin-transform-modules-commonjs sidebar_label: Common JS --- +
+ History +| Version | Changes | +| --- | --- | +| `v7.14.0` | Implemented the `importInterop` option | +
+ > **NOTE**: This plugin is included in `@babel/preset-env` under the `modules` option This plugin transforms ECMAScript modules to [CommonJS](http://wiki.commonjs.org/wiki/Modules/1.1). Note that only the _syntax_ of import/export statements (`import "./mod.js"`) and import expressions (`import('./mod.js')`) is transformed, as Babel is unaware of different resolution algorithms between implementations of ECMAScript modules and CommonJS.