Last active
January 9, 2022 21:54
-
-
Save rajeshdavidbabu/def8a4eea87db2cef2c0612be8a947d2 to your computer and use it in GitHub Desktop.
Babelrc for React-TS Application
This file contains 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
Show hidden characters
// The presets add a pre-defined set of plugins latest for latest JavaScript syntax, react and typescript. | |
{ | |
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"], | |
"plugins": [ | |
[ | |
// A plugin that enables the re-use of Babel's injected helper code to save on codesize. | |
"@babel/plugin-transform-runtime", | |
{ | |
// Adds required corejs polyfills to your production code. | |
"corejs": { "version": 3, "proposals": true } | |
} | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment