Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upEnable optional chaining by default in @babel/preset-env #10809
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
I can give a PR now. |
This comment has been minimized.
This comment has been minimized.
|
I was going to mark this as a |
This comment has been minimized.
This comment has been minimized.
|
sure, we can do that as well. |
This comment has been minimized.
This comment has been minimized.
|
I'll take a stab at this |
Closed
This comment has been minimized.
This comment has been minimized.
|
is this gonna happen soon ? |
This comment has been minimized.
This comment has been minimized.
|
It has been released in v7.8.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request
Optional chaining is Stage 4!
This means that it should be enabled by default in🎉
@babel/preset-envIt should be done similarly to this commit: b92ad31
packages/babel-preset-env/src/available-plugins.jscompat-tablemapping topackages/babel-preset-env/data/plugin-features.js(you can find the correct feature name at https://kangax.github.io/compat-table/esnext/)cd packages/preset-envandyarn build-datato update the data about the supported browser versions@babel/preset-env-standalone(packages/babel-preset-env-standalone/src/available-plugins.js)If it is the first time that you contribute to Babel, follow these steps: (you need to have
makeandyarnavailable on your machine)git clone https://github.com/<YOUR_USERNAME>/babel.git && cd babelyarn && make bootstrapmake watch(ormake buildwhenever you change a file)input.js;output.jswill be automatically generated)yarn jest babel-preset-envto run the testsoutput.jsfiles and run the tests againOVERWRITE=true yarn jest babel-preset-envand they will be automatically updated.make testto run all the testsgit pushand open a PR!