Tips and tricks
Setup a .babelrc in your user directory
Posted on January 2 2020 / 1 comment
if you want to setup a global babelrc, create a file named .babelrc with these contents
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"debug": true,
"forceAllTransforms": true,
"targets": {
"chrome": "58",
"esmodules": true,
"ie": "11"
}
}
],
"@babel/preset-react"
],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"corejs": 3
}
]
]
}
customize to your needs, then you should install in your home directory these dependencies:
npm i @babel/core@^7 npm i @babel/preset-env@^7 npm i @babel/preset-react@^7 npm i @babel/polyfill@^7 npm i @babel/runtime-corejs3@^7
AUTHOR
-
Pingback: Use Browserify Globally as Watcher in PhpStorm [ add Babelify ] – Digital Zoom Studio