Debian Codegraph @

packages/babel-plugin-transform-modules-umd/test/fixtures/umd/module-id-with-overridden-global-in-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 = mod.exports;
13 }
14 })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
15 "use strict";
16
17 Object.defineProperty(_exports, "__esModule", {
18 value: true
19 });
20 _exports.default = void 0;
21 var _default = 42;
22 _exports.default = _default;
23 });