Changes UMD callsite to be more likely to pass in the intended… (#10477)

* 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
This commit is contained in:
Micah Zoltu
2019-10-30 05:19:49 +08:00
committed by Nicolò Ribaudo
parent 143d159982
commit 198b4a0fbd
95 changed files with 103 additions and 95 deletions

View File

@@ -27,7 +27,11 @@ const buildWrapper = template(`
GLOBAL_TO_ASSIGN;
}
})(this, function(IMPORT_NAMES) {
})(
typeof globalThis === "object" ? globalThis
: typeof self === "object" ? self
: this,
function(IMPORT_NAMES) {
})
`);

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,6 +10,6 @@
factory();
global.myCustomModuleName = mod.exports;
}
})(this, function () {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
"use strict";
});

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.evens);
global.input = mod.exports;
}
})(this, function (_exports, _evens) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _evens) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(global.foo);
global.input = mod.exports;
}
})(this, function (_foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
"use strict";
_foo = babelHelpers.interopRequireDefault(_foo);

View File

@@ -10,7 +10,7 @@
factory(global.fooBAR, global.fooBAR, global.fizzBuzz);
global.input = mod.exports;
}
})(this, function (_fooBar, _fooBar2, _fizzbuzz) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
"use strict";
_fooBar = babelHelpers.interopRequireDefault(_fooBar);

View File

@@ -10,7 +10,7 @@
factory(global.fooBar, global.fooBar, global.fizzbuzz);
global.input = mod.exports;
}
})(this, function (_fooBar, _fooBar2, _fizzbuzz) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
"use strict";
_fooBar = babelHelpers.interopRequireDefault(_fooBar);

View File

@@ -10,7 +10,7 @@
factory(global.fooBAR, global.mylib.fooBar, global.fizz.buzz);
global.input = mod.exports;
}
})(this, function (_fooBar, _fooBar2, _fizzbuzz) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
"use strict";
_fooBar = babelHelpers.interopRequireDefault(_fooBar);

View File

@@ -10,7 +10,7 @@
factory(global.fooBar, global.mylibFooBar, global.fizzbuzz);
global.input = mod.exports;
}
})(this, function (_fooBar, _fooBar2, _fizzbuzz) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
"use strict";
_fooBar = babelHelpers.interopRequireDefault(_fooBar);

View File

@@ -10,7 +10,7 @@
factory(global.foo);
global.input = mod.exports;
}
})(this, function (foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (foo) {
"use strict";
foo = babelHelpers.interopRequireWildcard(foo);

View File

@@ -10,7 +10,7 @@
factory(global.foo);
global.input = mod.exports;
}
})(this, function (_foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
"use strict";
_foo = babelHelpers.interopRequireWildcard(_foo);

View File

@@ -10,7 +10,7 @@
factory(global.foo);
global.input = mod.exports;
}
})(this, function (_foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
"use strict";
_foo.bar;

View File

@@ -10,6 +10,6 @@
factory(global.foo, global.fooBar, global.fooBar);
global.input = mod.exports;
}
})(this, function (_foo, _fooBar, _fooBar2) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo, _fooBar, _fooBar2) {
"use strict";
});

View File

