Skip to content

Commit

Permalink
update babel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
vrubinat committed Sep 13, 2018
1 parent a72fdb1 commit 72ea973
Show file tree
Hide file tree
Showing 3 changed files with 3,857 additions and 1,792 deletions.
53 changes: 47 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"presets": [
[
"env",
"@babel/preset-env",
{
"targets": {
"browsers": [
Expand All @@ -11,18 +11,59 @@
},
"modules": false
}
],
"stage-1"
]
],
"plugins": [
"transform-runtime",
"syntax-dynamic-import"
"@babel/plugin-transform-runtime",
// Stage 1
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-logical-assignment-operators",
[
"@babel/plugin-proposal-optional-chaining",
{
"loose": false
}
],
[
"@babel/plugin-proposal-pipeline-operator",
{
"proposal": "minimal"
}
],
[
"@babel/plugin-proposal-nullish-coalescing-operator",
{
"loose": false
}
],
"@babel/plugin-proposal-do-expressions",
// Stage 2
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"@babel/plugin-proposal-function-sent",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-throw-expressions",
// Stage 3
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
[
"@babel/plugin-proposal-class-properties",
{
"loose": false
}
],
"@babel/plugin-proposal-json-strings"
],
"env": {
"test": {
"presets": [
[
"env",
"@babel/preset-env",
{
"modules": "commonjs"
}
Expand Down
Loading

0 comments on commit 72ea973

Please sign in to comment.