Created
November 23, 2019 10:43
-
-
Save Haqverdi/c0feed4d03fe6f884cdb62637a7ee2ef to your computer and use it in GitHub Desktop.
craco babel config ovveride for use @babel/plugin-proposal-optional-chaining
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // craco babel config ovveride for use @babel/plugin-proposal-optional-chaining | |
| // info: https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining | |
| // craco: https://github.com/gsoft-inc/craco | |
| module.exports = { | |
| overrideCracoConfig: ({ cracoConfig }) => { | |
| cracoConfig.babel.plugins.push([ | |
| '@babel/plugin-proposal-optional-chaining', | |
| ]); | |
| return cracoConfig; | |
| }, | |
| }; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment