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/systemjs/export-named-7/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
function foo2(bar) {}
_export("foo2", foo2);
return {
setters: [],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/export-named-8/input.mjs | JavaScript | export {};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/export-named-8/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
return {
setters: [],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/export-named-alongside-with-export-star/input.mjs | JavaScript | export { default } from "foo";
export * from "foo";
export { a, b } from "bar";
export * from "bar";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/export-named-alongside-with-export-star/output.mjs | JavaScript | System.register([
"foo",
"bar"
], function(_export, _context) {
"use strict";
return {
setters: [
function(_foo) {
var exportObj = {};
for(var key in _foo){
if (key !== "default" && key !== "__esModule") {
exportObj[key] = _foo[... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/export-named/input.mjs | JavaScript | export { foo };
var foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/export-named/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
var foo;
_export("foo", void 0);
return {
setters: [],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/export-uninitialized/input.mjs | JavaScript | export var m;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/export-uninitialized/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
var m;
_export("m", void 0);
return {
setters: [],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/exports-variable/input.mjs | JavaScript | export var foo = 1;
export var foo2 = function () {};
export var foo3;
export let foo4 = 2;
export let foo5;
export const foo6 = 3;
export function foo7() {}
export class foo8 {}
foo3 = 5;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/exports-variable/output.mjs | JavaScript | System.register([], function(_export, _context) {
"use strict";
var foo8, foo, foo2, foo3, foo4, foo5, foo6;
function foo7() {}
_export({
foo7: foo7,
foo8: void 0,
foo3: void 0,
foo5: void 0
});
return {
setters: [],
execute: function() {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/hoist-function-class/input.mjs | JavaScript | export function hoisted() {
return HoistedClass, HoistedClassExport, HoistedClassDefaultExport;
}
class HoistedClass {}
export class HoistedClassExport {}
export default class HoistedClassDefaultExport {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/hoist-function-class/output.mjs | JavaScript | System.register([], function(_export, _context) {
"use strict";
var HoistedClass, HoistedClassExport, HoistedClassDefaultExport;
function hoisted() {
return HoistedClass, HoistedClassExport, HoistedClassDefaultExport;
}
_export({
hoisted: hoisted,
HoistedClassExport: void 0,
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/hoist-function-exports/input.mjs | JavaScript | import { isEven } from "./evens";
export function nextOdd(n) {
return (p = isEven(n) ? n + 1 : n + 2);
}
export var p = 5;
for (var a in b);
for (var i = 0, j = 0; ; );
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/systemjs/hoist-function-exports/output.mjs | JavaScript | System.register([
"./evens"
], function(_export, _context) {
"use strict";
var isEven, p, a, i, j, isOdd;
function nextOdd(n) {
return _export("p", p = isEven(n) ? n + 1 : n + 2);
}
_export("nextOdd", nextOdd);
return {
setters: [
function(_evens) {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/hoisting-bindings/input.mjs | JavaScript | export function a() {
alert("a");
c++;
}
export var c = 5;
function b() {
a();
}
b();
function foo(c) {
alert("a");
c++;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/hoisting-bindings/output.mjs | JavaScript | System.register([], function(_export, _context) {
"use strict";
var c;
function a() {
alert("a");
_export("c", +c + 1), c++;
}
function b() {
a();
}
function foo(c) {
alert("a");
c++;
}
_export("a", a);
return {
setters: [],
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/import-meta/input.mjs | JavaScript | console.log(import.meta.url);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/import-meta/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
return {
setters: [],
execute: function () {
console.log(_context.meta.url);
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-default/input.mjs | JavaScript | import foo from "foo";
import { default as foo2 } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-default/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
var foo, foo2;
return {
setters: [function (_foo) {
foo = _foo.default;
foo2 = _foo.default;
}],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-glob/input.mjs | JavaScript | import * as foo from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-glob/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
var foo;
return {
setters: [function (_foo) {
foo = _foo;
}],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-mixing/input.mjs | JavaScript | import foo, { baz as xyz } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-mixing/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
var foo, xyz;
return {
setters: [function (_foo) {
foo = _foo.default;
xyz = _foo.baz;
}],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-named/input.mjs | JavaScript | import { bar } from "foo";
import { bar2, baz } from "foo";
import { bar as baz2 } from "foo";
import { bar as baz3, xyz } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-named/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
var bar, bar2, baz, baz2, baz3, xyz;
return {
setters: [function (_foo) {
bar = _foo.bar;
bar2 = _foo.bar2;
baz = _foo.baz;
baz2 = _foo.bar;
baz3 = _foo.bar;
xyz = _foo.xyz;
}],
execute: function... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-numbered/input.mjs | JavaScript | import "2";
import "1";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports-numbered/output.mjs | JavaScript | System.register([
"2",
"1"
], function(_export, _context) {
"use strict";
return {
setters: [
function(_2) {},
function(_1) {}
],
execute: function() {}
};
}); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/imports/input.mjs | 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/systemjs/imports/output.mjs | JavaScript | System.register([
"foo",
"foo-bar",
"./directory/foo-bar"
], function(_export, _context) {
"use strict";
return {
setters: [
function(_foo) {},
function(_foobar) {},
function(_foobar) {}
],
execute: function() {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/export-from-string-as-string/input.mjs | 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/systemjs/interop-module-string-names/export-from-string-as-string/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
return {
setters: [function (_foo) {
_export("some exports", _foo["some imports"]);
}],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/export-from-string/input.mjs | JavaScript | export { "some exports" } from "foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/export-from-string/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
return {
setters: [function (_foo) {
_export("some exports", _foo["some exports"]);
}],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/export-from/input.mjs | 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/systemjs/interop-module-string-names/export-from/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
return {
setters: [function (_foo) {
_export("some exports", _foo.foo);
}],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/export-named-string-can-be-identifier/input.mjs | JavaScript | var foo, bar;
export { foo as "defaultExports", bar };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/export-named-string-can-be-identifier/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
var foo, bar;
_export({
defaultExports: void 0,
bar: void 0
});
return {
setters: [],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/export-named/input.mjs | JavaScript | var foo, bar;
export { foo as "default exports", bar };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/export-named/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
var foo, bar;
_export({
"default exports": void 0,
bar: void 0
});
return {
setters: [],
execute: function () {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/import-named-string-can-be-identifier/input.mjs | 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/systemjs/interop-module-string-names/import-named-string-can-be-identifier/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
var bar;
return {
setters: [function (_foo) {
bar = _foo["defaultImports"];
}],
execute: function () {
bar;
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/interop-module-string-names/import-named/input.mjs | 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/systemjs/interop-module-string-names/import-named/output.mjs | JavaScript | System.register(["foo"], function (_export, _context) {
"use strict";
var bar;
return {
setters: [function (_foo) {
bar = _foo["default imports"];
}],
execute: function () {
bar;
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/module-name/input.mjs | JavaScript | export var name = __moduleName;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/module-name/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
var name;
return {
setters: [],
execute: function () {
_export("name", name = _context.id);
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/overview/input.mjs | JavaScript | import "foo";
import "foo-bar";
import "./directory/foo-bar";
import foo from "foo";
import * as foo2 from "foo";
import { bar } from "foo";
import { foo as bar2 } from "foo";
export { foo };
export var test2 = 5;
export default foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/overview/output.mjs | JavaScript | System.register([
"foo",
"foo-bar",
"./directory/foo-bar"
], function(_export, _context) {
"use strict";
var foo, foo2, bar, bar2, test2;
return {
setters: [
function(_foo) {
foo = _foo.default;
foo2 = _foo;
bar = _foo.bar;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/regression/input.mjs | JavaScript | let Vec3;
export class Light {
_color = Vec3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/regression/output.mjs | JavaScript | System.register([], function(_export, _context) {
"use strict";
var Light, Vec3;
_export("Light", void 0);
return {
setters: [],
execute: function() {
_export("Light", Light = class Light {
_color = Vec3;
});
}
};
}); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/remap/input.mjs | 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/systemjs/remap/output.mjs | JavaScript | System.register([], function(_export, _context) {
"use strict";
var test, a, b, d;
return {
setters: [],
execute: function() {
_export("test", test = 2);
_export("test", test = 5);
_export("test", +test + 1), test++;
(function() {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/tla/not-tla/input.mjs | JavaScript | async () => await test;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/tla/not-tla/output.mjs | JavaScript | System.register([], function(_export, _context) {
"use strict";
return {
setters: [],
execute: async function() {
async ()=>await test
;
}
};
}); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/tla/tla-block/input.mjs | JavaScript | if (maybe) {
await test;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/systemjs/tla/tla-block/output.mjs | JavaScript | System.register([], function (_export, _context) {
"use strict";
return {
setters: [],
execute: async function () {
if (maybe) {
await test;
}
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/path_node.rs | Rust | use std::{
path::{Path, PathBuf},
sync::Arc,
};
use indexmap::IndexMap;
use serde::Deserialize;
use swc_common::FileName;
use swc_ecma_loader::resolvers::{node::NodeModulesResolver, tsc::TsConfigResolver};
use swc_ecma_parser::Syntax;
use swc_ecma_transforms_module::{
path::{ImportResolver, NodeImportResol... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/.issue-6530/1-respect-base-url/input/src/folder/file1.ts | TypeScript | import jq from "jquery";
import file from "folder/file2";
console.log(jq, file);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/.issue-6530/1-respect-base-url/input/src/folder/file2.ts | TypeScript | export default 'used' | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/.issue-6530/1-respect-base-url/input/src/index.ts | TypeScript | import jq from "jquery";
import file from "./folder/file2";
console.log(jq, file); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/.issue-6530/2-check-file-existence/input/src/folder/file1.ts | TypeScript | import jq from "../jquery";
import file from "./file2";
console.log(jq, file); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/.issue-6530/2-check-file-existence/input/src/folder/file2.ts | TypeScript | export default 'used' | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/.issue-6530/2-check-file-existence/input/src/index.ts | TypeScript | import jq from "./jquery";
import file from "./folder/file2";
console.log(jq, file); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/.issue-6530/3-exact-pattern/input/src/index.ts | TypeScript | import jq from 'jquery';
import file from "folder/file2";
console.log(jq, file)
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4532/input/index.ts | TypeScript | import "@src/rel.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4532/output/index.ts | TypeScript | import "./rel.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4585/input/index.ts | TypeScript | import "@lib/feat.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4585/output/index.ts | TypeScript | import "./src/feat.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4605/1/input/index.ts | TypeScript | import "@src/rel.decorator.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4605/1/output/index.ts | TypeScript | import "./src/rel.decorator.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4605/2/input/index.ts | TypeScript | import "@src/rel.decorator";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4605/2/output/index.ts | TypeScript | import "./src/rel.decorator.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4607/input/index.ts | TypeScript | import boo from "utils/shared/foo/boo";
console.log(boo());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4607/input/src/utils/shared/foo/boo.ts | TypeScript | export { } | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4607/output/index.ts | TypeScript | import boo from "./src/utils/shared/foo/boo.js";
console.log(boo());
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4619/1/input/index.ts | TypeScript | import "@src/rel.decorator.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4619/1/output/index.ts | TypeScript | import "./src/rel.decorator.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4619/2/input/index.ts | TypeScript | import "@src/rel.decorator";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-4619/2/output/index.ts | TypeScript | import "./src/rel.decorator.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-6159/input/index.ts | TypeScript | import "@/a.js";
export {} from "@/a.js";
export * from "@/a.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-6159/input/src/a.js | JavaScript | export { } | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-6159/output/index.ts | TypeScript | import "./src/a.js";
export { } from "./src/a.js";
export * from "./src/a.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-6779/1/input/index.ts | TypeScript | async function main() {
const addFunction = (await import('@/utils/add')).default // This doesn't work
console.log('2 + 3 =', addFunction(2, 3))
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-6779/1/output/index.ts | TypeScript | async function main() {
const addFunction = (await import("./add.js")).default // This doesn't work
;
console.log('2 + 3 =', addFunction(2, 3));
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-6779/2/input/index.ts | TypeScript | import addFunction from '@/utils/add'
async function main() {
console.log('2 + 3 =', addFunction(2, 3))
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-6779/2/output/index.ts | TypeScript | import addFunction from "./add.js";
async function main() {
console.log('2 + 3 =', addFunction(2, 3));
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-7417/input/src/index.ts | TypeScript | async function main() {
import('./lib/foo')
}
main()
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-7417/input/src/lib/foo.ts | TypeScript | import o from '.'
export default function bar() {
console.log(o)
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-7417/input/src/lib/index.ts | TypeScript | export default {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/issue-7417/output/index.ts | TypeScript | import o from "./index.js";
export default function bar() {
console.log(o);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/pack-1682/1/input/db/PrismaClientProvider.js | JavaScript | import { PrismaClient } from "@/db/client";
class PrismaClientProvider {
prisma;
constructor() {
this.prisma = new PrismaClient({
datasources: {
db: {
url: "",
},
},
});
}
}
export default new PrismaClientProvider();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/pack-1682/1/input/db/client/index-browser.js | JavaScript |
Object.defineProperty(exports, "__esModule", { value: true });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/pack-1682/1/input/utils/test.js | JavaScript | import PrismaClientProvider from "@/db/PrismaClientProvider";
export default function setupTests() {
const context = {};
beforeEach(() => {
context.prisma = PrismaClientProvider.prisma;
});
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/paths/pack-1682/1/output/index.ts | TypeScript | import PrismaClientProvider from "../db/PrismaClientProvider.js";
export default function setupTests() {
const context = {};
beforeEach(()=>{
context.prisma = PrismaClientProvider.prisma;
});
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/system_js.rs | Rust | #![deny(warnings)]
use std::path::PathBuf;
use swc_common::Mark;
use swc_ecma_ast::Pass;
use swc_ecma_parser::Syntax;
use swc_ecma_transforms_base::resolver;
use swc_ecma_transforms_module::system_js::{system_js, Config};
use swc_ecma_transforms_testing::{test, test_fixture, FixtureTestConfig, Tester};
fn syntax() -... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/umd.rs | Rust | use std::{fs::File, path::PathBuf};
use swc_common::Mark;
use swc_ecma_ast::Pass;
use swc_ecma_parser::{Syntax, TsSyntax};
use swc_ecma_transforms_base::{feature::FeatureFlag, resolver};
use swc_ecma_transforms_module::umd::{umd, Config};
use swc_ecma_transforms_testing::{test_fixture, FixtureTestConfig, Tester};
use ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_optimization/src/const_modules.rs | Rust | use std::{
collections::{HashMap, HashSet},
sync::Arc,
};
use dashmap::DashMap;
use once_cell::sync::Lazy;
use rustc_hash::{FxBuildHasher, FxHashMap};
use swc_atoms::{atom, Atom};
use swc_common::{
errors::HANDLER,
sync::Lrc,
util::{move_map::MoveMap, take::Take},
FileName, SourceMap,
};
use sw... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_optimization/src/debug.rs | Rust | #![allow(unused)]
use std::{fmt::Debug, mem::forget};
use swc_ecma_ast::*;
use swc_ecma_visit::{noop_visit_type, Visit, VisitWith};
/// Assert in debug mode. This is noop in release build.
#[cfg_attr(not(debug_assertions), inline(always))]
pub fn debug_assert_valid<N>(node: &N)
where
N: VisitWith<AssertValid>,
{... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_optimization/src/inline_globals.rs | Rust | use rustc_hash::{FxHashMap, FxHashSet};
use swc_atoms::Atom;
use swc_common::sync::Lrc;
use swc_ecma_ast::*;
use swc_ecma_transforms_base::perf::{ParVisitMut, Parallel};
use swc_ecma_utils::{collect_decls, parallel::cpu_count, NodeIgnoringSpan};
use swc_ecma_visit::{noop_visit_mut_type, visit_mut_pass, VisitMut, VisitM... | 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.