Skip to content

Commit a942f67

Browse files
committed
bug fixed for externals function
1 parent d6aa7b1 commit a942f67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/ExternalModuleFactoryDecorator.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ExternalModuleFactoryDecorator.prototype.create = function(context, dependency,
6363
} else if(typeof externals === "function") {
6464
externals.call(null, context, dependency.request, function(err, value, type) {
6565
if(err) return callback(err);
66-
if(value) {
66+
if(typeof value !== "undefined") {
6767
handleExternal(value, type, callback);
6868
} else {
6969
callback();

0 commit comments

Comments
 (0)