Skip to content

Commit c8bb935

Browse files
lukepolochriso
authored andcommittedJan 15, 2019
fix: always add default property to allow require+import (#961)
1 parent 5a937d9 commit c8bb935

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+146
-71
lines changed
 

‎.babelrc

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
["@babel/preset-env", {"targets": {"node": "0.10"}}]
44
],
55
"plugins": [
6-
"add-module-exports"
6+
[
7+
"add-module-exports",
8+
{
9+
"addDefaultProperty": true
10+
}
11+
]
712
]
813
}

‎index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,5 @@ var validator = {
239239
};
240240
var _default = validator;
241241
exports.default = _default;
242-
module.exports = exports.default;
242+
module.exports = exports.default;
243+
module.exports.default = exports.default;

0 commit comments

Comments
 (0)
Please sign in to comment.