@@ -11,7 +11,7 @@
global.foo = global.foo || {};
global.foo.bar = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -13,7 +13,7 @@
global.foo.bar.baz = global.foo.bar.baz || {};
global.foo.bar.baz.qux = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.baz = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory();
global.MyLib = mod.exports;
}
})(this, function () {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
"use strict";
foobar();

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.looseModuleNameWithOverriddenGlobalInput = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory();
global.looseModuleNameInput = mod.exports;
}
})(this, function () {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
"use strict";
foobar();

View File

@@ -10,6 +10,6 @@
factory(global.render);
global.input = mod.exports;
}
})(this, function (_render) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_render) {
"use strict";
});

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,6 +10,6 @@
factory(global.Promise);
global.input = mod.exports;
}
})(this, function (_es6Promise) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_es6Promise) {
"use strict";
});

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo, global.fooBar, global.fooBar);
global.input = mod.exports;
}
})(this, function (_exports, foo2, _fooBar, _fooBar2) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, foo2, _fooBar, _fooBar2) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
_exports.__esModule = true;

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo);
global.input = mod.exports;
}
})(this, function (_exports, _foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,6 +10,6 @@
factory();
global.myCustomModuleName = mod.exports;
}
})(this, function () {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
"use strict";
});

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.evens);
global.input = mod.exports;
}
})(this, function (_exports, _evens) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _evens) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(global.foo);
global.input = mod.exports;
}
})(this, function (_foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
"use strict";
_foo = babelHelpers.interopRequireDefault(_foo);

View File

@@ -10,7 +10,7 @@
factory(global.fooBAR, global.fooBAR, global.fizzBuzz);
global.input = mod.exports;
}
})(this, function (_fooBar, _fooBar2, _fizzbuzz) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
"use strict";
_fooBar = babelHelpers.interopRequireDefault(_fooBar);

View File

@@ -10,7 +10,7 @@
factory(global.fooBar, global.fooBar, global.fizzbuzz);
global.input = mod.exports;
}
})(this, function (_fooBar, _fooBar2, _fizzbuzz) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
"use strict";
_fooBar = babelHelpers.interopRequireDefault(_fooBar);

View File

@@ -10,7 +10,7 @@
factory(global.fooBAR, global.mylib.fooBar, global.fizz.buzz);
global.input = mod.exports;
}
})(this, function (_fooBar, _fooBar2, _fizzbuzz) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
"use strict";
_fooBar = babelHelpers.interopRequireDefault(_fooBar);

View File

@@ -10,7 +10,7 @@
factory(global.fooBar, global.mylibFooBar, global.fizzbuzz);
global.input = mod.exports;
}
})(this, function (_fooBar, _fooBar2, _fizzbuzz) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
"use strict";
_fooBar = babelHelpers.interopRequireDefault(_fooBar);

View File

@@ -10,7 +10,7 @@
factory(global.foo);
global.input = mod.exports;
}
})(this, function (foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (foo) {
"use strict";
foo = babelHelpers.interopRequireWildcard(foo);

View File

@@ -10,7 +10,7 @@
factory(global.foo);
global.input = mod.exports;
}
})(this, function (_foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
"use strict";
_foo = babelHelpers.interopRequireWildcard(_foo);

View File

@@ -10,7 +10,7 @@
factory(global.foo);
global.input = mod.exports;
}
})(this, function (_foo) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
"use strict";
_foo.bar;

View File

@@ -10,6 +10,6 @@
factory(global.foo, global.fooBar, global.fooBar);
global.input = mod.exports;
}
})(this, function (_foo, _fooBar, _fooBar2) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo, _fooBar, _fooBar2) {
"use strict";
});

View File

@@ -11,7 +11,7 @@
global.foo = global.foo || {};
global.foo.bar = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -13,7 +13,7 @@
global.foo.bar.baz = global.foo.bar.baz || {};
global.foo.bar.baz.qux = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.baz = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory();
global.MyLib = mod.exports;
}
})(this, function () {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
"use strict";
foobar();

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.umdModuleNameWithOverriddenGlobalInput = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory();
global.umdModuleNameInput = mod.exports;
}
})(this, function () {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
"use strict";
foobar();

View File

@@ -10,6 +10,6 @@
factory(global.render);
global.input = mod.exports;
}
})(this, function (_render) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_render) {
"use strict";
});

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,6 +10,6 @@
factory(global.Promise);
global.input = mod.exports;
}
})(this, function (_es6Promise) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_es6Promise) {
"use strict";
});

View File

@@ -10,7 +10,7 @@
factory(mod.exports, global.foo, global.fooBar, global.fooBar);
global.input = mod.exports;
}
})(this, function (_exports, foo2, _fooBar, _fooBar2) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, foo2, _fooBar, _fooBar2) {
"use strict";
Object.defineProperty(_exports, "__esModule", {

View File

@@ -10,7 +10,7 @@
factory(mod.exports);
global.input = mod.exports;
}
})(this, function (_exports) {
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {