Circumvent typeof transform for umd build template (#10701)
* add test case * fix: circumvent typeof transform * chore: update test fixtures
This commit is contained in:
parent
433b6ba3a4
commit
e1839e5ec9
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -14,7 +14,9 @@ import { types as t, template } from "@babel/core";
|
|||||||
const buildPrerequisiteAssignment = template(`
|
const buildPrerequisiteAssignment = template(`
|
||||||
GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}
|
GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}
|
||||||
`);
|
`);
|
||||||
|
// Note: we avoid comparing typeof results with "object" or "symbol" otherwise
|
||||||
|
// they will be processed by `transform-typeof-symbol`, which in return could
|
||||||
|
// cause typeof helper used before declaration
|
||||||
const buildWrapper = template(`
|
const buildWrapper = template(`
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
if (typeof define === "function" && define.amd) {
|
if (typeof define === "function" && define.amd) {
|
||||||
@ -28,8 +30,8 @@ const buildWrapper = template(`
|
|||||||
GLOBAL_TO_ASSIGN;
|
GLOBAL_TO_ASSIGN;
|
||||||
}
|
}
|
||||||
})(
|
})(
|
||||||
typeof globalThis === "object" ? globalThis
|
typeof globalThis !== "undefined" ? globalThis
|
||||||
: typeof self === "object" ? self
|
: typeof self !== "undefined" ? self
|
||||||
: this,
|
: this,
|
||||||
function(IMPORT_NAMES) {
|
function(IMPORT_NAMES) {
|
||||||
})
|
})
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,6 +10,6 @@
|
|||||||
factory();
|
factory();
|
||||||
global.myCustomModuleName = mod.exports;
|
global.myCustomModuleName = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.evens);
|
factory(mod.exports, global.evens);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _evens) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _evens) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.foo);
|
factory(global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_foo = babelHelpers.interopRequireDefault(_foo);
|
_foo = babelHelpers.interopRequireDefault(_foo);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.fooBAR, global.fooBAR, global.fizzBuzz);
|
factory(global.fooBAR, global.fooBAR, global.fizzBuzz);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.fooBar, global.fooBar, global.fizzbuzz);
|
factory(global.fooBar, global.fooBar, global.fizzbuzz);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.fooBAR, global.mylib.fooBar, global.fizz.buzz);
|
factory(global.fooBAR, global.mylib.fooBar, global.fizz.buzz);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.fooBar, global.mylibFooBar, global.fizzbuzz);
|
factory(global.fooBar, global.mylibFooBar, global.fizzbuzz);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.foo);
|
factory(global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
foo = babelHelpers.interopRequireWildcard(foo);
|
foo = babelHelpers.interopRequireWildcard(foo);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.foo);
|
factory(global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_foo = babelHelpers.interopRequireWildcard(_foo);
|
_foo = babelHelpers.interopRequireWildcard(_foo);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.foo);
|
factory(global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_foo.bar;
|
_foo.bar;
|
||||||
|
|||||||
@ -10,6 +10,6 @@
|
|||||||
factory(global.foo, global.fooBar, global.fooBar);
|
factory(global.foo, global.fooBar, global.fooBar);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo, _fooBar, _fooBar2) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_foo, _fooBar, _fooBar2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
global.foo = global.foo || {};
|
global.foo = global.foo || {};
|
||||||
global.foo.bar = mod.exports;
|
global.foo.bar = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
global.foo.bar.baz = global.foo.bar.baz || {};
|
global.foo.bar.baz = global.foo.bar.baz || {};
|
||||||
global.foo.bar.baz.qux = mod.exports;
|
global.foo.bar.baz.qux = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.baz = mod.exports;
|
global.baz = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory();
|
factory();
|
||||||
global.MyLib = mod.exports;
|
global.MyLib = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
foobar();
|
foobar();
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.looseModuleNameWithOverriddenGlobalInput = mod.exports;
|
global.looseModuleNameWithOverriddenGlobalInput = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory();
|
factory();
|
||||||
global.looseModuleNameInput = mod.exports;
|
global.looseModuleNameInput = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
foobar();
|
foobar();
|
||||||
|
|||||||
@ -10,6 +10,6 @@
|
|||||||
factory(global.render);
|
factory(global.render);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_render) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_render) {
|
||||||
"use strict";
|
"use strict";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,6 +10,6 @@
|
|||||||
factory(global.Promise);
|
factory(global.Promise);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_es6Promise) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_es6Promise) {
|
||||||
"use strict";
|
"use strict";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo, global.fooBar, global.fooBar);
|
factory(mod.exports, global.foo, global.fooBar, global.fooBar);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, foo2, _fooBar, _fooBar2) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, foo2, _fooBar, _fooBar2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_exports.__esModule = true;
|
_exports.__esModule = true;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo);
|
factory(mod.exports, global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,6 +10,6 @@
|
|||||||
factory();
|
factory();
|
||||||
global.myCustomModuleName = mod.exports;
|
global.myCustomModuleName = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.evens);
|
factory(mod.exports, global.evens);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, _evens) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _evens) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.foo);
|
factory(global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_foo = babelHelpers.interopRequireDefault(_foo);
|
_foo = babelHelpers.interopRequireDefault(_foo);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.fooBAR, global.fooBAR, global.fizzBuzz);
|
factory(global.fooBAR, global.fooBAR, global.fizzBuzz);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.fooBar, global.fooBar, global.fizzbuzz);
|
factory(global.fooBar, global.fooBar, global.fizzbuzz);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.fooBAR, global.mylib.fooBar, global.fizz.buzz);
|
factory(global.fooBAR, global.mylib.fooBar, global.fizz.buzz);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.fooBar, global.mylibFooBar, global.fizzbuzz);
|
factory(global.fooBar, global.mylibFooBar, global.fizzbuzz);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_fooBar, _fooBar2, _fizzbuzz) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
_fooBar = babelHelpers.interopRequireDefault(_fooBar);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.foo);
|
factory(global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
foo = babelHelpers.interopRequireWildcard(foo);
|
foo = babelHelpers.interopRequireWildcard(foo);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.foo);
|
factory(global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_foo = babelHelpers.interopRequireWildcard(_foo);
|
_foo = babelHelpers.interopRequireWildcard(_foo);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(global.foo);
|
factory(global.foo);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_foo) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_foo.bar;
|
_foo.bar;
|
||||||
|
|||||||
@ -10,6 +10,6 @@
|
|||||||
factory(global.foo, global.fooBar, global.fooBar);
|
factory(global.foo, global.fooBar, global.fooBar);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_foo, _fooBar, _fooBar2) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_foo, _fooBar, _fooBar2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
global.foo = global.foo || {};
|
global.foo = global.foo || {};
|
||||||
global.foo.bar = mod.exports;
|
global.foo.bar = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
global.foo.bar.baz = global.foo.bar.baz || {};
|
global.foo.bar.baz = global.foo.bar.baz || {};
|
||||||
global.foo.bar.baz.qux = mod.exports;
|
global.foo.bar.baz.qux = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.baz = mod.exports;
|
global.baz = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory();
|
factory();
|
||||||
global.MyLib = mod.exports;
|
global.MyLib = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
foobar();
|
foobar();
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.umdModuleNameWithOverriddenGlobalInput = mod.exports;
|
global.umdModuleNameWithOverriddenGlobalInput = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory();
|
factory();
|
||||||
global.umdModuleNameInput = mod.exports;
|
global.umdModuleNameInput = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function () {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
foobar();
|
foobar();
|
||||||
|
|||||||
@ -10,6 +10,6 @@
|
|||||||
factory(global.render);
|
factory(global.render);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_render) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_render) {
|
||||||
"use strict";
|
"use strict";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,6 +10,6 @@
|
|||||||
factory(global.Promise);
|
factory(global.Promise);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_es6Promise) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_es6Promise) {
|
||||||
"use strict";
|
"use strict";
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports, global.foo, global.fooBar, global.fooBar);
|
factory(mod.exports, global.foo, global.fooBar, global.fooBar);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports, foo2, _fooBar, _fooBar2) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, foo2, _fooBar, _fooBar2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
factory(mod.exports);
|
factory(mod.exports);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})(typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : this, function (_exports) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
||||||
|
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
if (typeof define === "function" && define.amd) {
|
if (typeof define === "function" && define.amd) {
|
||||||
define([], factory);
|
define([], factory);
|
||||||
@ -12,7 +10,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
|
|||||||
factory();
|
factory();
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) === "object" ? globalThis : (typeof self === "undefined" ? "undefined" : _typeof(self)) === "object" ? self : this, function () {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import("foo"); // warns
|
import("foo"); // warns
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
||||||
|
|
||||||
(function (global, factory) {
|
(function (global, factory) {
|
||||||
if (typeof define === "function" && define.amd) {
|
if (typeof define === "function" && define.amd) {
|
||||||
define(["a"], factory);
|
define(["a"], factory);
|
||||||
@ -12,7 +10,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
|
|||||||
factory(global.a);
|
factory(global.a);
|
||||||
global.input = mod.exports;
|
global.input = mod.exports;
|
||||||
}
|
}
|
||||||
})((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) === "object" ? globalThis : (typeof self === "undefined" ? "undefined" : _typeof(self)) === "object" ? self : this, function (_a) {
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_a) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
_a = _interopRequireDefault(_a);
|
_a = _interopRequireDefault(_a);
|
||||||
|
|||||||
2
packages/babel-preset-env/test/fixtures/plugins-integration/issue-10662/input.mjs
vendored
Normal file
2
packages/babel-preset-env/test/fixtures/plugins-integration/issue-10662/input.mjs
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
var globalThis = {};
|
||||||
|
typeof globalThis;
|
||||||
14
packages/babel-preset-env/test/fixtures/plugins-integration/issue-10662/options.json
vendored
Normal file
14
packages/babel-preset-env/test/fixtures/plugins-integration/issue-10662/options.json
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
[
|
||||||
|
"env",
|
||||||
|
{
|
||||||
|
"modules": "umd",
|
||||||
|
"targets": [
|
||||||
|
"Safari 8",
|
||||||
|
"IE 11"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
21
packages/babel-preset-env/test/fixtures/plugins-integration/issue-10662/output.js
vendored
Normal file
21
packages/babel-preset-env/test/fixtures/plugins-integration/issue-10662/output.js
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
(function (global, factory) {
|
||||||
|
if (typeof define === "function" && define.amd) {
|
||||||
|
define([], factory);
|
||||||
|
} else if (typeof exports !== "undefined") {
|
||||||
|
factory();
|
||||||
|
} else {
|
||||||
|
var mod = {
|
||||||
|
exports: {}
|
||||||
|
};
|
||||||
|
factory();
|
||||||
|
global.input = mod.exports;
|
||||||
|
}
|
||||||
|
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||||
|
|
||||||
|
var globalThis = {};
|
||||||
|
|
||||||
|
_typeof(globalThis);
|
||||||
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user