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/export-interop-annotation/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
default: null,
useRouter: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
default: function() {
return _default;
},
useRouter: function() {
return useRouter;
}
});
function useRouter() {}
const _default = useRouter;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/export-interop-annotation/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 _default;
},
useRouter: function() {
return useRouter;
}
});
function useRouter() {}
const _default = useRouter;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/input.js | JavaScript | export let foo = 1n;
foo++;
export let bar = ++foo;
export let baz = bar--;
export { baz as bazbar, foo as foobar };
--bar;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/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;
},
baz: function() {
return baz;
},
bazbar: function() {
return baz;
},
foo: function() {
return foo;
},
foobar: function() {
return foo;
}
});
let foo = 1n;
foo++;
let bar = ++foo;
let baz = bar--;
--bar;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return bar;
},
baz: function() {
return baz;
},
bazbar: function() {
return baz;
},
foo: function() {
return foo;
},
foobar: function() {
return foo;
}
});
let foo = 1n;
foo++;
let bar = ++foo;
let baz = bar--;
--bar;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/export-update/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
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return bar;
},
baz: function() {
return baz;
},
bazbar: function() {
return baz;
},
foo: function() {
return foo;
},
foobar: function() {
return foo;
}
});
let foo = 1n;
foo++;
let bar = ++foo;
let baz = bar--;
--bar;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/ignore-dynamic/1/input.js | JavaScript | import foo from "foo";
async function foo() {
await import("foo");
callback(() => import("foo"));
}
import("side-effect");
await import("awaited");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/ignore-dynamic/1/output.amd.js | JavaScript | define([
"require",
"exports"
], function(require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
async function foo() {
await import("foo");
callback(()=>import("foo"));
}
import("side-effect");
await import("awaited");
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/ignore-dynamic/1/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
async function foo() {
await import("foo");
callback(()=>import("foo"));
}
import("side-effect");
await import("awaited");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/ignore-dynamic/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
});
async function foo() {
await import("foo");
callback(()=>import("foo"));
}
import("side-effect");
await import("awaited");
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from-string-as-string/input.js | JavaScript | export { "some imports" as "some exports" } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from-string-as-string/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "some exports", {
enumerable: true,
get: function() {
return _foo["some imports"];
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from-string-as-string/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "some exports", {
enumerable: true,
get: function() {
return _foo["some imports"];
}
});
const _foo = require("foo");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from-string-as-string/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, "some exports", {
enumerable: true,
get: function() {
return _foo["some imports"];
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from-string/input.js | JavaScript | export { "some exports" } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from-string/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "some exports", {
enumerable: true,
get: function() {
return _foo["some exports"];
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from-string/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "some exports", {
enumerable: true,
get: function() {
return _foo["some exports"];
}
});
const _foo = require("foo");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from-string/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, "some exports", {
enumerable: true,
get: function() {
return _foo["some exports"];
}
});
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from/input.js | JavaScript | export { foo as "some exports" } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-from/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "some exports", {
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-module-string-names/export-from/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "some exports", {
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-module-string-names/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, "__esModule", {
value: true
});
Object.defineProperty(exports, "some exports", {
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-module-string-names/export-named-string-can-be-identifier/input.js | JavaScript | var foo, bar;
export { bar, foo as "defaultExports" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-named-string-can-be-identifier/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;
},
defaultExports: 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-module-string-names/export-named-string-can-be-identifier/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return bar;
},
defaultExports: 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-module-string-names/export-named-string-can-be-identifier/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;
},
defaultExports: 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-module-string-names/export-named/input.js | JavaScript | var foo, bar;
export { bar, foo as "default exports" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/export-named/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 exports": 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-module-string-names/export-named/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
bar: function() {
return bar;
},
"default exports": 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-module-string-names/export-named/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 exports": 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-module-string-names/import-named-string-can-be-identifier/input.js | JavaScript | import { "defaultImports" as bar } from "foo";
bar;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/import-named-string-can-be-identifier/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_foo.defaultImports;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/import-named-string-can-be-identifier/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const _foo = require("foo");
_foo.defaultImports;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/import-named-string-can-be-identifier/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.defaultImports;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/import-named/input.js | JavaScript | import { "default imports" as bar } from "foo";
bar;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/import-named/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_foo["default imports"];
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/import-named/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const _foo = require("foo");
_foo["default imports"];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-module-string-names/import-named/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo"));
else if (typeof define === "function" && define.amd) define([
"exports",
"foo"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo);
})(this, function(exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_foo["default imports"];
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/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-node/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 = _export_star(_react, exports);
const _default = _react;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/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;
}
});
0 && __export(require("react"));
const _react = _export_star(require("react"), exports);
const _default = _react;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/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 = _export_star(_react, exports);
const _default = _react;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/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-node/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 | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.cjs | JavaScript | "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 | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/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;
}
});
const _default = function() {
return "foo";
}();
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/input.js | JavaScript | export default new Cachier();
export function Cachier(databaseName) {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/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, {
Cachier: function() {
return Cachier;
},
default: function() {
return _default;
}
});
const _default = new Cachier();
function Cachier(databaseName) {}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
Cachier: null,
default: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
Cachier: function() {
return Cachier;
},
default: function() {
return _default;
}
});
const _default = new Cachier();
function Cachier(databaseName) {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/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, {
Cachier: function() {
return Cachier;
},
default: function() {
return _default;
}
});
const _default = new Cachier();
function Cachier(databaseName) {}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/input.js | JavaScript | export default {};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-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;
}
});
const _default = {};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = {};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-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;
}
});
const _default = {};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/input.js | JavaScript | export default [];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/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 = [];
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = [];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-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, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = [];
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/input.js | JavaScript | export default foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-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 _default;
}
});
const _default = foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-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 _default;
}
});
const _default = foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/input.js | JavaScript | export default function () {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/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() {}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
function _default() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-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
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
function _default() {}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/input.js | JavaScript | export default class {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/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;
}
});
class _default {
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
class _default {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/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;
}
});
class _default {
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/input.js | JavaScript | export default function foo() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/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() {}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return foo;
}
});
function foo() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/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() {}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/input.js | JavaScript | export default class Foo {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/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;
}
});
class Foo {
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return Foo;
}
});
class Foo {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/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;
}
});
class Foo {
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/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-default-9/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-default-9/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-default-9/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-default/input.js | JavaScript | export default 42;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/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 = 42;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = 42;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/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;
}
});
const _default = 42;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/input.js | JavaScript | export let x = 0;
export let y = 0;
export function f1() {
({ x } = { x: 1 });
}
export function f2() {
({ x, y } = { x: 2, y: 3 });
}
export function f3() {
[x, y, z] = [3, 4, 5];
}
export function f4() {
[x, , y] = [3, 4, 5];
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/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, {
f1: function() {
return f1;
},
f2: function() {
return f2;
},
f3: function() {
return f3;
},
f4: function() {
return f4;
},
x: function() {
return x;
},
y: function() {
return y;
}
});
let x = 0;
let y = 0;
function f1() {
({ x } = {
x: 1
});
}
function f2() {
({ x, y } = {
x: 2,
y: 3
});
}
function f3() {
[x, y, z] = [
3,
4,
5
];
}
function f4() {
[x, , y] = [
3,
4,
5
];
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
f1: null,
f2: null,
f3: null,
f4: null,
x: null,
y: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
f1: function() {
return f1;
},
f2: function() {
return f2;
},
f3: function() {
return f3;
},
f4: function() {
return f4;
},
x: function() {
return x;
},
y: function() {
return y;
}
});
let x = 0;
let y = 0;
function f1() {
({ x } = {
x: 1
});
}
function f2() {
({ x, y } = {
x: 2,
y: 3
});
}
function f3() {
[x, y, z] = [
3,
4,
5
];
}
function f4() {
[x, , y] = [
3,
4,
5
];
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/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, {
f1: function() {
return f1;
},
f2: function() {
return f2;
},
f3: function() {
return f3;
},
f4: function() {
return f4;
},
x: function() {
return x;
},
y: function() {
return y;
}
});
let x = 0;
let y = 0;
function f1() {
({ x } = {
x: 1
});
}
function f2() {
({ x, y } = {
x: 2,
y: 3
});
}
function f3() {
[x, y, z] = [
3,
4,
5
];
}
function f4() {
[x, , y] = [
3,
4,
5
];
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-1/input.js | JavaScript | export * from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-1/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_export_star(_foo, exports);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-1/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && __export(require("foo"));
_export_star(require("foo"), exports);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-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
});
_export_star(_foo, exports);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/input.js | JavaScript | export { 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-2/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/interop-node/export-from-2/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/interop-node/export-from-2/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/interop-node/export-from-3/input.js | JavaScript | export { bar, 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-3/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;
},
foo: function() {
return _foo.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.