Skip to content

Commit

Permalink
[project-base] added plugin-proposal-object-rest-spread as babel plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pesektomas authored Apr 28, 2020
2 parents 4987138 + 2dd583c commit aa314e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ module.exports = {
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
node: 'current'
}
}
]
],
plugins: ['@babel/plugin-proposal-object-rest-spread']
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/parser": "^7.9.0",
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
"@babel/preset-env": "^7.9.0",
"@babel/traverse": "^7.9.0",
"@symfony/webpack-encore": "^0.28.0",
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Encore
.enableSourceMaps(!Encore.isProduction())
.enableVersioning(Encore.isProduction())
.configureBabel(() => {}, {
includeNodeModules: ['@shopsys'],
useBuiltIns: 'usage',
corejs: 3
})
Expand Down

0 comments on commit aa314e1

Please sign in to comment.