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 nullish coalescing by default in @babel/parser #10813
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
Can I take this one? |
This comment has been minimized.
This comment has been minimized.
|
@layershifter Have at it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request
Nullish coalescing is Stage 4!
This means that it should be enabled by default in🎉
@babel/parserIt should be done similarly to this commit: 24c4901
this.hasPluginandthis.expectPluginchecks related to this plugin inpackages/babel-parser/srcnullishCoalescingOperatorin@babel/parser's testsexperimentalfolder toes2020If 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-parserto run the testsoutput.jsfiles and run the tests againOVERWRITE=true yarn jest babel-parserand they will be automatically updated.make testto run all the testsgit pushand open a PR!