Skip to content

Commit 28ddde2

Browse files
committed
Add plugin that makes babel 6 not break everything
1 parent 40ac80a commit 28ddde2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"presets": ["react", "es2015", "es2016"],
3-
"plugins": ["transform-class-properties", "transform-object-rest-spread", "transform-async-to-generator", "transform-runtime"]
3+
"plugins": ["transform-class-properties", "transform-object-rest-spread", "transform-async-to-generator", "transform-runtime", "add-module-exports"]
44
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"babel-core": "^6.14.0",
6767
"babel-eslint": "^6.1.0",
6868
"babel-loader": "^6.2.5",
69+
"babel-plugin-add-module-exports": "^0.2.1",
6970
"babel-plugin-transform-async-to-generator": "^6.16.0",
7071
"babel-plugin-transform-class-properties": "^6.16.0",
7172
"babel-plugin-transform-object-rest-spread": "^6.16.0",

0 commit comments

Comments
 (0)