Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 10, 2020
1 parent 65a3796 commit 8ece6f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/config-files.md
Expand Up @@ -111,9 +111,7 @@ Babel can be configured using any file extension natively supported by Node.js:
- `babel.config.cjs` and `.babelrc.cjs` allow you to define your configuration as CommonJS,
using `module.exports`.

- `babel.config.mjs` and `.babelrc.mjs` use native ECMAScript modules. They are only supported by
Node.js 13.2 or newer, and might work in older versions when passing `--experimental-modules` flag
to Node.js.
- `babel.config.mjs` and `.babelrc.mjs` use native ECMAScript modules. They are supported by Node.js 13.2+ (or older versions via the `--experimental-modules` flag).
Please remember that native ECMAScript modules are asynchronous (that's why `import()` always
returns a promise!): for this reason, `.mjs` config files will throw when calling Babel
synchronously.
Expand Down

0 comments on commit 8ece6f8

Please sign in to comment.