* Changes UMD callsite to be more likely to pass in the intended object. Fixes #10476 Note: This PR should be considered pseudocode and used as an illustration of the proposed fix. I do not know nearly enough about this project to know if this is an appropriate solution to the problem, nor do I have the confidence to update the tests appropriately. * Update tests
21 lines
627 B
JavaScript
21 lines
627 B
JavaScript
(function (global, factory) {
|
|
if (typeof define === "function" && define.amd) {
|
|
define("loose/module-name-with-overridden-global/input", ["exports"], factory);
|
|
} else if (typeof exports !== "undefined") {
|
|
factory(exports);
|
|
} else {
|
|
var mod = {
|
|
exports: {}
|
|
};
|
|
factory(mod.exports);
|
|
global.looseModuleNameWithOverriddenGlobalInput = mod.exports;
|
|
}
|
|
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
|
"use strict";
|
|
|
|
_exports.__esModule = true;
|
|
_exports.default = void 0;
|
|
var _default = 42;
|
|
_exports.default = _default;
|
|
});
|