Skip to content

Commit 8f7d0b0

Browse files
committed
[Fix] properly build module.exports
Fixes #824. See #819 (comment)
1 parent f8c4001 commit 8f7d0b0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.babelrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
}
1010
]
1111
],
12-
"plugins": ["@babel/plugin-transform-flow-strip-types"]
12+
"plugins": [
13+
"@babel/plugin-transform-flow-strip-types",
14+
"add-module-exports"
15+
]
1316
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"@babel/plugin-transform-flow-strip-types": "^7.16.0",
3838
"aud": "^1.1.5",
3939
"babel-jest": "^24.9.0",
40+
"babel-plugin-add-module-exports": "^1.0.4",
4041
"babel-preset-airbnb": "^5.0.0",
4142
"eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8",
4243
"eslint-config-airbnb-base": "^15.0.0",

0 commit comments

Comments
 (0)