Skip to content

Commit 31d8608

Browse files
committed
Added babel transform for Object.assign
1 parent 9ca3b22 commit 31d8608

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const presets = ['@babel/env', '@babel/preset-react'];
22
const plugins = [
33
'@babel/plugin-transform-arrow-functions',
44
'@babel/plugin-proposal-class-properties',
5+
'@babel/plugin-transform-object-assign'
56
];
67

78
module.exports = { presets, plugins };

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@babel/core": "^7.1.2",
5555
"@babel/plugin-proposal-class-properties": "^7.1.0",
5656
"@babel/plugin-transform-arrow-functions": "^7.0.0",
57+
"@babel/plugin-transform-object-assign": "^7.2.0",
5758
"@babel/preset-env": "^7.1.0",
5859
"@babel/preset-react": "^7.0.0",
5960
"@babel/register": "^7.0.0",

0 commit comments

Comments
 (0)