Skip to content

Commit 412b84e

Browse files
author
Clauderic Demers
committed
Utilize babel-plugin-transform-runtime to use babelHelpers without them being required in ES6 build (clauderic#45)
1 parent e3b717a commit 412b84e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"stage-1"
2929
],
3030
"plugins": [
31+
"transform-runtime",
3132
[
3233
"css-modules-transform", {
3334
"generateScopedName": "Cal__[name]__[local]",
@@ -39,7 +40,7 @@
3940
},
4041
"production": {
4142
"presets": ["es2015", "react", "stage-0", "stage-1", "stage-2"],
42-
"plugins": ["transform-object-assign"]
43+
"plugins": ["transform-runtime", "transform-object-assign"]
4344
},
4445
"testing": {
4546
"presets": ["es2015", "react", "stage-0", "stage-1", "stage-2"],

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"storybook": "start-storybook -p 9001"
4646
},
4747
"dependencies": {
48+
"babel-runtime": "^6.11.6",
4849
"invariant": "^2.2.1",
4950
"lodash": "^4.12.0"
5051
},
@@ -62,6 +63,7 @@
6263
"babel-loader": "^6.2.0",
6364
"babel-plugin-css-modules-transform": "^0.1.0",
6465
"babel-plugin-transform-object-assign": "^6.8.0",
66+
"babel-plugin-transform-runtime": "^6.15.0",
6567
"babel-polyfill": "^6.3.14",
6668
"babel-preset-es2015": "^6.3.13",
6769
"babel-preset-es2015-rollup": "^1.1.1",

0 commit comments

Comments
 (0)