Skip to content

Instantly share code, notes, and snippets.

@rajeshdavidbabu
Last active January 9, 2022 21:54
Show Gist options
  • Save rajeshdavidbabu/def8a4eea87db2cef2c0612be8a947d2 to your computer and use it in GitHub Desktop.
Save rajeshdavidbabu/def8a4eea87db2cef2c0612be8a947d2 to your computer and use it in GitHub Desktop.
Babelrc for React-TS Application
// 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