compatible-require
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "compatible-require", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "an compatible require used for CommonJs.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,3 +15,3 @@ | ||
// babel和ts编译均会带上__esModule标志位 | ||
if (true === requiredModule.__esModule) { | ||
if (true === requiredModule.__esModule && requiredModule.default != void(0)) { | ||
targetModule = requiredModule.default; | ||
@@ -18,0 +18,0 @@ } else { |
1233