file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-named/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo")); else if (typeof define === "function" && define.amd) define([ "exports", "foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function use() { console.log(_foo.foo); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-namespace/input.js
JavaScript
import * as foo from "foo"; function use() { console.log(foo); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-namespace/output.amd.js
JavaScript
define([ "require", "exports", "foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_wildcard(_foo); function use() { console.log(_foo); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-namespace/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _foo() { const data = /*#__PURE__*/ _interop_require_wildcard(require("foo")); _foo = function() { return data; }; return data; } function use() { console.log(_foo()); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-namespace/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo")); else if (typeof define === "function" && define.amd) define([ "exports", "foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_wildcard(_foo); function use() { console.log(_foo); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-all/input.js
JavaScript
export * from "foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-all/output.amd.js
JavaScript
define([ "require", "exports", "foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(_foo, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-all/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(require("foo"), exports);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-all/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo")); else if (typeof define === "function" && define.amd) define([ "exports", "foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(_foo, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/input.js
JavaScript
import foo from "foo"; export { foo as default };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.amd.js
JavaScript
define([ "require", "exports", "foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _foo.default; } }); _foo = /*#__PURE__*/ _interop_require_default(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _foo().default; } }); function _foo() { const data = /*#__PURE__*/ _interop_require_default(require("foo")); _foo = function() { return data; }; return data; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo")); else if (typeof define === "function" && define.amd) define([ "exports", "foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _foo.default; } }); _foo = /*#__PURE__*/ _interop_require_default(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/input.js
JavaScript
import { named } from "foo"; export { named };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.amd.js
JavaScript
define([ "require", "exports", "foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named", { enumerable: true, get: function() { return _foo.named; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named", { enumerable: true, get: function() { return _foo().named; } }); function _foo() { const data = require("foo"); _foo = function() { return data; }; return data; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo")); else if (typeof define === "function" && define.amd) define([ "exports", "foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named", { enumerable: true, get: function() { return _foo.named; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/input.js
JavaScript
import * as namespace from "foo"; export { namespace };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.amd.js
JavaScript
define([ "require", "exports", "foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "namespace", { enumerable: true, get: function() { return _foo; } }); _foo = /*#__PURE__*/ _interop_require_wildcard(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "namespace", { enumerable: true, get: function() { return _foo(); } }); function _foo() { const data = /*#__PURE__*/ _interop_require_wildcard(require("foo")); _foo = function() { return data; }; return data; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo")); else if (typeof define === "function" && define.amd) define([ "exports", "foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "namespace", { enumerable: true, get: function() { return _foo; } }); _foo = /*#__PURE__*/ _interop_require_wildcard(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-sideeffect/input.js
JavaScript
import "foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-sideeffect/output.amd.js
JavaScript
define([ "require", "exports", "foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-sideeffect/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("foo");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-sideeffect/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo")); else if (typeof define === "function" && define.amd) define([ "exports", "foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-default/input.js
JavaScript
export { default } from "foo"; export { default as foo } from "foo"; export { default as bar } from "bar"; import bar from "bar";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-default/output.amd.js
JavaScript
define([ "require", "exports", "foo", "bar" ], function(require, exports, _foo, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { bar: function() { return _bar.default; }, default: function() { return _foo.default; }, foo: function() { return _foo.default; } }); _foo = /*#__PURE__*/ _interop_require_default(_foo); _bar = /*#__PURE__*/ _interop_require_default(_bar); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-default/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { bar: function() { return _bar().default; }, default: function() { return _foo().default; }, foo: function() { return _foo().default; } }); function _foo() { const data = /*#__PURE__*/ _interop_require_default(require("foo")); _foo = function() { return data; }; return data; } function _bar() { const data = /*#__PURE__*/ _interop_require_default(require("bar")); _bar = function() { return data; }; return data; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-default/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo"), require("bar")); else if (typeof define === "function" && define.amd) define([ "exports", "foo", "bar" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo, global.bar); })(this, function(exports, _foo, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { bar: function() { return _bar.default; }, default: function() { return _foo.default; }, foo: function() { return _foo.default; } }); _foo = /*#__PURE__*/ _interop_require_default(_foo); _bar = /*#__PURE__*/ _interop_require_default(_bar); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/input.js
JavaScript
export { named1 } from "external";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.amd.js
JavaScript
define([ "require", "exports", "external" ], function(require, exports, _external) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named1", { enumerable: true, get: function() { return _external.named1; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named1", { enumerable: true, get: function() { return _external().named1; } }); function _external() { const data = require("external"); _external = function() { return data; }; return data; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("external")); else if (typeof define === "function" && define.amd) define([ "exports", "external" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.external); })(this, function(exports, _external) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named1", { enumerable: true, get: function() { return _external.named1; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/import-all-from-object-config/input.js
JavaScript
import { local } from "./local"; import { external } from "external"; function use() { local(external); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/import-all-from-object-config/output.amd.js
JavaScript
define([ "require", "exports", "./local", "external" ], function(require, exports, _local, _external) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function use() { (0, _local.local)(_external.external); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/import-all-from-object-config/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _local() { const data = require("./local"); _local = function() { return data; }; return data; } function _external() { const data = require("external"); _external = function() { return data; }; return data; } function use() { (0, _local().local)(_external().external); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/import-all-from-object-config/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./local"), require("external")); else if (typeof define === "function" && define.amd) define([ "exports", "./local", "external" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.local, global.external); })(this, function(exports, _local, _external) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function use() { (0, _local.local)(_external.external); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/import-only-allowed-from-object-config/input.js
JavaScript
import { local } from "./local"; import { external } from "external_test"; import { test } from "test"; function use() { local(external(test)); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/import-only-allowed-from-object-config/output.amd.js
JavaScript
define([ "require", "exports", "./local", "external_test", "test" ], function(require, exports, _local, _external_test, _test) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function use() { (0, _local.local)((0, _external_test.external)(_test.test)); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/import-only-allowed-from-object-config/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _local = require("./local"); const _external_test = require("external_test"); function _test() { const data = require("test"); _test = function() { return data; }; return data; } function use() { (0, _local.local)((0, _external_test.external)(_test().test)); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/import-only-allowed-from-object-config/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./local"), require("external_test"), require("test")); else if (typeof define === "function" && define.amd) define([ "exports", "./local", "external_test", "test" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.local, global.externalTest, global.test); })(this, function(exports, _local, _external_test, _test) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function use() { (0, _local.local)((0, _external_test.external)(_test.test)); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/issue-3081/1/input.js
JavaScript
import { spawn } from "child_process"; function log() { console.log(spawn); } const other = () => { const nestedClosure = () => { spawn("ls"); }; };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/issue-3081/1/output.amd.js
JavaScript
define([ "require", "exports", "child_process" ], function(require, exports, _child_process) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function log() { console.log(_child_process.spawn); } const other = ()=>{ const nestedClosure = ()=>{ (0, _child_process.spawn)("ls"); }; }; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/issue-3081/1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _child_process() { const data = require("child_process"); _child_process = function() { return data; }; return data; } function log() { console.log(_child_process().spawn); } const other = ()=>{ const nestedClosure = ()=>{ (0, _child_process().spawn)("ls"); }; };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/issue-3081/1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("child_process")); else if (typeof define === "function" && define.amd) define([ "exports", "child_process" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.childProcess); })(this, function(exports, _child_process) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function log() { console.log(_child_process.spawn); } const other = ()=>{ const nestedClosure = ()=>{ (0, _child_process.spawn)("ls"); }; }; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/issue-3081/2/input.js
JavaScript
import { fn, Klass } from "lib"; function myFn() { fn(); } class MyClass extends Klass {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/issue-3081/2/output.amd.js
JavaScript
define([ "require", "exports", "lib" ], function(require, exports, _lib) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function myFn() { (0, _lib.fn)(); } class MyClass extends _lib.Klass { } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/issue-3081/2/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _lib() { const data = require("lib"); _lib = function() { return data; }; return data; } function myFn() { (0, _lib().fn)(); } class MyClass extends _lib().Klass { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/issue-3081/2/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("lib")); else if (typeof define === "function" && define.amd) define([ "exports", "lib" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.lib); })(this, function(exports, _lib) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function myFn() { (0, _lib.fn)(); } class MyClass extends _lib.Klass { } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-default/input.js
JavaScript
import foo from "./foo"; console.log(foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-default/output.amd.js
JavaScript
define([ "require", "exports", "./foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_default(_foo); console.log(_foo.default); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-default/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _foo = /*#__PURE__*/ _interop_require_default(require("./foo")); console.log(_foo.default);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-default/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./foo")); else if (typeof define === "function" && define.amd) define([ "exports", "./foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_default(_foo); console.log(_foo.default); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-named/input.js
JavaScript
import { foo } from "./foo"; console.log(foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-named/output.amd.js
JavaScript
define([ "require", "exports", "./foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log(_foo.foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-named/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _foo = require("./foo"); console.log(_foo.foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-named/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./foo")); else if (typeof define === "function" && define.amd) define([ "exports", "./foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); console.log(_foo.foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-namespace/input.js
JavaScript
import * as foo from "./foo"; console.log(foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-namespace/output.amd.js
JavaScript
define([ "require", "exports", "./foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_wildcard(_foo); console.log(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-namespace/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _foo = /*#__PURE__*/ _interop_require_wildcard(require("./foo")); console.log(_foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-import-namespace/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./foo")); else if (typeof define === "function" && define.amd) define([ "exports", "./foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_wildcard(_foo); console.log(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-all/input.js
JavaScript
export * from "./foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-all/output.amd.js
JavaScript
define([ "require", "exports", "./foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(_foo, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-all/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(require("./foo"), exports);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-all/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./foo")); else if (typeof define === "function" && define.amd) define([ "exports", "./foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(_foo, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/input.js
JavaScript
import foo from "./foo"; export { foo as default };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.amd.js
JavaScript
define([ "require", "exports", "./foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _foo.default; } }); _foo = /*#__PURE__*/ _interop_require_default(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _foo.default; } }); const _foo = /*#__PURE__*/ _interop_require_default(require("./foo"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./foo")); else if (typeof define === "function" && define.amd) define([ "exports", "./foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _foo.default; } }); _foo = /*#__PURE__*/ _interop_require_default(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/input.js
JavaScript
import { named } from "./foo"; export { named };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.amd.js
JavaScript
define([ "require", "exports", "./foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named", { enumerable: true, get: function() { return _foo.named; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named", { enumerable: true, get: function() { return _foo.named; } }); const _foo = require("./foo");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./foo")); else if (typeof define === "function" && define.amd) define([ "exports", "./foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named", { enumerable: true, get: function() { return _foo.named; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/input.js
JavaScript
import * as namespace from "./foo"; export { namespace };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.amd.js
JavaScript
define([ "require", "exports", "./foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "namespace", { enumerable: true, get: function() { return _foo; } }); _foo = /*#__PURE__*/ _interop_require_wildcard(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "namespace", { enumerable: true, get: function() { return _foo; } }); const _foo = /*#__PURE__*/ _interop_require_wildcard(require("./foo"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./foo")); else if (typeof define === "function" && define.amd) define([ "exports", "./foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo); })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "namespace", { enumerable: true, get: function() { return _foo; } }); _foo = /*#__PURE__*/ _interop_require_wildcard(_foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-sideeffect/input.js
JavaScript
import "./a";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-sideeffect/output.amd.js
JavaScript
define([ "require", "exports", "./a" ], function(require, exports, _a) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-sideeffect/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("./a");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-sideeffect/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./a")); else if (typeof define === "function" && define.amd) define([ "exports", "./a" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.a); })(this, function(exports, _a) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/not-shadowed-by-labels/.input.js
JavaScript
import { x } from "lib"; function fn() { x(); } x: console.log(1); continue x;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-default/input.js
JavaScript
import foo1 from "white"; console.log(foo1); import foo2 from "black"; console.log(foo2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-default/output.amd.js
JavaScript
define([ "require", "exports", "white", "black" ], function(require, exports, _white, _black) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _white = /*#__PURE__*/ _interop_require_default(_white); _black = /*#__PURE__*/ _interop_require_default(_black); console.log(_white.default); console.log(_black.default); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-default/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _white() { const data = /*#__PURE__*/ _interop_require_default(require("white")); _white = function() { return data; }; return data; } const _black = /*#__PURE__*/ _interop_require_default(require("black")); console.log(_white().default); console.log(_black.default);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-default/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("white"), require("black")); else if (typeof define === "function" && define.amd) define([ "exports", "white", "black" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.white, global.black); })(this, function(exports, _white, _black) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _white = /*#__PURE__*/ _interop_require_default(_white); _black = /*#__PURE__*/ _interop_require_default(_black); console.log(_white.default); console.log(_black.default); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-named/input.js
JavaScript
import { foo1 } from "white"; function use1() { console.log(foo1); } import { foo2 } from "black"; function use2() { console.log(foo2); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-named/output.amd.js
JavaScript
define([ "require", "exports", "white", "black" ], function(require, exports, _white, _black) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function use1() { console.log(_white.foo1); } function use2() { console.log(_black.foo2); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-named/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _white() { const data = require("white"); _white = function() { return data; }; return data; } const _black = require("black"); function use1() { console.log(_white().foo1); } function use2() { console.log(_black.foo2); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-named/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("white"), require("black")); else if (typeof define === "function" && define.amd) define([ "exports", "white", "black" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.white, global.black); })(this, function(exports, _white, _black) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function use1() { console.log(_white.foo1); } function use2() { console.log(_black.foo2); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-namespace/input.js
JavaScript
import * as foo1 from "white"; function use1() { console.log(foo1); } import * as foo2 from "black"; function use2() { console.log(foo2); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-namespace/output.amd.js
JavaScript
define([ "require", "exports", "white", "black" ], function(require, exports, _white, _black) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _white = /*#__PURE__*/ _interop_require_wildcard(_white); _black = /*#__PURE__*/ _interop_require_wildcard(_black); function use1() { console.log(_white); } function use2() { console.log(_black); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-namespace/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _white() { const data = /*#__PURE__*/ _interop_require_wildcard(require("white")); _white = function() { return data; }; return data; } const _black = /*#__PURE__*/ _interop_require_wildcard(require("black")); function use1() { console.log(_white()); } function use2() { console.log(_black); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/import-namespace/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("white"), require("black")); else if (typeof define === "function" && define.amd) define([ "exports", "white", "black" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.white, global.black); })(this, function(exports, _white, _black) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _white = /*#__PURE__*/ _interop_require_wildcard(_white); _black = /*#__PURE__*/ _interop_require_wildcard(_black); function use1() { console.log(_white); } function use2() { console.log(_black); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-all/input.js
JavaScript
export * from "white"; export * from "black";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-all/output.amd.js
JavaScript
define([ "require", "exports", "white", "black" ], function(require, exports, _white, _black) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(_white, exports); _export_star(_black, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-all/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(require("white"), exports); _export_star(require("black"), exports);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-all/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("white"), require("black")); else if (typeof define === "function" && define.amd) define([ "exports", "white", "black" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.white, global.black); })(this, function(exports, _white, _black) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _export_star(_white, exports); _export_star(_black, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/input.js
JavaScript
import foo from "white"; export { foo as default };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.amd.js
JavaScript
define([ "require", "exports", "white" ], function(require, exports, _white) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _white.default; } }); _white = /*#__PURE__*/ _interop_require_default(_white); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University