Skip to content

Commit 0414419

Browse files
committed
fix: remove default key when requiring in nodejs
1 parent a337166 commit 0414419

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.babelrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"presets": ["es2015"]
2+
"presets": ["es2015"],
3+
"plugins": [
4+
"add-module-exports"
5+
]
36
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"babel-eslint": "^7.2.3",
23+
"babel-plugin-add-module-exports": "^0.2.1",
2324
"babel-preset-es2015": "^6.24.1",
2425
"conventional-changelog-cli": "^1.3.1",
2526
"eslint": "^4.0.0",

yarn.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ babel-messages@^6.23.0:
322322
dependencies:
323323
babel-runtime "^6.22.0"
324324

325+
babel-plugin-add-module-exports@^0.2.1:
326+
version "0.2.1"
327+
resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25"
328+
325329
babel-plugin-check-es2015-constants@^6.22.0:
326330
version "6.22.0"
327331
resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a"

0 commit comments

Comments
 (0)