Skip to content

Instantly share code, notes, and snippets.

@mohnatus
Created February 16, 2020 13:55
Show Gist options
  • Select an option

  • Save mohnatus/5a7dfaff1b3c15d33db84c1d3b8ee83b to your computer and use it in GitHub Desktop.

Select an option

Save mohnatus/5a7dfaff1b3c15d33db84c1d3b8ee83b to your computer and use it in GitHub Desktop.
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"loose": true,
"useBuiltIns": "usage"
}
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-syntax-export-default-from",
"@babel/plugin-proposal-function-bind",
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-syntax-dynamic-import",
[
"@babel/plugin-transform-runtime",
{
"absoluteRuntime": false,
"corejs": false,
"helpers": true,
"regenerator": true,
"useESModules": false
}
]
]
}
npm i -D @babel/preset-env @babel/plugin-proposal-class-properties @babel/plugin-proposal-export-namespace-from @babel/plugin-syntax-export-default-from @babel/plugin-proposal-function-bind @babel/plugin-proposal-nullish-coalescing-operator @babel/plugin-proposal-numeric-separator @babel/plugin-proposal-optional-chaining @babel/plugin-syntax-dynamic-import @babel/plugin-transform-runtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment