Skip to content

Commit aa729ba

Browse files
committed
fix: make default export work with CommonJS
1 parent 31ee1f9 commit aa729ba

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.babelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"env": {
66
"development": {
77
"plugins": [
8+
"add-module-exports",
89
"ramda",
910
"transform-object-rest-spread",
1011
"syntax-flow",
@@ -15,6 +16,7 @@
1516
},
1617
"production": {
1718
"plugins": [
19+
"add-module-exports",
1820
"ramda",
1921
"transform-object-rest-spread",
2022
"syntax-flow",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"devDependencies": {
2727
"babel-cli": "^6.11.4",
28+
"babel-plugin-add-module-exports": "^0.2.1",
2829
"babel-plugin-istanbul": "^1.0.3",
2930
"babel-plugin-ramda": "^1.1.5",
3031
"babel-plugin-syntax-flow": "^6.13.0",

0 commit comments

Comments
 (0)