file_path stringlengths 3 280 | file_language stringclasses 66 values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108 values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/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, {
a: function() {
return a;
},
b: function() {
return b;
}
});
let a, b;
console.log([a, b] = [
1,
2
]);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/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, {
a: function() {
return a;
},
b: function() {
return b;
}
});
let a, b;
console.log([a, b] = [
1,
2
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/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, {
a: function() {
return a;
},
b: function() {
return b;
}
});
let a, b;
console.log([a, b] = [
1,
2
]);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4898/1/input.ts | TypeScript | import assert = require("assert");
assert(true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4898/1/output.amd.ts | TypeScript | define([
"require"
], function(require) {
"use strict";
const assert = require("assert");
assert(true);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4898/1/output.umd.ts | TypeScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory();
else if (typeof define === "function" && define.amd) define([], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory();
})(this, function() {
"use strict";
const assert = require("assert");
assert(true);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4898/2/input.ts | TypeScript | import assert = require("assert");
import assert2 from "assert";
assert(true);
assert2(true);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4898/2/output.amd.ts | TypeScript | define([
"require",
"exports",
"assert"
], function(require, exports, _assert) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_assert = /*#__PURE__*/ _interop_require_default(_assert);
const assert = require("assert");
assert(true);
(0, _assert.default)(true);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4898/2/output.umd.ts | TypeScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("assert"));
else if (typeof define === "function" && define.amd) define([
"exports",
"assert"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.assert);
})(this, function(exports, _assert) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_assert = /*#__PURE__*/ _interop_require_default(_assert);
const assert = require("assert");
assert(true);
(0, _assert.default)(true);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/input.js | JavaScript | export var a = 1,
b = 2;
var c = 3;
export { c };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/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, {
a: function() {
return a;
},
b: function() {
return b;
},
c: function() {
return c;
}
});
var a = 1, b = 2;
var c = 3;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/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, {
a: function() {
return a;
},
b: function() {
return b;
},
c: function() {
return c;
}
});
var a = 1, b = 2;
var c = 3;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/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, {
a: function() {
return a;
},
b: function() {
return b;
},
c: function() {
return c;
}
});
var a = 1, b = 2;
var c = 3;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/input.js | JavaScript | const VALUE = "hello";
export default class MyClass {
static MEMBER = VALUE;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.amd.js | JavaScript | define([
"require",
"exports"
], function(require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return MyClass;
}
});
const VALUE = "hello";
class MyClass {
static MEMBER = VALUE;
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return MyClass;
}
});
const VALUE = "hello";
class MyClass {
static MEMBER = VALUE;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports);
else if (typeof define === "function" && define.amd) define([
"exports"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {});
})(this, function(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return MyClass;
}
});
const VALUE = "hello";
class MyClass {
static MEMBER = VALUE;
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/input.ts | TypeScript | export import $ = require("jquery");
$(".hello");
export { $ as jquery };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts | TypeScript | define([
"require",
"exports"
], function(require, exports1) {
"use strict";
Object.defineProperty(exports1, "__esModule", {
value: true
});
Object.defineProperty(exports1, "jquery", {
enumerable: true,
get: function() {
return $;
}
});
const $ = exports.$ = require("jquery");
$(".hello");
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts | TypeScript | (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(exports1) {
"use strict";
Object.defineProperty(exports1, "__esModule", {
value: true
});
Object.defineProperty(exports1, "jquery", {
enumerable: true,
get: function() {
return $;
}
});
const $ = exports.$ = require("jquery");
$(".hello");
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/2/input.ts | TypeScript | import foo = require("foo");
foo.bar = 1;
export = foo;
foo.bar = 2;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/2/output.amd.ts | TypeScript | define([
"require"
], function(require) {
"use strict";
const foo = require("foo");
foo.bar = 1;
foo.bar = 2;
module.exports = foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/2/output.umd.ts | TypeScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory();
else if (typeof define === "function" && define.amd) define([], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory();
})(this, function() {
"use strict";
const foo = require("foo");
foo.bar = 1;
foo.bar = 2;
module.exports = foo;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/input.ts | TypeScript | import * as testUtils from "vs/base/test/common/testUtils";
export var flakySuite = testUtils.flakySuite;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.amd.ts | TypeScript | define([
"require",
"exports",
"vs/base/test/common/testUtils"
], function(require, exports, _testUtils) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "flakySuite", {
enumerable: true,
get: function() {
return flakySuite;
}
});
_testUtils = /*#__PURE__*/ _interop_require_wildcard(_testUtils);
var flakySuite = _testUtils.flakySuite;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.umd.ts | TypeScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("vs/base/test/common/testUtils"));
else if (typeof define === "function" && define.amd) define([
"exports",
"vs/base/test/common/testUtils"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.testUtils);
})(this, function(exports, _testUtils) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "flakySuite", {
enumerable: true,
get: function() {
return flakySuite;
}
});
_testUtils = /*#__PURE__*/ _interop_require_wildcard(_testUtils);
var flakySuite = _testUtils.flakySuite;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/input.js | JavaScript | import foo from "foo";
import { bar } from "bar";
import * as baz from "baz";
export default { foo, baz, baz };
const x = { foo, bar, baz };
export const y = { foo, bar, baz };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.amd.js | JavaScript | define([
"require",
"exports",
"foo",
"bar",
"baz"
], function(require, exports, _foo, _bar, _baz) {
"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;
},
y: function() {
return y;
}
});
_foo = /*#__PURE__*/ _interop_require_default(_foo);
_baz = /*#__PURE__*/ _interop_require_wildcard(_baz);
const _default = {
foo: _foo.default,
baz: _baz,
baz: _baz
};
const x = {
foo: _foo.default,
bar: _bar.bar,
baz: _baz
};
const y = {
foo: _foo.default,
bar: _bar.bar,
baz: _baz
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/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, {
default: function() {
return _default;
},
y: function() {
return y;
}
});
const _foo = /*#__PURE__*/ _interop_require_default(require("foo"));
const _bar = require("bar");
const _baz = /*#__PURE__*/ _interop_require_wildcard(require("baz"));
const _default = {
foo: _foo.default,
baz: _baz,
baz: _baz
};
const x = {
foo: _foo.default,
bar: _bar.bar,
baz: _baz
};
const y = {
foo: _foo.default,
bar: _bar.bar,
baz: _baz
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo"), require("bar"), require("baz"));
else if (typeof define === "function" && define.amd) define([
"exports",
"foo",
"bar",
"baz"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo, global.bar, global.baz);
})(this, function(exports, _foo, _bar, _baz) {
"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;
},
y: function() {
return y;
}
});
_foo = /*#__PURE__*/ _interop_require_default(_foo);
_baz = /*#__PURE__*/ _interop_require_wildcard(_baz);
const _default = {
foo: _foo.default,
baz: _baz,
baz: _baz
};
const x = {
foo: _foo.default,
bar: _bar.bar,
baz: _baz
};
const y = {
foo: _foo.default,
bar: _bar.bar,
baz: _baz
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/1/input.js | JavaScript | class Foo {
bar = 5;
getThing(a, b = this.bar) {
return a + b;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/1/output.amd.js | JavaScript | define([
"require"
], function(require) {
"use strict";
class Foo {
bar = 5;
getThing(a, b = this.bar) {
return a + b;
}
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/1/output.cjs | JavaScript | "use strict";
class Foo {
bar = 5;
getThing(a, b = this.bar) {
return a + b;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/1/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory();
else if (typeof define === "function" && define.amd) define([], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory();
})(this, function() {
"use strict";
class Foo {
bar = 5;
getThing(a, b = this.bar) {
return a + b;
}
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/input.js | JavaScript | export class Foo {
[this] = this;
[this](a, b = this.x) {
return a + b;
}
static [this] = this;
static [this](a, b = this.x) {
return a + b;
}
}
export function foo(a = this) {
console.log(a);
}
export default {
[this]: this,
[this](a, b = this.x) {
return a + b;
},
[this]: function (a, b = this.x) {
return a + b;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/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, {
Foo: function() {
return Foo;
},
default: function() {
return _default;
},
foo: function() {
return foo;
}
});
class Foo {
[void 0] = this;
[void 0](a, b = this.x) {
return a + b;
}
static [void 0] = this;
static [void 0](a, b = this.x) {
return a + b;
}
}
function foo(a = this) {
console.log(a);
}
const _default = {
[void 0]: void 0,
[void 0] (a, b = this.x) {
return a + b;
},
[void 0]: function(a, b = this.x) {
return a + b;
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/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, {
Foo: function() {
return Foo;
},
default: function() {
return _default;
},
foo: function() {
return foo;
}
});
class Foo {
[void 0] = this;
[void 0](a, b = this.x) {
return a + b;
}
static [void 0] = this;
static [void 0](a, b = this.x) {
return a + b;
}
}
function foo(a = this) {
console.log(a);
}
const _default = {
[void 0]: void 0,
[void 0] (a, b = this.x) {
return a + b;
},
[void 0]: function(a, b = this.x) {
return a + b;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/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, {
Foo: function() {
return Foo;
},
default: function() {
return _default;
},
foo: function() {
return foo;
}
});
class Foo {
[void 0] = this;
[void 0](a, b = this.x) {
return a + b;
}
static [void 0] = this;
static [void 0](a, b = this.x) {
return a + b;
}
}
function foo(a = this) {
console.log(a);
}
const _default = {
[void 0]: void 0,
[void 0] (a, b = this.x) {
return a + b;
},
[void 0]: function(a, b = this.x) {
return a + b;
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5157/1/input.js | JavaScript | export const foo = {
get prop1() {
return 1;
},
get prop2() {
return this.prop1 + 1;
},
set prop3(v) {
this.x = v;
},
method() {
return this.prop1;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5157/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;
}
});
const foo = {
get prop1 () {
return 1;
},
get prop2 () {
return this.prop1 + 1;
},
set prop3 (v){
this.x = v;
},
method () {
return this.prop1;
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5157/1/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "foo", {
enumerable: true,
get: function() {
return foo;
}
});
const foo = {
get prop1 () {
return 1;
},
get prop2 () {
return this.prop1 + 1;
},
set prop3 (v){
this.x = v;
},
method () {
return this.prop1;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5157/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;
}
});
const foo = {
get prop1 () {
return 1;
},
get prop2 () {
return this.prop1 + 1;
},
set prop3 (v){
this.x = v;
},
method () {
return this.prop1;
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5157/2/input.js | JavaScript | export const foo = {
get [this]() {
return this;
},
set [this](v = this.y) {
this.x = v;
},
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5157/2/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;
}
});
const foo = {
get [void 0] () {
return this;
},
set [void 0] (v = this.y){
this.x = v;
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5157/2/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "foo", {
enumerable: true,
get: function() {
return foo;
}
});
const foo = {
get [void 0] () {
return this;
},
set [void 0] (v = this.y){
this.x = v;
}
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5157/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, "foo", {
enumerable: true,
get: function() {
return foo;
}
});
const foo = {
get [void 0] () {
return this;
},
set [void 0] (v = this.y){
this.x = v;
}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5260/input.js | JavaScript | export { X as a } from "a";
export { X as b } from "b";
export { default as c } from "c";
export { default as d } from "d";
export * as e from "e";
export * as f from "f";
// unresolved
const x = X;
const _a = a;
const _c = c;
const _e = e;
// top level
const b = 1,
d = 2,
f = 3;
console.log(b, d, f);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5260/output.amd.js | JavaScript | define([
"require",
"exports",
"a",
"b",
"c",
"d",
"e",
"f"
], function(require, exports, _a, _b, _c, _d, _e, _f) {
"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.X;
},
b: function() {
return _b.X;
},
c: function() {
return _c.default;
},
d: function() {
return _d.default;
},
e: function() {
return _e;
},
f: function() {
return _f;
}
});
_c = /*#__PURE__*/ _interop_require_default(_c);
_d = /*#__PURE__*/ _interop_require_default(_d);
_e = /*#__PURE__*/ _interop_require_wildcard(_e);
_f = /*#__PURE__*/ _interop_require_wildcard(_f);
// unresolved
const x = X;
const _a1 = a;
const _c1 = c;
const _e1 = e;
// top level
const b = 1, d = 2, f = 3;
console.log(b, d, f);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5260/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, {
a: function() {
return _a.X;
},
b: function() {
return _b.X;
},
c: function() {
return _c.default;
},
d: function() {
return _d.default;
},
e: function() {
return _e;
},
f: function() {
return _f;
}
});
const _a = require("a");
const _b = require("b");
const _c = /*#__PURE__*/ _interop_require_default(require("c"));
const _d = /*#__PURE__*/ _interop_require_default(require("d"));
const _e = /*#__PURE__*/ _interop_require_wildcard(require("e"));
const _f = /*#__PURE__*/ _interop_require_wildcard(require("f"));
// unresolved
const x = X;
const _a1 = a;
const _c1 = c;
const _e1 = e;
// top level
const b = 1, d = 2, f = 3;
console.log(b, d, f);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-5260/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("a"), require("b"), require("c"), require("d"), require("e"), require("f"));
else if (typeof define === "function" && define.amd) define([
"exports",
"a",
"b",
"c",
"d",
"e",
"f"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.a, global.b, global.c, global.d, global.e, global.f);
})(this, function(exports, _a, _b, _c, _d, _e, _f) {
"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.X;
},
b: function() {
return _b.X;
},
c: function() {
return _c.default;
},
d: function() {
return _d.default;
},
e: function() {
return _e;
},
f: function() {
return _f;
}
});
_c = /*#__PURE__*/ _interop_require_default(_c);
_d = /*#__PURE__*/ _interop_require_default(_d);
_e = /*#__PURE__*/ _interop_require_wildcard(_e);
_f = /*#__PURE__*/ _interop_require_wildcard(_f);
// unresolved
const x = X;
const _a1 = a;
const _c1 = c;
const _e1 = e;
// top level
const b = 1, d = 2, f = 3;
console.log(b, d, f);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-578/2/input.js | JavaScript | import { myFunction } from "./dep.js";
class SomeClass {
constructor(properties) {
this.props = properties;
}
call() {
const { myFunction } = this.props;
if (myFunction) {
myFunction();
} else {
console.log("DID NOT WORK!");
}
}
}
let instance = new SomeClass({
myFunction: () => {
console.log("CORRECT FUNCTION CALLED");
},
});
instance.call();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-578/2/output.amd.js | JavaScript | define([
"require",
"exports"
], function(require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
class SomeClass {
constructor(properties){
this.props = properties;
}
call() {
const { myFunction } = this.props;
if (myFunction) {
myFunction();
} else {
console.log("DID NOT WORK!");
}
}
}
let instance = new SomeClass({
myFunction: ()=>{
console.log("CORRECT FUNCTION CALLED");
}
});
instance.call();
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-578/2/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
class SomeClass {
constructor(properties){
this.props = properties;
}
call() {
const { myFunction } = this.props;
if (myFunction) {
myFunction();
} else {
console.log("DID NOT WORK!");
}
}
}
let instance = new SomeClass({
myFunction: ()=>{
console.log("CORRECT FUNCTION CALLED");
}
});
instance.call();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-578/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
});
class SomeClass {
constructor(properties){
this.props = properties;
}
call() {
const { myFunction } = this.props;
if (myFunction) {
myFunction();
} else {
console.log("DID NOT WORK!");
}
}
}
let instance = new SomeClass({
myFunction: ()=>{
console.log("CORRECT FUNCTION CALLED");
}
});
instance.call();
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-605/input.js | JavaScript | export * from "c";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-605/output.amd.js | JavaScript | define([
"require",
"exports",
"c"
], function(require, exports, _c) {
"use strict";
_export_star(_c, exports);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-605/output.cjs | JavaScript | "use strict";
_export_star(require("c"), exports);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-605/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("c"));
else if (typeof define === "function" && define.amd) define([
"exports",
"c"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.c);
})(this, function(exports, _c) {
"use strict";
_export_star(_c, exports);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-7180/input.js | JavaScript | export * from "./fn.js";
export * from "./fn2.js";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-7180/output.amd.js | JavaScript | define([
"require",
"exports",
"./fn.js",
"./fn2.js"
], function(require, exports, _fn, _fn2) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_export_star(_fn, exports);
_export_star(_fn2, exports);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-7180/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && __export(require("./fn.js")) && __export(require("./fn2.js"));
_export_star(require("./fn.js"), exports);
_export_star(require("./fn2.js"), exports);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-7180/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./fn.js"), require("./fn2.js"));
else if (typeof define === "function" && define.amd) define([
"exports",
"./fn.js",
"./fn2.js"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.fnJs, global.fn2Js);
})(this, function(exports, _fn, _fn2) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_export_star(_fn, exports);
_export_star(_fn2, exports);
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-724/input.js | JavaScript | import { Db, MongoClient } from "mongodb";
require("foo");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-724/output.amd.js | JavaScript | define([
"require"
], function(require) {
"use strict";
require("foo");
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-724/output.cjs | JavaScript | "use strict";
require("foo");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-724/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory();
else if (typeof define === "function" && define.amd) define([], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory();
})(this, function() {
"use strict";
require("foo");
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-7315/input.js | JavaScript | // input.ts
"use client"
export function ReactClientComponent() {
return "Hello world"
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-7315/output.amd.js | JavaScript | // input.ts
define([
"require",
"exports"
], function(require, exports) {
"use client";
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "ReactClientComponent", {
enumerable: true,
get: function() {
return ReactClientComponent;
}
});
function ReactClientComponent() {
return "Hello world";
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-7315/output.cjs | JavaScript | // input.ts
"use client";
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "ReactClientComponent", {
enumerable: true,
get: function() {
return ReactClientComponent;
}
});
function ReactClientComponent() {
return "Hello world";
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-7315/output.umd.js | JavaScript | // input.ts
(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 client";
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "ReactClientComponent", {
enumerable: true,
get: function() {
return ReactClientComponent;
}
});
function ReactClientComponent() {
return "Hello world";
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-763/input.js | JavaScript | import {
INSTAGRAM_CHECK_PATTERN,
RESOURCE_FACEBOOK,
RESOURCE_INSTAGRAM,
RESOURCE_WEBSITE,
} from "../../../../consts";
const resources = [
{
value: RESOURCE_WEBSITE,
label: "Webové stránky",
},
{
value: RESOURCE_FACEBOOK,
label: "Facebook",
},
{
value: RESOURCE_INSTAGRAM,
label: "Instagram",
},
];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-763/output.amd.js | JavaScript | define([
"require",
"exports",
"../../../../consts"
], function(require, exports, _consts) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const resources = [
{
value: _consts.RESOURCE_WEBSITE,
label: "Webové stránky"
},
{
value: _consts.RESOURCE_FACEBOOK,
label: "Facebook"
},
{
value: _consts.RESOURCE_INSTAGRAM,
label: "Instagram"
}
];
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-763/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const _consts = require("../../../../consts");
const resources = [
{
value: _consts.RESOURCE_WEBSITE,
label: "Webové stránky"
},
{
value: _consts.RESOURCE_FACEBOOK,
label: "Facebook"
},
{
value: _consts.RESOURCE_INSTAGRAM,
label: "Instagram"
}
];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-763/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("../../../../consts"));
else if (typeof define === "function" && define.amd) define([
"exports",
"../../../../consts"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.consts);
})(this, function(exports, _consts) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const resources = [
{
value: _consts.RESOURCE_WEBSITE,
label: "Webové stránky"
},
{
value: _consts.RESOURCE_FACEBOOK,
label: "Facebook"
},
{
value: _consts.RESOURCE_INSTAGRAM,
label: "Instagram"
},
];
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-8047/input.js | JavaScript | "use client";
"foo";
"use bar";
"use strict";
// All above are directives
function foo() { }
"use hello"; // This is not directive
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-8047/output.amd.js | JavaScript | define([
"require"
], function(require) {
"use client";
"foo";
"use bar";
"use strict";
// All above are directives
function foo() {}
"use hello"; // This is not directive
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-8047/output.cjs | JavaScript | "use client";
"foo";
"use bar";
"use strict";
// All above are directives
function foo() {}
"use hello"; // This is not directive
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-8047/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory();
else if (typeof define === "function" && define.amd) define([], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory();
})(this, function() {
"use client";
"foo";
"use bar";
"use strict";
// All above are directives
function foo() {}
"use hello"; // This is not directive
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/input.js | JavaScript | export function* myGenerator() {
yield* [1, 2, 3];
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.amd.js | JavaScript | define([
"require",
"exports"
], function(require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "myGenerator", {
enumerable: true,
get: function() {
return myGenerator;
}
});
function* myGenerator() {
yield* [
1,
2,
3
];
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "myGenerator", {
enumerable: true,
get: function() {
return myGenerator;
}
});
function* myGenerator() {
yield* [
1,
2,
3
];
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/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, "myGenerator", {
enumerable: true,
get: function() {
return myGenerator;
}
});
function* myGenerator() {
yield* [
1,
2,
3
];
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/input.ts | TypeScript | import { queryString } from "./url";
export function setup(url: string, obj: any) {
const _queryString = queryString(obj);
const _url = url + "?" + _queryString;
return _url;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.amd.ts | TypeScript | define([
"require",
"exports",
"./url"
], function(require, exports, _url) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "setup", {
enumerable: true,
get: function() {
return setup;
}
});
function setup(url, obj) {
const _queryString = (0, _url.queryString)(obj);
const _url1 = url + "?" + _queryString;
return _url1;
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.umd.ts | TypeScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./url"));
else if (typeof define === "function" && define.amd) define([
"exports",
"./url"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.url);
})(this, function(exports, _url) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "setup", {
enumerable: true,
get: function() {
return setup;
}
});
function setup(url, obj) {
const _queryString = (0, _url.queryString)(obj);
const _url1 = url + "?" + _queryString;
return _url1;
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/input.js | JavaScript | import root from "./_root.js";
import stubFalse from "./stubFalse.js";
var freeExports = typeof exports == "object" && exports && !exports.nodeType &&
exports;
var freeModule = freeExports && typeof module == "object" && module &&
!module.nodeType && module;
var moduleExports = freeModule && freeModule.exports === freeExports;
var Buffer = moduleExports ? root.Buffer : undefined;
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
var isBuffer = nativeIsBuffer || stubFalse;
export default isBuffer;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.amd.js | JavaScript | define([
"require",
"exports",
"./_root.js",
"./stubFalse.js"
], function(require, exports1, _root, _stubFalse) {
"use strict";
Object.defineProperty(exports1, "__esModule", {
value: true
});
Object.defineProperty(exports1, "default", {
enumerable: true,
get: function() {
return _default;
}
});
_root = /*#__PURE__*/ _interop_require_default(_root);
_stubFalse = /*#__PURE__*/ _interop_require_default(_stubFalse);
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
var moduleExports = freeModule && freeModule.exports === freeExports;
var Buffer = moduleExports ? _root.default.Buffer : undefined;
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
var isBuffer = nativeIsBuffer || _stubFalse.default;
const _default = isBuffer;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _root = /*#__PURE__*/ _interop_require_default(require("./_root.js"));
const _stubFalse = /*#__PURE__*/ _interop_require_default(require("./stubFalse.js"));
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
var moduleExports = freeModule && freeModule.exports === freeExports;
var Buffer = moduleExports ? _root.default.Buffer : undefined;
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
var isBuffer = nativeIsBuffer || _stubFalse.default;
const _default = isBuffer;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("./_root.js"), require("./stubFalse.js"));
else if (typeof define === "function" && define.amd) define([
"exports",
"./_root.js",
"./stubFalse.js"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.rootJs, global.stubFalseJs);
})(this, function(exports1, _root, _stubFalse) {
"use strict";
Object.defineProperty(exports1, "__esModule", {
value: true
});
Object.defineProperty(exports1, "default", {
enumerable: true,
get: function() {
return _default;
}
});
_root = /*#__PURE__*/ _interop_require_default(_root);
_stubFalse = /*#__PURE__*/ _interop_require_default(_stubFalse);
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
var moduleExports = freeModule && freeModule.exports === freeExports;
var Buffer = moduleExports ? _root.default.Buffer : undefined;
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
var isBuffer = nativeIsBuffer || _stubFalse.default;
const _default = isBuffer;
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/computed-prop-name/input.js | JavaScript | import { x } from "libx";
import { y } from "liby";
class F {
get [x]() {}
get y() {
y();
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/computed-prop-name/output.amd.js | JavaScript | define([
"require",
"exports",
"libx",
"liby"
], function(require, exports, _libx, _liby) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
class F {
get [_libx.x]() {}
get y() {
(0, _liby.y)();
}
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/computed-prop-name/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _libx() {
const data = require("libx");
_libx = function() {
return data;
};
return data;
}
function _liby() {
const data = require("liby");
_liby = function() {
return data;
};
return data;
}
class F {
get [_libx().x]() {}
get y() {
(0, _liby().y)();
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/computed-prop-name/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("libx"), require("liby"));
else if (typeof define === "function" && define.amd) define([
"exports",
"libx",
"liby"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.libx, global.liby);
})(this, function(exports, _libx, _liby) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
class F {
get [_libx.x]() {}
get y() {
(0, _liby.y)();
}
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-default/input.js | JavaScript | import foo from "foo";
function use() {
console.log(foo);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-default/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_foo = /*#__PURE__*/ _interop_require_default(_foo);
function use() {
console.log(_foo.default);
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-default/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _foo() {
const data = /*#__PURE__*/ _interop_require_default(require("foo"));
_foo = function() {
return data;
};
return data;
}
function use() {
console.log(_foo().default);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-default/output.umd.js | JavaScript | (function(global, factory) {
if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("foo"));
else if (typeof define === "function" && define.amd) define([
"exports",
"foo"
], factory);
else if (global = typeof globalThis !== "undefined" ? globalThis : global || self) factory(global.input = {}, global.foo);
})(this, function(exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
_foo = /*#__PURE__*/ _interop_require_default(_foo);
function use() {
console.log(_foo.default);
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-named/input.js | JavaScript | import { foo } from "foo";
function use() {
console.log(foo);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-named/output.amd.js | JavaScript | define([
"require",
"exports",
"foo"
], function(require, exports, _foo) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function use() {
console.log(_foo.foo);
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-import-named/output.cjs | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _foo() {
const data = require("foo");
_foo = function() {
return data;
};
return data;
}
function use() {
console.log(_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.