Skip to content

Commit

Permalink
Configurate Babel to work with JS spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef committed Mar 23, 2021
1 parent a5a7eeb commit 6f3b0f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Umbraco.Web.UI.Client/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,14 @@
"targets": "last 2 version, not dead, > 0.5%, not ie 11"
}
]
],
"plugins": [
[
"@babel/plugin-proposal-object-rest-spread",
{
"loose": true,
"useBuiltIns": true
}
]
]
}
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"devDependencies": {
"@babel/core": "7.6.4",
"@babel/preset-env": "7.6.3",
"@babel/plugin-proposal-object-rest-spread": "7.13.8",
"autoprefixer": "9.6.5",
"caniuse-lite": "^1.0.30001037",
"cssnano": "4.1.10",
Expand Down

0 comments on commit 6f3b0f9

Please sign in to comment.