New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify docs about .mjs, .cjs, .js and .json config files #2150
Unify docs about .mjs, .cjs, .js and .json config files #2150
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-modules
flag)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.