Skip to content

Commit 9e52c0b

Browse files
committed
换个姿势
1 parent 227789c commit 9e52c0b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/esl.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -901,15 +901,9 @@ var esl;
901901
);
902902
}
903903

904-
if (typeof exports === 'function') {
905-
exports = (function (exports) {
906-
return function () {
907-
return exports;
908-
};
909-
})(exports);
910-
}
911-
912-
globalDefine(moduleId, shimDeps, exports || {});
904+
globalDefine(moduleId, shimDeps, function () {
905+
return exports || {};
906+
});
913907
}
914908
else {
915909
modCompletePreDefine(moduleId);

0 commit comments

Comments
 (0)