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/interop-node/export-from-3/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
bar: null,
foo: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return _foo.bar;
},
foo: 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/interop-node/export-from-3/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 _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return _foo.bar;
},
foo: function() {
return _foo.foo;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/input.js | JavaScript | export { foo as bar } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/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 _foo.foo;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "bar", {
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/interop-node/export-from-4/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 _foo.foo;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/input.js | JavaScript | export { foo as default } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/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.foo;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
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/interop-node/export-from-5/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.foo;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/input.js | JavaScript | export { bar, foo as default } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"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 _foo.bar;
},
default: function() {
return _foo.foo;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
bar: null,
default: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return _foo.bar;
},
default: 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/interop-node/export-from-6/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 _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return _foo.bar;
},
default: function() {
return _foo.foo;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/input.js | JavaScript | export { default as foo } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/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.default;
}
});
_foo = _foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "foo", {
enumerable: true,
get: function() {
return _foo.default;
}
});
const _foo = require("foo");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/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.default;
}
});
_foo = _foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/input.js | JavaScript | import {
foo,
foo1,
foo10,
foo100,
foo11,
foo12,
foo13,
foo14,
foo15,
foo16,
foo17,
foo18,
foo19,
foo2,
foo20,
foo21,
foo22,
foo23,
foo24,
foo25,
foo26,
foo27,
foo28,
foo29,
foo3,
foo30,
foo31,
foo32,
foo33,
foo34,
foo35,
foo36,
foo37,
foo38,
foo39,
foo4,
foo40,
foo41,
foo42,
foo43,
foo44,
foo45,
foo46,
foo47,
foo48,
foo49,
foo5,
foo50,
foo51,
foo52,
foo53,
foo54,
foo55,
foo56,
foo57,
foo58,
foo59,
foo6,
foo60,
foo61,
foo62,
foo63,
foo64,
foo65,
foo66,
foo67,
foo68,
foo69,
foo7,
foo70,
foo71,
foo72,
foo73,
foo74,
foo75,
foo76,
foo77,
foo78,
foo79,
foo8,
foo80,
foo81,
foo82,
foo83,
foo84,
foo85,
foo86,
foo87,
foo88,
foo89,
foo9,
foo90,
foo91,
foo92,
foo93,
foo94,
foo95,
foo96,
foo97,
foo98,
foo99,
} from "foo";
export {
foo,
foo1,
foo10,
foo100,
foo11,
foo12,
foo13,
foo14,
foo15,
foo16,
foo17,
foo18,
foo19,
foo2,
foo20,
foo21,
foo22,
foo23,
foo24,
foo25,
foo26,
foo27,
foo28,
foo29,
foo3,
foo30,
foo31,
foo32,
foo33,
foo34,
foo35,
foo36,
foo37,
foo38,
foo39,
foo4,
foo40,
foo41,
foo42,
foo43,
foo44,
foo45,
foo46,
foo47,
foo48,
foo49,
foo5,
foo50,
foo51,
foo52,
foo53,
foo54,
foo55,
foo56,
foo57,
foo58,
foo59,
foo6,
foo60,
foo61,
foo62,
foo63,
foo64,
foo65,
foo66,
foo67,
foo68,
foo69,
foo7,
foo70,
foo71,
foo72,
foo73,
foo74,
foo75,
foo76,
foo77,
foo78,
foo79,
foo8,
foo80,
foo81,
foo82,
foo83,
foo84,
foo85,
foo86,
foo87,
foo88,
foo89,
foo9,
foo90,
foo91,
foo92,
foo93,
foo94,
foo95,
foo96,
foo97,
foo98,
foo99,
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"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, {
foo: function() {
return _foo.foo;
},
foo1: function() {
return _foo.foo1;
},
foo10: function() {
return _foo.foo10;
},
foo100: function() {
return _foo.foo100;
},
foo11: function() {
return _foo.foo11;
},
foo12: function() {
return _foo.foo12;
},
foo13: function() {
return _foo.foo13;
},
foo14: function() {
return _foo.foo14;
},
foo15: function() {
return _foo.foo15;
},
foo16: function() {
return _foo.foo16;
},
foo17: function() {
return _foo.foo17;
},
foo18: function() {
return _foo.foo18;
},
foo19: function() {
return _foo.foo19;
},
foo2: function() {
return _foo.foo2;
},
foo20: function() {
return _foo.foo20;
},
foo21: function() {
return _foo.foo21;
},
foo22: function() {
return _foo.foo22;
},
foo23: function() {
return _foo.foo23;
},
foo24: function() {
return _foo.foo24;
},
foo25: function() {
return _foo.foo25;
},
foo26: function() {
return _foo.foo26;
},
foo27: function() {
return _foo.foo27;
},
foo28: function() {
return _foo.foo28;
},
foo29: function() {
return _foo.foo29;
},
foo3: function() {
return _foo.foo3;
},
foo30: function() {
return _foo.foo30;
},
foo31: function() {
return _foo.foo31;
},
foo32: function() {
return _foo.foo32;
},
foo33: function() {
return _foo.foo33;
},
foo34: function() {
return _foo.foo34;
},
foo35: function() {
return _foo.foo35;
},
foo36: function() {
return _foo.foo36;
},
foo37: function() {
return _foo.foo37;
},
foo38: function() {
return _foo.foo38;
},
foo39: function() {
return _foo.foo39;
},
foo4: function() {
return _foo.foo4;
},
foo40: function() {
return _foo.foo40;
},
foo41: function() {
return _foo.foo41;
},
foo42: function() {
return _foo.foo42;
},
foo43: function() {
return _foo.foo43;
},
foo44: function() {
return _foo.foo44;
},
foo45: function() {
return _foo.foo45;
},
foo46: function() {
return _foo.foo46;
},
foo47: function() {
return _foo.foo47;
},
foo48: function() {
return _foo.foo48;
},
foo49: function() {
return _foo.foo49;
},
foo5: function() {
return _foo.foo5;
},
foo50: function() {
return _foo.foo50;
},
foo51: function() {
return _foo.foo51;
},
foo52: function() {
return _foo.foo52;
},
foo53: function() {
return _foo.foo53;
},
foo54: function() {
return _foo.foo54;
},
foo55: function() {
return _foo.foo55;
},
foo56: function() {
return _foo.foo56;
},
foo57: function() {
return _foo.foo57;
},
foo58: function() {
return _foo.foo58;
},
foo59: function() {
return _foo.foo59;
},
foo6: function() {
return _foo.foo6;
},
foo60: function() {
return _foo.foo60;
},
foo61: function() {
return _foo.foo61;
},
foo62: function() {
return _foo.foo62;
},
foo63: function() {
return _foo.foo63;
},
foo64: function() {
return _foo.foo64;
},
foo65: function() {
return _foo.foo65;
},
foo66: function() {
return _foo.foo66;
},
foo67: function() {
return _foo.foo67;
},
foo68: function() {
return _foo.foo68;
},
foo69: function() {
return _foo.foo69;
},
foo7: function() {
return _foo.foo7;
},
foo70: function() {
return _foo.foo70;
},
foo71: function() {
return _foo.foo71;
},
foo72: function() {
return _foo.foo72;
},
foo73: function() {
return _foo.foo73;
},
foo74: function() {
return _foo.foo74;
},
foo75: function() {
return _foo.foo75;
},
foo76: function() {
return _foo.foo76;
},
foo77: function() {
return _foo.foo77;
},
foo78: function() {
return _foo.foo78;
},
foo79: function() {
return _foo.foo79;
},
foo8: function() {
return _foo.foo8;
},
foo80: function() {
return _foo.foo80;
},
foo81: function() {
return _foo.foo81;
},
foo82: function() {
return _foo.foo82;
},
foo83: function() {
return _foo.foo83;
},
foo84: function() {
return _foo.foo84;
},
foo85: function() {
return _foo.foo85;
},
foo86: function() {
return _foo.foo86;
},
foo87: function() {
return _foo.foo87;
},
foo88: function() {
return _foo.foo88;
},
foo89: function() {
return _foo.foo89;
},
foo9: function() {
return _foo.foo9;
},
foo90: function() {
return _foo.foo90;
},
foo91: function() {
return _foo.foo91;
},
foo92: function() {
return _foo.foo92;
},
foo93: function() {
return _foo.foo93;
},
foo94: function() {
return _foo.foo94;
},
foo95: function() {
return _foo.foo95;
},
foo96: function() {
return _foo.foo96;
},
foo97: function() {
return _foo.foo97;
},
foo98: function() {
return _foo.foo98;
},
foo99: function() {
return _foo.foo99;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
foo: null,
foo1: null,
foo10: null,
foo100: null,
foo11: null,
foo12: null,
foo13: null,
foo14: null,
foo15: null,
foo16: null,
foo17: null,
foo18: null,
foo19: null,
foo2: null,
foo20: null,
foo21: null,
foo22: null,
foo23: null,
foo24: null,
foo25: null,
foo26: null,
foo27: null,
foo28: null,
foo29: null,
foo3: null,
foo30: null,
foo31: null,
foo32: null,
foo33: null,
foo34: null,
foo35: null,
foo36: null,
foo37: null,
foo38: null,
foo39: null,
foo4: null,
foo40: null,
foo41: null,
foo42: null,
foo43: null,
foo44: null,
foo45: null,
foo46: null,
foo47: null,
foo48: null,
foo49: null,
foo5: null,
foo50: null,
foo51: null,
foo52: null,
foo53: null,
foo54: null,
foo55: null,
foo56: null,
foo57: null,
foo58: null,
foo59: null,
foo6: null,
foo60: null,
foo61: null,
foo62: null,
foo63: null,
foo64: null,
foo65: null,
foo66: null,
foo67: null,
foo68: null,
foo69: null,
foo7: null,
foo70: null,
foo71: null,
foo72: null,
foo73: null,
foo74: null,
foo75: null,
foo76: null,
foo77: null,
foo78: null,
foo79: null,
foo8: null,
foo80: null,
foo81: null,
foo82: null,
foo83: null,
foo84: null,
foo85: null,
foo86: null,
foo87: null,
foo88: null,
foo89: null,
foo9: null,
foo90: null,
foo91: null,
foo92: null,
foo93: null,
foo94: null,
foo95: null,
foo96: null,
foo97: null,
foo98: null,
foo99: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
foo: function() {
return _foo.foo;
},
foo1: function() {
return _foo.foo1;
},
foo10: function() {
return _foo.foo10;
},
foo100: function() {
return _foo.foo100;
},
foo11: function() {
return _foo.foo11;
},
foo12: function() {
return _foo.foo12;
},
foo13: function() {
return _foo.foo13;
},
foo14: function() {
return _foo.foo14;
},
foo15: function() {
return _foo.foo15;
},
foo16: function() {
return _foo.foo16;
},
foo17: function() {
return _foo.foo17;
},
foo18: function() {
return _foo.foo18;
},
foo19: function() {
return _foo.foo19;
},
foo2: function() {
return _foo.foo2;
},
foo20: function() {
return _foo.foo20;
},
foo21: function() {
return _foo.foo21;
},
foo22: function() {
return _foo.foo22;
},
foo23: function() {
return _foo.foo23;
},
foo24: function() {
return _foo.foo24;
},
foo25: function() {
return _foo.foo25;
},
foo26: function() {
return _foo.foo26;
},
foo27: function() {
return _foo.foo27;
},
foo28: function() {
return _foo.foo28;
},
foo29: function() {
return _foo.foo29;
},
foo3: function() {
return _foo.foo3;
},
foo30: function() {
return _foo.foo30;
},
foo31: function() {
return _foo.foo31;
},
foo32: function() {
return _foo.foo32;
},
foo33: function() {
return _foo.foo33;
},
foo34: function() {
return _foo.foo34;
},
foo35: function() {
return _foo.foo35;
},
foo36: function() {
return _foo.foo36;
},
foo37: function() {
return _foo.foo37;
},
foo38: function() {
return _foo.foo38;
},
foo39: function() {
return _foo.foo39;
},
foo4: function() {
return _foo.foo4;
},
foo40: function() {
return _foo.foo40;
},
foo41: function() {
return _foo.foo41;
},
foo42: function() {
return _foo.foo42;
},
foo43: function() {
return _foo.foo43;
},
foo44: function() {
return _foo.foo44;
},
foo45: function() {
return _foo.foo45;
},
foo46: function() {
return _foo.foo46;
},
foo47: function() {
return _foo.foo47;
},
foo48: function() {
return _foo.foo48;
},
foo49: function() {
return _foo.foo49;
},
foo5: function() {
return _foo.foo5;
},
foo50: function() {
return _foo.foo50;
},
foo51: function() {
return _foo.foo51;
},
foo52: function() {
return _foo.foo52;
},
foo53: function() {
return _foo.foo53;
},
foo54: function() {
return _foo.foo54;
},
foo55: function() {
return _foo.foo55;
},
foo56: function() {
return _foo.foo56;
},
foo57: function() {
return _foo.foo57;
},
foo58: function() {
return _foo.foo58;
},
foo59: function() {
return _foo.foo59;
},
foo6: function() {
return _foo.foo6;
},
foo60: function() {
return _foo.foo60;
},
foo61: function() {
return _foo.foo61;
},
foo62: function() {
return _foo.foo62;
},
foo63: function() {
return _foo.foo63;
},
foo64: function() {
return _foo.foo64;
},
foo65: function() {
return _foo.foo65;
},
foo66: function() {
return _foo.foo66;
},
foo67: function() {
return _foo.foo67;
},
foo68: function() {
return _foo.foo68;
},
foo69: function() {
return _foo.foo69;
},
foo7: function() {
return _foo.foo7;
},
foo70: function() {
return _foo.foo70;
},
foo71: function() {
return _foo.foo71;
},
foo72: function() {
return _foo.foo72;
},
foo73: function() {
return _foo.foo73;
},
foo74: function() {
return _foo.foo74;
},
foo75: function() {
return _foo.foo75;
},
foo76: function() {
return _foo.foo76;
},
foo77: function() {
return _foo.foo77;
},
foo78: function() {
return _foo.foo78;
},
foo79: function() {
return _foo.foo79;
},
foo8: function() {
return _foo.foo8;
},
foo80: function() {
return _foo.foo80;
},
foo81: function() {
return _foo.foo81;
},
foo82: function() {
return _foo.foo82;
},
foo83: function() {
return _foo.foo83;
},
foo84: function() {
return _foo.foo84;
},
foo85: function() {
return _foo.foo85;
},
foo86: function() {
return _foo.foo86;
},
foo87: function() {
return _foo.foo87;
},
foo88: function() {
return _foo.foo88;
},
foo89: function() {
return _foo.foo89;
},
foo9: function() {
return _foo.foo9;
},
foo90: function() {
return _foo.foo90;
},
foo91: function() {
return _foo.foo91;
},
foo92: function() {
return _foo.foo92;
},
foo93: function() {
return _foo.foo93;
},
foo94: function() {
return _foo.foo94;
},
foo95: function() {
return _foo.foo95;
},
foo96: function() {
return _foo.foo96;
},
foo97: function() {
return _foo.foo97;
},
foo98: function() {
return _foo.foo98;
},
foo99: function() {
return _foo.foo99;
}
});
const _foo = require("foo");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/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 _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
foo: function() {
return _foo.foo;
},
foo1: function() {
return _foo.foo1;
},
foo10: function() {
return _foo.foo10;
},
foo100: function() {
return _foo.foo100;
},
foo11: function() {
return _foo.foo11;
},
foo12: function() {
return _foo.foo12;
},
foo13: function() {
return _foo.foo13;
},
foo14: function() {
return _foo.foo14;
},
foo15: function() {
return _foo.foo15;
},
foo16: function() {
return _foo.foo16;
},
foo17: function() {
return _foo.foo17;
},
foo18: function() {
return _foo.foo18;
},
foo19: function() {
return _foo.foo19;
},
foo2: function() {
return _foo.foo2;
},
foo20: function() {
return _foo.foo20;
},
foo21: function() {
return _foo.foo21;
},
foo22: function() {
return _foo.foo22;
},
foo23: function() {
return _foo.foo23;
},
foo24: function() {
return _foo.foo24;
},
foo25: function() {
return _foo.foo25;
},
foo26: function() {
return _foo.foo26;
},
foo27: function() {
return _foo.foo27;
},
foo28: function() {
return _foo.foo28;
},
foo29: function() {
return _foo.foo29;
},
foo3: function() {
return _foo.foo3;
},
foo30: function() {
return _foo.foo30;
},
foo31: function() {
return _foo.foo31;
},
foo32: function() {
return _foo.foo32;
},
foo33: function() {
return _foo.foo33;
},
foo34: function() {
return _foo.foo34;
},
foo35: function() {
return _foo.foo35;
},
foo36: function() {
return _foo.foo36;
},
foo37: function() {
return _foo.foo37;
},
foo38: function() {
return _foo.foo38;
},
foo39: function() {
return _foo.foo39;
},
foo4: function() {
return _foo.foo4;
},
foo40: function() {
return _foo.foo40;
},
foo41: function() {
return _foo.foo41;
},
foo42: function() {
return _foo.foo42;
},
foo43: function() {
return _foo.foo43;
},
foo44: function() {
return _foo.foo44;
},
foo45: function() {
return _foo.foo45;
},
foo46: function() {
return _foo.foo46;
},
foo47: function() {
return _foo.foo47;
},
foo48: function() {
return _foo.foo48;
},
foo49: function() {
return _foo.foo49;
},
foo5: function() {
return _foo.foo5;
},
foo50: function() {
return _foo.foo50;
},
foo51: function() {
return _foo.foo51;
},
foo52: function() {
return _foo.foo52;
},
foo53: function() {
return _foo.foo53;
},
foo54: function() {
return _foo.foo54;
},
foo55: function() {
return _foo.foo55;
},
foo56: function() {
return _foo.foo56;
},
foo57: function() {
return _foo.foo57;
},
foo58: function() {
return _foo.foo58;
},
foo59: function() {
return _foo.foo59;
},
foo6: function() {
return _foo.foo6;
},
foo60: function() {
return _foo.foo60;
},
foo61: function() {
return _foo.foo61;
},
foo62: function() {
return _foo.foo62;
},
foo63: function() {
return _foo.foo63;
},
foo64: function() {
return _foo.foo64;
},
foo65: function() {
return _foo.foo65;
},
foo66: function() {
return _foo.foo66;
},
foo67: function() {
return _foo.foo67;
},
foo68: function() {
return _foo.foo68;
},
foo69: function() {
return _foo.foo69;
},
foo7: function() {
return _foo.foo7;
},
foo70: function() {
return _foo.foo70;
},
foo71: function() {
return _foo.foo71;
},
foo72: function() {
return _foo.foo72;
},
foo73: function() {
return _foo.foo73;
},
foo74: function() {
return _foo.foo74;
},
foo75: function() {
return _foo.foo75;
},
foo76: function() {
return _foo.foo76;
},
foo77: function() {
return _foo.foo77;
},
foo78: function() {
return _foo.foo78;
},
foo79: function() {
return _foo.foo79;
},
foo8: function() {
return _foo.foo8;
},
foo80: function() {
return _foo.foo80;
},
foo81: function() {
return _foo.foo81;
},
foo82: function() {
return _foo.foo82;
},
foo83: function() {
return _foo.foo83;
},
foo84: function() {
return _foo.foo84;
},
foo85: function() {
return _foo.foo85;
},
foo86: function() {
return _foo.foo86;
},
foo87: function() {
return _foo.foo87;
},
foo88: function() {
return _foo.foo88;
},
foo89: function() {
return _foo.foo89;
},
foo9: function() {
return _foo.foo9;
},
foo90: function() {
return _foo.foo90;
},
foo91: function() {
return _foo.foo91;
},
foo92: function() {
return _foo.foo92;
},
foo93: function() {
return _foo.foo93;
},
foo94: function() {
return _foo.foo94;
},
foo95: function() {
return _foo.foo95;
},
foo96: function() {
return _foo.foo96;
},
foo97: function() {
return _foo.foo97;
},
foo98: function() {
return _foo.foo98;
},
foo99: function() {
return _foo.foo99;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/input.js | JavaScript | var foo;
export { foo };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.amd.js | JavaScript | define([
"require",
"exports"
], function(require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "foo", {
enumerable: true,
get: function() {
return foo;
}
});
var foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "foo", {
enumerable: true,
get: function() {
return foo;
}
});
var foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-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, "foo", {
enumerable: true,
get: function() {
return foo;
}
});
var foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/input.js | JavaScript | var foo, bar;
export { bar, foo };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/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, {
bar: function() {
return bar;
},
foo: function() {
return foo;
}
});
var foo, bar;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
bar: null,
foo: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return bar;
},
foo: function() {
return foo;
}
});
var foo, bar;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-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
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return bar;
},
foo: function() {
return foo;
}
});
var foo, bar;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/input.js | JavaScript | var foo;
export { foo as bar };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.amd.js | JavaScript | define([
"require",
"exports"
], function(require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "bar", {
enumerable: true,
get: function() {
return foo;
}
});
var foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "bar", {
enumerable: true,
get: function() {
return foo;
}
});
var foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/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, "bar", {
enumerable: true,
get: function() {
return foo;
}
});
var foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/input.js | JavaScript | var foo;
export { foo as default };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/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;
}
});
var foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return foo;
}
});
var foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/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;
}
});
var foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/input.js | JavaScript | var foo, bar;
export { bar, foo as default };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/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, {
bar: function() {
return bar;
},
default: function() {
return foo;
}
});
var foo, bar;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
bar: null,
default: null
});
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: function() {
return foo;
}
});
var foo, bar;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/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, {
bar: function() {
return bar;
},
default: function() {
return foo;
}
});
var foo, bar;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/input.js | JavaScript | export var foo = 1;
export var foo2 = 1, bar = 2;
export var foo3 = function () {};
export var foo4;
export let foo5 = 2;
export let foo6;
export const foo7 = 3;
export function foo8() {}
export class foo9 {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/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, {
bar: function() {
return bar;
},
foo: function() {
return foo;
},
foo2: function() {
return foo2;
},
foo3: function() {
return foo3;
},
foo4: function() {
return foo4;
},
foo5: function() {
return foo5;
},
foo6: function() {
return foo6;
},
foo7: function() {
return foo7;
},
foo8: function() {
return foo8;
},
foo9: function() {
return foo9;
}
});
var foo = 1;
var foo2 = 1, bar = 2;
var foo3 = function() {};
var foo4;
let foo5 = 2;
let foo6;
const foo7 = 3;
function foo8() {}
class foo9 {
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
bar: null,
foo: null,
foo2: null,
foo3: null,
foo4: null,
foo5: null,
foo6: null,
foo7: null,
foo8: null,
foo9: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return bar;
},
foo: function() {
return foo;
},
foo2: function() {
return foo2;
},
foo3: function() {
return foo3;
},
foo4: function() {
return foo4;
},
foo5: function() {
return foo5;
},
foo6: function() {
return foo6;
},
foo7: function() {
return foo7;
},
foo8: function() {
return foo8;
},
foo9: function() {
return foo9;
}
});
var foo = 1;
var foo2 = 1, bar = 2;
var foo3 = function() {};
var foo4;
let foo5 = 2;
let foo6;
const foo7 = 3;
function foo8() {}
class foo9 {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/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, {
bar: function() {
return bar;
},
foo: function() {
return foo;
},
foo2: function() {
return foo2;
},
foo3: function() {
return foo3;
},
foo4: function() {
return foo4;
},
foo5: function() {
return foo5;
},
foo6: function() {
return foo6;
},
foo7: function() {
return foo7;
},
foo8: function() {
return foo8;
},
foo9: function() {
return foo9;
}
});
var foo = 1;
var foo2 = 1, bar = 2;
var foo3 = function() {};
var foo4;
let foo5 = 2;
let foo6;
const foo7 = 3;
function foo8() {}
class foo9 {
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/input.js | JavaScript | import { isEven } from "./evens";
export function nextOdd(n) {
return isEven(n) ? n + 1 : n + 2;
}
export var isOdd = (function (isEven) {
return function (n) {
return !isEven(n);
};
})(isEven);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.amd.js | JavaScript | define([
"require",
"exports",
"./evens"
], function(require, exports, _evens) {
"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, {
isOdd: function() {
return isOdd;
},
nextOdd: function() {
return nextOdd;
}
});
function nextOdd(n) {
return (0, _evens.isEven)(n) ? n + 1 : n + 2;
}
var isOdd = function(isEven) {
return function(n) {
return !isEven(n);
};
}(_evens.isEven);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
isOdd: null,
nextOdd: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
isOdd: function() {
return isOdd;
},
nextOdd: function() {
return nextOdd;
}
});
const _evens = require("./evens");
function nextOdd(n) {
return (0, _evens.isEven)(n) ? n + 1 : n + 2;
}
var isOdd = function(isEven) {
return function(n) {
return !isEven(n);
};
}(_evens.isEven);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./evens"));
else if (typeof define === "function" && define.amd) define([
"exports",
"./evens"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.evens);
})(this, function(exports, _evens) {
"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, {
isOdd: function() {
return isOdd;
},
nextOdd: function() {
return nextOdd;
}
});
function nextOdd(n) {
return (0, _evens.isEven)(n) ? n + 1 : n + 2;
}
var isOdd = function(isEven) {
return function(n) {
return !isEven(n);
};
}(_evens.isEven);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-default/input.js | JavaScript | import foo from "foo";
import { default as foo2 } from "foo";
foo;
foo2;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-default/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_foo = _foo;
_foo;
_foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-default/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const _foo = require("foo");
_foo;
_foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-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 = _foo;
_foo;
_foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-glob/input.js | JavaScript | import * as foo from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-glob/output.amd.js | JavaScript | define([
"require",
"exports"
], function(require, exports) {
"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/interop-node/imports-glob/output.cjs | JavaScript | "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/interop-node/imports-glob/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
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-mixing/input.js | JavaScript | import foo, { baz as xyz } from "foo";
foo;
xyz;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-mixing/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, true);
_foo.default;
_foo.baz;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-mixing/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const _foo = /*#__PURE__*/ _interop_require_wildcard(require("foo"), true);
_foo.default;
_foo.baz;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-mixing/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, true);
_foo.default;
_foo.baz;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-named/input.js | JavaScript | import { bar } from "foo";
import { bar2, baz } from "foo";
import { bar as baz2 } from "foo";
import { bar as baz3, xyz } from "foo";
bar;
bar2;
baz;
baz2;
baz3;
xyz;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-named/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_foo.bar;
_foo.bar2;
_foo.baz;
_foo.bar;
_foo.bar;
_foo.xyz;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-named/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const _foo = require("foo");
_foo.bar;
_foo.bar2;
_foo.baz;
_foo.bar;
_foo.bar;
_foo.xyz;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-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
});
_foo.bar;
_foo.bar2;
_foo.baz;
_foo.bar;
_foo.bar;
_foo.xyz;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-ordering/input.js | JavaScript | import "./foo";
import bar from "./bar";
import "./derp";
import { qux } from "./qux";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-ordering/output.amd.js | JavaScript | define([
"require",
"exports",
"./foo",
"./derp"
], function(require, exports, _foo, _derp) {
"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/interop-node/imports-ordering/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
require("./foo");
require("./derp");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports-ordering/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./foo"), require("./derp"));
else if (typeof define === "function" && define.amd) define([
"exports",
"./foo",
"./derp"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo, global.derp);
})(this, function(exports, _foo, _derp) {
"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/interop-node/imports/input.js | JavaScript | import "foo";
import "foo-bar";
import "./directory/foo-bar";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports/output.amd.js | JavaScript | define([
"require",
"exports",
"foo",
"foo-bar",
"./directory/foo-bar"
], function(require, exports, _foo, _foobar, _foobar1) {
"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/interop-node/imports/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
require("foo");
require("foo-bar");
require("./directory/foo-bar");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/imports/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo"), require("foo-bar"), require("./directory/foo-bar"));
else if (typeof define === "function" && define.amd) define([
"exports",
"foo",
"foo-bar",
"./directory/foo-bar"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo, global.fooBar, global.fooBar);
})(this, function(exports, _foo, _foobar, _foobar1) {
"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/interop-node/overview/input.js | JavaScript | import "foo";
import "foo-bar";
import "./directory/foo-bar";
import foo from "foo2";
import * as foo2 from "foo3";
import { bar } from "foo4";
import { foo as bar2 } from "foo5";
var test;
export { test };
export var test2 = 5;
bar;
bar2;
foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.amd.js | JavaScript | define([
"require",
"exports",
"foo",
"foo-bar",
"./directory/foo-bar",
"foo2",
"foo4",
"foo5"
], function(require, exports, _foo, _foobar, _foobar1, _foo2, _foo4, _foo5) {
"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, {
test: function() {
return test;
},
test2: function() {
return test2;
}
});
_foo2 = _foo2;
var test;
var test2 = 5;
_foo4.bar;
_foo5.foo;
_foo2;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
test: null,
test2: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
test: function() {
return test;
},
test2: function() {
return test2;
}
});
require("foo");
require("foo-bar");
require("./directory/foo-bar");
const _foo2 = require("foo2");
const _foo4 = require("foo4");
const _foo5 = require("foo5");
var test;
var test2 = 5;
_foo4.bar;
_foo5.foo;
_foo2;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo"), require("foo-bar"), require("./directory/foo-bar"), require("foo2"), require("foo4"), require("foo5"));
else if (typeof define === "function" && define.amd) define([
"exports",
"foo",
"foo-bar",
"./directory/foo-bar",
"foo2",
"foo4",
"foo5"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo, global.fooBar, global.fooBar, global.foo2, global.foo4, global.foo5);
})(this, function(exports, _foo, _foobar, _foobar1, _foo2, _foo4, _foo5) {
"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, {
test: function() {
return test;
},
test2: function() {
return test2;
}
});
_foo2 = _foo2;
var test;
var test2 = 5;
_foo4.bar;
_foo5.foo;
_foo2;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/input.js | JavaScript | export var test = 2;
test = 5;
test++;
(function () {
var test = 2;
test = 3;
test++;
})();
var a = 2;
export { a };
a = 3;
var b = 2;
export { b as c };
b = 3;
var d = 3;
export { d as e, d as f };
d = 4;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/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, {
a: function() {
return a;
},
c: function() {
return b;
},
e: function() {
return d;
},
f: function() {
return d;
},
test: function() {
return test;
}
});
var test = 2;
test = 5;
test++;
(function() {
var test = 2;
test = 3;
test++;
})();
var a = 2;
a = 3;
var b = 2;
b = 3;
var d = 3;
d = 4;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
a: null,
c: null,
e: null,
f: null,
test: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
a: function() {
return a;
},
c: function() {
return b;
},
e: function() {
return d;
},
f: function() {
return d;
},
test: function() {
return test;
}
});
var test = 2;
test = 5;
test++;
(function() {
var test = 2;
test = 3;
test++;
})();
var a = 2;
a = 3;
var b = 2;
b = 3;
var d = 3;
d = 4;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/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, {
a: function() {
return a;
},
c: function() {
return b;
},
e: function() {
return d;
},
f: function() {
return d;
},
test: function() {
return test;
}
});
var test = 2;
test = 5;
test++;
(function() {
var test = 2;
test = 3;
test++;
})();
var a = 2;
a = 3;
var b = 2;
b = 3;
var d = 3;
d = 4;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/input.js | JavaScript | export { default } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _foo.default;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _foo.default;
}
});
const _foo = require("foo");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/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, "default", {
enumerable: true,
get: function() {
return _foo.default;
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/import-default-only/input.js | JavaScript | import foo from "foo";
foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/import-default-only/output.amd.js | JavaScript | define([
"require",
"foo"
], function(require, _foo) {
"use strict";
(0, _foo.default)();
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/import-default-only/output.cjs | JavaScript | "use strict";
const _foo = require("foo");
(0, _foo.default)();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/import-default-only/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(require("foo"));
else if (typeof define === "function" && define.amd) define([
"foo"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.foo);
})(this, function(_foo) {
"use strict";
(0, _foo.default)();
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/import-wildcard/input.js | JavaScript | import * as foo from "foo";
foo.bar();
foo.baz();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/import-wildcard/output.amd.js | JavaScript | define([
"require",
"foo"
], function(require, _foo) {
"use strict";
_foo.bar();
_foo.baz();
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/import-wildcard/output.cjs | JavaScript | "use strict";
const _foo = require("foo");
_foo.bar();
_foo.baz();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/import-wildcard/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(require("foo"));
else if (typeof define === "function" && define.amd) define([
"foo"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.foo);
})(this, function(_foo) {
"use strict";
_foo.bar();
_foo.baz();
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/input.js | JavaScript | // The fact that this exports both a normal default, and all of the names via
// re-export is an edge case that is important not to miss. See
// https://github.com/babel/babel/issues/8306 as an example.
import _default from "react";
export default _default;
export * from "react";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.amd.js | JavaScript | // The fact that this exports both a normal default, and all of the names via
// re-export is an edge case that is important not to miss. See
// https://github.com/babel/babel/issues/8306 as an example.
define([
"require",
"exports",
"react"
], function(require, exports, _react) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
_react = /*#__PURE__*/ _interop_require_default(_export_star(_react, exports));
const _default = _react.default;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.cjs | JavaScript | // The fact that this exports both a normal default, and all of the names via
// re-export is an edge case that is important not to miss. See
// https://github.com/babel/babel/issues/8306 as an example.
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _react = /*#__PURE__*/ _interop_require_default(_export_star(require("react"), exports));
const _default = _react.default;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.umd.js | JavaScript | // The fact that this exports both a normal default, and all of the names via
// re-export is an edge case that is important not to miss. See
// https://github.com/babel/babel/issues/8306 as an example.
(function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("react"));
else if (typeof define === "function" && define.amd) define([
"exports",
"react"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.react);
})(this, function(exports, _react) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
_react = /*#__PURE__*/ _interop_require_default(_export_star(_react, exports));
const _default = _react.default;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/input.js | JavaScript | export default (function () {
return "foo";
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/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;
}
});
const _default = function() {
return "foo";
}();
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.