Debian Codegraph @

packages/babel-plugin-transform-modules-umd/test/fixtures/umd/module-id-with-overridden-global-in-very-nested-namespace/output.js

raw symbols SCIP
1 (function (global, factory) {
2 if (typeof define === "function" && define.amd) {
3 define("my custom module name", ["exports"], factory);
4 } else if (typeof exports !== "undefined") {
5 factory(exports);
6 } else {
7 var mod = {
8 exports: {}
9 };
10 factory(mod.exports);
11 global.foo = global.foo || {};
12 global.foo.bar = global.foo.bar || {};
13 global.foo.bar.baz = global.foo.bar.baz || {};
14 global.foo.bar.baz.qux = mod.exports;
15 }
16 })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
17 "use strict";
18
19 Object.defineProperty(_exports, "__esModule", {
20 value: true
21 });
22 _exports.default = void 0;
23 var _default = 42;
24 _exports.default = _default;
25 });