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/issue-176/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(); else if (typeof define === "function" && define.amd) define([], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(); })(this, function() { "use strict"; let x = 4; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/input.js
JavaScript
export const BIZ = "biz"; export * from "./File1"; export * from "./File2";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.amd.js
JavaScript
define([ "require", "exports", "./File1", "./File2" ], function(require, exports, _File1, _File2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "BIZ", { enumerable: true, get: function() { return BIZ; } }); _export_star(_File1, exports); _export_star(_File2, exports); const BIZ = "biz"; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "BIZ", { enumerable: true, get: function() { return BIZ; } }); _export_star(require("./File1"), exports); _export_star(require("./File2"), exports); const BIZ = "biz";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./File1"), require("./File2")); else if (typeof define === "function" && define.amd) define([ "exports", "./File1", "./File2" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.file1, global.file2); })(this, function(exports, _File1, _File2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "BIZ", { enumerable: true, get: function() { return BIZ; } }); _export_star(_File1, exports); _export_star(_File2, exports); const BIZ = "biz"; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/input.js
JavaScript
import Foo from "foo"; export { Foo } from "foo";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.amd.js
JavaScript
define([ "require", "exports", "foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Foo", { enumerable: true, get: function() { return _foo.Foo; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Foo", { enumerable: true, get: function() { return _foo.Foo; } }); const _foo = require("foo");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/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, "Foo", { enumerable: true, get: function() { return _foo.Foo; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1787/1/input.js
JavaScript
import bar from "./bar/foo"; import baz from "./baz/foo"; const a = [baz, bar];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1787/1/output.amd.js
JavaScript
define([ "require", "exports", "./bar/foo", "./baz/foo" ], function(require, exports, _foo, _foo1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_default(_foo); _foo1 = /*#__PURE__*/ _interop_require_default(_foo1); const a = [ _foo1.default, _foo.default ]; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1787/1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _foo = /*#__PURE__*/ _interop_require_default(require("./bar/foo")); const _foo1 = /*#__PURE__*/ _interop_require_default(require("./baz/foo")); const a = [ _foo1.default, _foo.default ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1787/1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./bar/foo"), require("./baz/foo")); else if (typeof define === "function" && define.amd) define([ "exports", "./bar/foo", "./baz/foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo, global.foo); })(this, function(exports, _foo, _foo1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_default(_foo); _foo1 = /*#__PURE__*/ _interop_require_default(_foo1); const a = [ _foo1.default, _foo.default ]; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/input.js
JavaScript
export default function Foo() { return 500; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.amd.js
JavaScript
define([ "require", "exports" ], function(require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return Foo; } }); function Foo() { return 500; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return Foo; } }); function Foo() { return 500; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports); else if (typeof define === "function" && define.amd) define([ "exports" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}); })(this, function(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return Foo; } }); function Foo() { return 500; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/input.js
JavaScript
export default function () { return 500; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.amd.js
JavaScript
define([ "require", "exports" ], function(require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _default; } }); function _default() { return 500; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _default; } }); function _default() { return 500; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports); else if (typeof define === "function" && define.amd) define([ "exports" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}); })(this, function(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _default; } }); function _default() { return 500; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/input.js
JavaScript
import { customRender } from "./customRender"; // re-export everything export * from "@testing-library/react"; // override render method export { customRender as render };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.amd.js
JavaScript
define([ "require", "exports", "./customRender", "@testing-library/react" ], function(require, exports, _customRender, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { enumerable: true, get: function() { return _customRender.customRender; } }); _export_star(_react, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { enumerable: true, get: function() { return _customRender.customRender; } }); const _customRender = require("./customRender"); _export_star(require("@testing-library/react"), exports);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./customRender"), require("@testing-library/react")); else if (typeof define === "function" && define.amd) define([ "exports", "./customRender", "@testing-library/react" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.customRender, global.react); })(this, function(exports, _customRender, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { enumerable: true, get: function() { return _customRender.customRender; } }); _export_star(_react, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/input.js
JavaScript
import { customRender } from "./customRender"; // override render method export { customRender as render }; // re-ordering the export wildcard from case 1 should make no difference to output // re-export everything export * from "@testing-library/react";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.amd.js
JavaScript
define([ "require", "exports", "./customRender", "@testing-library/react" ], function(require, exports, _customRender, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { enumerable: true, get: function() { return _customRender.customRender; } }); _export_star(_react, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { enumerable: true, get: function() { return _customRender.customRender; } }); const _customRender = require("./customRender"); _export_star(require("@testing-library/react"), exports);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./customRender"), require("@testing-library/react")); else if (typeof define === "function" && define.amd) define([ "exports", "./customRender", "@testing-library/react" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.customRender, global.react); })(this, function(exports, _customRender, _react) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { enumerable: true, get: function() { return _customRender.customRender; } }); _export_star(_react, exports); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2211/1/input.js
JavaScript
import { bar } from "./bar"; const makeX = () => { const _bar = () => bar(); return { _bar }; }; makeX()._bar();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2211/1/output.amd.js
JavaScript
define([ "require", "exports", "./bar" ], function(require, exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const makeX = ()=>{ const _bar1 = ()=>(0, _bar.bar)(); return { _bar: _bar1 }; }; makeX()._bar(); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2211/1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _bar = require("./bar"); const makeX = ()=>{ const _bar1 = ()=>(0, _bar.bar)(); return { _bar: _bar1 }; }; makeX()._bar();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2211/1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./bar")); else if (typeof define === "function" && define.amd) define([ "exports", "./bar" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.bar); })(this, function(exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const makeX = ()=>{ const _bar1 = ()=>(0, _bar.bar)(); return { _bar: _bar1 }; }; makeX()._bar(); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2211/2/input.js
JavaScript
import { bar } from "./bar"; const makeX = () => { const _bar = () => bar(); const alfa = () => _bar(); return { alfa }; };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2211/2/output.amd.js
JavaScript
define([ "require", "exports", "./bar" ], function(require, exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const makeX = ()=>{ const _bar1 = ()=>(0, _bar.bar)(); const alfa = ()=>_bar1(); return { alfa }; }; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2211/2/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _bar = require("./bar"); const makeX = ()=>{ const _bar1 = ()=>(0, _bar.bar)(); const alfa = ()=>_bar1(); return { alfa }; };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2211/2/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./bar")); else if (typeof define === "function" && define.amd) define([ "exports", "./bar" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.bar); })(this, function(exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const makeX = ()=>{ const _bar1 = ()=>(0, _bar.bar)(); const alfa = ()=>_bar1(); return { alfa }; }; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2297/input.js
JavaScript
import { bar } from "./Bar"; const makeX = (props) => { const _bar = props.bar; const { list } = _bar; return list.map(() => bar); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2297/output.amd.js
JavaScript
define([ "require", "exports", "./Bar" ], function(require, exports, _Bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const makeX = (props)=>{ const _bar = props.bar; const { list } = _bar; return list.map(()=>_Bar.bar); }; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2297/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _Bar = require("./Bar"); const makeX = (props)=>{ const _bar = props.bar; const { list } = _bar; return list.map(()=>_Bar.bar); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2297/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./Bar")); else if (typeof define === "function" && define.amd) define([ "exports", "./Bar" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.bar); })(this, function(exports, _Bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const makeX = (props)=>{ const _bar = props.bar; const { list } = _bar; return list.map(()=>_Bar.bar); }; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/1/input.js
JavaScript
class LoggingButton extends React.Component { handleClick = () => { console.log("this is:", this); }; m() { this; } static a = () => this; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/1/output.amd.js
JavaScript
define([ "require" ], function(require) { "use strict"; class LoggingButton extends React.Component { handleClick = ()=>{ console.log("this is:", this); }; m() { this; } static a = ()=>this; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/1/output.cjs
JavaScript
"use strict"; class LoggingButton extends React.Component { handleClick = ()=>{ console.log("this is:", this); }; m() { this; } static a = ()=>this; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(); else if (typeof define === "function" && define.amd) define([], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(); })(this, function() { "use strict"; class LoggingButton extends React.Component { handleClick = ()=>{ console.log("this is:", this); }; m() { this; } static a = ()=>this; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/2/input.js
JavaScript
class A { // this is weird I know [(() => this)()] = 123; } class B { // this is weird too I know [(() => this)()]() {} } class C { static [(() => this)()] = 1; } class D { static d = class { [(() => this)()]() {} }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/2/output.amd.js
JavaScript
define([ "require" ], function(require) { "use strict"; class A { // this is weird I know [(()=>void 0)()] = 123; } class B { // this is weird too I know [(()=>void 0)()]() {} } class C { static [(()=>void 0)()] = 1; } class D { static d = class { [(()=>this)()]() {} }; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/2/output.cjs
JavaScript
"use strict"; class A { // this is weird I know [(()=>void 0)()] = 123; } class B { // this is weird too I know [(()=>void 0)()]() {} } class C { static [(()=>void 0)()] = 1; } class D { static d = class { [(()=>this)()]() {} }; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/2/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(); else if (typeof define === "function" && define.amd) define([], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(); })(this, function() { "use strict"; class A { // this is weird I know [(()=>void 0)()] = 123; } class B { // this is weird too I know [(()=>void 0)()]() {} } class C { static [(()=>void 0)()] = 1; } class D { static d = class { [(()=>this)()]() {} }; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/3/input.js
JavaScript
class A { static { this.a = 123; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/3/output.amd.js
JavaScript
define([ "require" ], function(require) { "use strict"; class A { static{ this.a = 123; } } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/3/output.cjs
JavaScript
"use strict"; class A { static{ this.a = 123; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2344/3/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(); else if (typeof define === "function" && define.amd) define([], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(); })(this, function() { "use strict"; class A { static{ this.a = 123; } } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/input.js
JavaScript
import { Foo as Bar } from "something"; export const fn = ({ a = new Bar() }) => a;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.amd.js
JavaScript
define([ "require", "exports", "something" ], function(require, exports, _something) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "fn", { enumerable: true, get: function() { return fn; } }); const fn = ({ a =new _something.Foo() })=>a; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "fn", { enumerable: true, get: function() { return fn; } }); const _something = require("something"); const fn = ({ a =new _something.Foo() })=>a;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("something")); else if (typeof define === "function" && define.amd) define([ "exports", "something" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.something); })(this, function(exports, _something) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "fn", { enumerable: true, get: function() { return fn; } }); const fn = ({ a =new _something.Foo() })=>a; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/input.js
JavaScript
export { default as X } from "./Z";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.amd.js
JavaScript
define([ "require", "exports", "./Z" ], function(require, exports, _Z) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "X", { enumerable: true, get: function() { return _Z.default; } }); _Z = /*#__PURE__*/ _interop_require_default(_Z); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "X", { enumerable: true, get: function() { return _Z.default; } }); const _Z = /*#__PURE__*/ _interop_require_default(require("./Z"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./Z")); else if (typeof define === "function" && define.amd) define([ "exports", "./Z" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.z); })(this, function(exports, _Z) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "X", { enumerable: true, get: function() { return _Z.default; } }); _Z = /*#__PURE__*/ _interop_require_default(_Z); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/input.js
JavaScript
export { default as X } from "./Z"; export * from "./Z";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.amd.js
JavaScript
define([ "require", "exports", "./Z" ], function(require, exports, _Z) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "X", { enumerable: true, get: function() { return _Z.default; } }); _Z = /*#__PURE__*/ _interop_require_default(_export_star(_Z, exports)); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "X", { enumerable: true, get: function() { return _Z.default; } }); const _Z = /*#__PURE__*/ _interop_require_default(_export_star(require("./Z"), exports));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./Z")); else if (typeof define === "function" && define.amd) define([ "exports", "./Z" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.z); })(this, function(exports, _Z) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "X", { enumerable: true, get: function() { return _Z.default; } }); _Z = /*#__PURE__*/ _interop_require_default(_export_star(_Z, exports)); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/input.js
JavaScript
export { default as X, X2, Y } from "./Z"; export * from "./Z";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.amd.js
JavaScript
define([ "require", "exports", "./Z" ], function(require, exports, _Z) { "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, { X: function() { return _Z.default; }, X2: function() { return _Z.X2; }, Y: function() { return _Z.Y; } }); _Z = /*#__PURE__*/ _interop_require_wildcard(_export_star(_Z, exports)); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/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, { X: function() { return _Z.default; }, X2: function() { return _Z.X2; }, Y: function() { return _Z.Y; } }); const _Z = /*#__PURE__*/ _interop_require_wildcard(_export_star(require("./Z"), exports));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./Z")); else if (typeof define === "function" && define.amd) define([ "exports", "./Z" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.z); })(this, function(exports, _Z) { "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, { X: function() { return _Z.default; }, X2: function() { return _Z.X2; }, Y: function() { return _Z.Y; } }); _Z = /*#__PURE__*/ _interop_require_wildcard(_export_star(_Z, exports)); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/input.js
JavaScript
function log() { console.log("unexported"); } export function noassign() { console.log("stub"); } export function warn() { throw new Error("this should not be called"); } export const errors = { a: 1, }; export const addOne = (x) => `${x + 1}`; export const someFunc = (x) => `The answer is : ${addOne(x)}`; export const test = {}; Object.defineProperty(test, "log", { get: function get() { return log; }, set: function set(v) { log = v; }, }); Object.defineProperty(test, "warn", { get: () => warn, set: (v) => { warn = v; }, }); Object.defineProperty(test, "errors", { get: () => errors, set: (v) => { errors = v; }, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.amd.js
JavaScript
define([ "require", "exports" ], function(require, exports) { "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, { addOne: function() { return addOne; }, errors: function() { return errors; }, noassign: function() { return noassign; }, someFunc: function() { return someFunc; }, test: function() { return test; }, warn: function() { return warn; } }); function log() { console.log("unexported"); } function noassign() { console.log("stub"); } function warn() { throw new Error("this should not be called"); } const errors = { a: 1 }; const addOne = (x)=>`${x + 1}`; const someFunc = (x)=>`The answer is : ${addOne(x)}`; const test = {}; Object.defineProperty(test, "log", { get: function get() { return log; }, set: function set(v) { log = v; } }); Object.defineProperty(test, "warn", { get: ()=>warn, set: (v)=>{ warn = v; } }); Object.defineProperty(test, "errors", { get: ()=>errors, set: (v)=>{ errors = v; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/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, { addOne: function() { return addOne; }, errors: function() { return errors; }, noassign: function() { return noassign; }, someFunc: function() { return someFunc; }, test: function() { return test; }, warn: function() { return warn; } }); function log() { console.log("unexported"); } function noassign() { console.log("stub"); } function warn() { throw new Error("this should not be called"); } const errors = { a: 1 }; const addOne = (x)=>`${x + 1}`; const someFunc = (x)=>`The answer is : ${addOne(x)}`; const test = {}; Object.defineProperty(test, "log", { get: function get() { return log; }, set: function set(v) { log = v; } }); Object.defineProperty(test, "warn", { get: ()=>warn, set: (v)=>{ warn = v; } }); Object.defineProperty(test, "errors", { get: ()=>errors, set: (v)=>{ errors = v; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports); else if (typeof define === "function" && define.amd) define([ "exports" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}); })(this, function(exports) { "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, { addOne: function() { return addOne; }, errors: function() { return errors; }, noassign: function() { return noassign; }, someFunc: function() { return someFunc; }, test: function() { return test; }, warn: function() { return warn; } }); function log() { console.log("unexported"); } function noassign() { console.log("stub"); } function warn() { throw new Error("this should not be called"); } const errors = { a: 1 }; const addOne = (x)=>`${x + 1}`; const someFunc = (x)=>`The answer is : ${addOne(x)}`; const test = {}; Object.defineProperty(test, "log", { get: function get() { return log; }, set: function set(v) { log = v; } }); Object.defineProperty(test, "warn", { get: ()=>warn, set: (v)=>{ warn = v; } }); Object.defineProperty(test, "errors", { get: ()=>errors, set: (v)=>{ errors = v; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/input.js
JavaScript
export default function someCall() { throw new Error("this should not be called"); } export function warn() { throw new Error("this should not be called"); } export const test = {}; Object.defineProperty(test, "someCall", { set: (v) => { someCall = v; }, }); Object.defineProperty(test, "warn", { get: () => warn, set: (v) => { warn = v; }, });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.amd.js
JavaScript
define([ "require", "exports" ], function(require, exports) { "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, { default: function() { return someCall; }, test: function() { return test; }, warn: function() { return warn; } }); function someCall() { throw new Error("this should not be called"); } function warn() { throw new Error("this should not be called"); } const test = {}; Object.defineProperty(test, "someCall", { set: (v)=>{ someCall = v; } }); Object.defineProperty(test, "warn", { get: ()=>warn, set: (v)=>{ warn = v; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/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, { default: function() { return someCall; }, test: function() { return test; }, warn: function() { return warn; } }); function someCall() { throw new Error("this should not be called"); } function warn() { throw new Error("this should not be called"); } const test = {}; Object.defineProperty(test, "someCall", { set: (v)=>{ someCall = v; } }); Object.defineProperty(test, "warn", { get: ()=>warn, set: (v)=>{ warn = v; } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports); else if (typeof define === "function" && define.amd) define([ "exports" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}); })(this, function(exports) { "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, { default: function() { return someCall; }, test: function() { return test; }, warn: function() { return warn; } }); function someCall() { throw new Error("this should not be called"); } function warn() { throw new Error("this should not be called"); } const test = {}; Object.defineProperty(test, "someCall", { set: (v)=>{ someCall = v; } }); Object.defineProperty(test, "warn", { get: ()=>warn, set: (v)=>{ warn = v; } }); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3246/1/input.js
JavaScript
import { foo } from "bar"; import(foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3246/1/output.amd.js
JavaScript
define([ "require", "exports", "bar" ], function(require, exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new Promise((resolve, reject)=>require([ _bar.foo ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3246/1/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _bar = require("bar"); Promise.resolve(_bar.foo).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p)));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3246/1/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("bar")); else if (typeof define === "function" && define.amd) define([ "exports", "bar" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.bar); })(this, function(exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); import(_bar.foo); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3246/2/input.js
JavaScript
import foo from "bar"; import(foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3246/2/output.amd.js
JavaScript
define([ "require", "exports", "bar" ], function(require, exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _bar = /*#__PURE__*/ _interop_require_default(_bar); new Promise((resolve, reject)=>require([ _bar.default ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3246/2/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _bar = /*#__PURE__*/ _interop_require_default(require("bar")); Promise.resolve(_bar.default).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p)));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3246/2/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("bar")); else if (typeof define === "function" && define.amd) define([ "exports", "bar" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.bar); })(this, function(exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _bar = /*#__PURE__*/ _interop_require_default(_bar); import(_bar.default); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-326/input.js
JavaScript
import foo from "foo"; import bar from "../foo"; foo, bar;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-326/output.amd.js
JavaScript
define([ "require", "exports", "foo", "../foo" ], function(require, exports, _foo, _foo1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_default(_foo); _foo1 = /*#__PURE__*/ _interop_require_default(_foo1); _foo.default, _foo1.default; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-326/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _foo = /*#__PURE__*/ _interop_require_default(require("foo")); const _foo1 = /*#__PURE__*/ _interop_require_default(require("../foo")); _foo.default, _foo1.default;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-326/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo"), require("../foo")); else if (typeof define === "function" && define.amd) define([ "exports", "foo", "../foo" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo, global.foo); })(this, function(exports, _foo, _foo1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _foo = /*#__PURE__*/ _interop_require_default(_foo); _foo1 = /*#__PURE__*/ _interop_require_default(_foo1); _foo.default, _foo1.default; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/input.js
JavaScript
import foo from "foo"; export const bar = { foo };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.amd.js
JavaScript
define([ "require", "exports", "foo" ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "bar", { enumerable: true, get: function() { return bar; } }); _foo = /*#__PURE__*/ _interop_require_default(_foo); const bar = { foo: _foo.default }; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "bar", { enumerable: true, get: function() { return bar; } }); const _foo = /*#__PURE__*/ _interop_require_default(require("foo")); const bar = { foo: _foo.default };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/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, "bar", { enumerable: true, get: function() { return bar; } }); _foo = /*#__PURE__*/ _interop_require_default(_foo); const bar = { foo: _foo.default }; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-335/input.js
JavaScript
import bar from "bar"; obj[bar("bas")] = "123";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-335/output.amd.js
JavaScript
define([ "require", "exports", "bar" ], function(require, exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _bar = /*#__PURE__*/ _interop_require_default(_bar); obj[(0, _bar.default)("bas")] = "123"; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-335/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _bar = /*#__PURE__*/ _interop_require_default(require("bar")); obj[(0, _bar.default)("bas")] = "123";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-335/output.umd.js
JavaScript
(function(global, factory) { if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("bar")); else if (typeof define === "function" && define.amd) define([ "exports", "bar" ], factory); else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.bar); })(this, function(exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); _bar = /*#__PURE__*/ _interop_require_default(_bar); obj[(0, _bar.default)("bas")] = "123"; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3438/input.js
JavaScript
import { foo } from "bar"; import(`world/${foo(baz)}.js`);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3438/output.amd.js
JavaScript
define([ "require", "exports", "bar" ], function(require, exports, _bar) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new Promise((resolve, reject)=>require([ `world/${(0, _bar.foo)(baz)}.js` ], (m)=>resolve(/*#__PURE__*/ _interop_require_wildcard(m)), reject)); });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_module/tests/fixture/common/issue-3438/output.cjs
JavaScript
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _bar = require("bar"); Promise.resolve(`world/${(0, _bar.foo)(baz)}.js`).then((p)=>/*#__PURE__*/ _interop_require_wildcard(require(p)));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University