Unify docs about .mjs, .cjs, .js and .json config files#2150
Unify docs about .mjs, .cjs, .js and .json config files#2150nicolo-ribaudo merged 5 commits intobabel:masterfrom
Conversation
|
Deploy preview for babel ready! Built with commit 8ece6f8 |
e4005e0 to
c3ef519
Compare
docs/config-files.md
Outdated
| - `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 |
There was a problem hiding this comment.
The "only supported..." followed by "and might work" read a bit weird. Maybe:
They are supported by Node.js 13.2+ (or older versions via the
--experimental-modulesflag)
|
Honestly not a fan of using |
|
What do you think about always using Btw, I copied |
96edd2f to
158ae12
Compare
Co-Authored-By: Jayden Seric <me@jaydenseric.com>
aa77cef to
85da025
Compare
|
@existentialism I changed the docs to always use the |
existentialism
left a comment
There was a problem hiding this comment.
Just a few small nits!
Co-Authored-By: Brian Ng <bng412@gmail.com>
* Backport misc changes from #2150 * Remove 7.8.0 versioned_docs without updates
Docs for babel/babel#10903 and babel/babel#10783, follow up to #2106.