Skip to content

Commit 32950b7

Browse files
JJinJJin
authored andcommitted
chore: update building config
1 parent ca41914 commit 32950b7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"react"
77
],
88
"plugins": [
9-
"transform-runtime"
9+
"external-helpers"
1010
]
1111
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"devDependencies": {
2626
"babel-core": "^6.26.0",
2727
"babel-eslint": "^8.2.2",
28-
"babel-plugin-transform-runtime": "^6.23.0",
28+
"babel-plugin-external-helpers": "^6.22.0",
2929
"babel-preset-env": "^1.6.1",
3030
"babel-preset-react": "^6.24.1",
3131
"eslint": "^4.18.1",

rollup.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export default {
1111
file: pkg.module
1212
}],
1313
plugins: [
14-
babel(),
14+
babel({ runtimeHelpers: true }),
15+
],
16+
external: [
17+
'react'
1518
]
1619
};

0 commit comments

Comments
 (0)