From 69488f422b7f15e5306b60f403472585b6a42532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Tue, 6 Apr 2021 12:38:27 +0200 Subject: [PATCH] History --- docs/plugin-transform-modules-commonjs.md | 7 +++++++ 1 file changed, 7 insertions(+) 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.