Skip to content

Commit

Permalink
History
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 29, 2021
1 parent 10dfcf7 commit 69488f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/plugin-transform-modules-commonjs.md
Expand Up @@ -4,6 +4,13 @@ title: @babel/plugin-transform-modules-commonjs
sidebar_label: Common JS
---

<details>
<summary>History</summary>
| Version | Changes |
| --- | --- |
| `v7.14.0` | Implemented the `importInterop` option |
</details>

> **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.
Expand Down

0 comments on commit 69488f4

Please sign in to comment.