* Revert "Throw error for multiple exports default (#3518)" This reverts commit aa51dd4a3dbb956d8b619d884acf40194d5ffac8. * Fix export default tests
22 lines
467 B
JavaScript
22 lines
467 B
JavaScript
(function (global, factory) {
|
|
if (typeof define === "function" && define.amd) {
|
|
define(["exports"], factory);
|
|
} else if (typeof exports !== "undefined") {
|
|
factory(exports);
|
|
} else {
|
|
var mod = {
|
|
exports: {}
|
|
};
|
|
factory(mod.exports);
|
|
global.actual = mod.exports;
|
|
}
|
|
})(this, function (exports) {
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = foo;
|
|
function foo() {}
|
|
});
|