Skip to content

Commit feb9067

Browse files
committed
Add babel-plugin-transform-object-assign to transform Object.assign when
build dist
1 parent 7d54625 commit feb9067

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.babelrc

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"presets": [
3-
"es2015",
4-
"stage-0",
5-
"react"
6-
],
7-
"plugins": [
8-
"add-module-exports",
9-
"lodash",
10-
"transform-class-properties",
11-
["transform-es2015-classes", { "loose": true }],
12-
"transform-proto-to-assign"
13-
]
2+
"presets": [
3+
"es2015",
4+
"stage-0",
5+
"react"
6+
],
7+
"plugins": [
8+
"add-module-exports",
9+
"lodash",
10+
"transform-class-properties",
11+
["transform-es2015-classes", { "loose": true }],
12+
"transform-proto-to-assign",
13+
"transform-object-assign"
14+
]
1415
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"babel-plugin-add-module-exports": "^0.2.1",
3030
"babel-plugin-lodash": "^3.2.9",
3131
"babel-plugin-transform-proto-to-assign": "^6.9.0",
32+
"babel-plugin-transform-object-assign": "^6.22.0",
3233
"babel-preset-es2015": "^6.18.0",
3334
"babel-preset-react": "^6.16.0",
3435
"babel-preset-stage-0": "^6.16.0",

0 commit comments

Comments
 (0)