perf(es/minifier): Invoke DCE only before the first compression (#5907)

**Description:**

Invoke DCE only before the first compression. I verified that this patch does not affect the compression rate of the real-world inputs greatly.
This commit is contained in:
Donny/강동윤 2022-09-20 15:41:26 +09:00 committed by GitHub
parent cb2044234a
commit 1df72430a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
475 changed files with 1716 additions and 515 deletions

View File

@ -1,8 +1,8 @@
"use strict";
function e(e, t) {
"use strict";
var r;
(r = function(e) {
var r, n;
(n = function(e) {
"use strict";
e.vr = function(e, t, r) {
return function() {

View File

@ -1 +1 @@
var a;v=(a=r,b=>{let n=a.map(t=>{if(t)return t.foo});return n});
var a;v=(a=r,b=>{let n=a.map(t=>{if(t){var e;return t.foo}});return n});

View File

@ -36,6 +36,7 @@
888,
179
], function() {
var t;
return n(n.s = 7139);
}), _N_E = n.O();
}

View File

@ -1,5 +1,5 @@
{
"mappings": "AEACA,CAAAA,IAAI,CAAC,gBAAkB,AAAC,GAAGA,IAAI,CAAC,gBAAkB,AAAC,IAAI,EAAE,CAAA,CAAEC,IAAI,CAAC;IAC7D;AAAC,WAAG;KAAC;IACL;AACU,QAAA,IAAI,EAAQ,SACdC,CAAuB,EACvBC,CAAmB,EACnBC,CAAmB,EACrB;YACE,YAAY,CAAC;gBFNxBC,CAAA,GAAA,SAAAC,CAAA,EAAA;gBAAA,IAAAC,CAAA,GAAAD,CAAA,CAAAC,IAAA;gBAAA,OAAA,CAAA,GCDDC,CAAA,CAAAC,GAAA,CAAA,CAAA,KAAA,EAAA;oBACAC,QAAA,EAAAH,CAAA,CAAAI,GAAA;iBACA,CAAA,CAAA;YACA,CAAA;YAKYP,CAAmB,CAACQ,CAAC,CAACT,CAAmB,CAAC,EACrBC,CAAmB,CAACS,CAAC,CAACV,CAAmB,EAAE;gBACvCW,OAAO,EAAE,WAAY;oBACtC,OAAqBA,CAAO,CAAC;gBDZzB,CAAA;gBAAqBC,OAAA,EAAA,WAAA;oBAC3C,OAAOV,CAAA,CAAA;gBAAM,CAAA;aACd,CAAA;YAAA,IAAAG,CAAA,GAAAJ,CAAA,CAAA,IAAA,CAAA,EAAAU,CAAA,GAAA,CAAA,CAAA;QCKM,CAAA;AAKP,QAAA,IAAA,EAAA,SAAAZ,CAAA,EAAAc,CAAA,EAAAZ,CAAA,EAAA;YAAAa,CAAAA,MAAA,CAAAC,QAAA,GAAAD,MAAA,CAAAC,QAAA,IAAA,EAAA,CAAA,CAAAjB,IAAA,CAAA;gBAAA,SAAA;gBAAA,WAAA;oBAAA,OAAAG,CAAA,CAAA,IAAA,CAAA,CAAA;gBAAA,CAAA;aAAA,CAAA,CAAA;QAAA,CAAA;KAAA;IAAA,SAAAA,CAAA,EAAA;QAAAA,CAAA,CAAAe,CAAA,CAAA,CAAA,EAAA;AAAA,eAAA;AAAA,eAAA;AAAA,eAAA;SAAA,EAAA,WAAA;YAAA,OAAAf,CAAA,CAAAA,CAAA,CAAAgB,CAAA,GAAA,IAAA,CAAA,CAAA;QAAA,CAAA,CAAA,EAAAC,IAAA,GAAAjB,CAAA,CAAAe,CAAA,EAAA;IAAA,CAAA;CAAA,CAAA,CAAA",
"mappings": "AEACA,CAAAA,IAAI,CAAC,gBAAkB,AAAC,GAAGA,IAAI,CAAC,gBAAkB,AAAC,IAAI,EAAE,CAAA,CAAEC,IAAI,CAAC;IAC7D;AAAC,WAAG;KAAC;IACL;AACU,QAAA,IAAI,EAAQ,SACdC,CAAuB,EACvBC,CAAmB,EACnBC,CAAmB,EACrB;YACE,YAAY,CAAC;gBFNxBC,CAAA,GAAA,SAAAC,CAAA,EAAA;gBAAA,IAAAC,CAAA,GAAAD,CAAA,CAAAC,IAAA;gBAAA,OAAA,CAAA,GCDDC,CAAA,CAAAC,GAAA,CAAA,CAAA,KAAA,EAAA;oBACAC,QAAA,EAAAH,CAAA,CAAAI,GAAA;iBACA,CAAA,CAAA;YACA,CAAA;YAKYP,CAAmB,CAACQ,CAAC,CAACT,CAAmB,CAAC,EACrBC,CAAmB,CAACS,CAAC,CAACV,CAAmB,EAAE;gBACvCW,OAAO,EAAE,WAAY;oBACtC,OAAqBA,CAAO,CAAC;gBDZzB,CAAA;gBAAqBC,OAAA,EAAA,WAAA;oBAC3C,OAAOV,CAAA,CAAA;gBAAM,CAAA;aACd,CAAA;YAAA,IAAAG,CAAA,GAAAJ,CAAA,CAAA,IAAA,CAAA,EAAAU,CAAA,GAAA,CAAA,CAAA;QCKM,CAAA;AAKP,QAAA,IAAA,EAAA,SAAAZ,CAAA,EAAAc,CAAA,EAAAZ,CAAA,EAAA;YAAAa,CAAAA,MAAA,CAAAC,QAAA,GAAAD,MAAA,CAAAC,QAAA,IAAA,EAAA,CAAA,CAAAjB,IAAA,CAAA;gBAAA,SAAA;gBAAA,WAAA;oBAAA,OAAAG,CAAA,CAAA,IAAA,CAAA,CAAA;gBAAA,CAAA;aAAA,CAAA,CAAA;QAAA,CAAA;KAAA;IAAA,SAAAA,CAAA,EAAA;QAAAA,CAAA,CAAAe,CAAA,CAAA,CAAA,EAAA;AAAA,eAAA;AAAA,eAAA;AAAA,eAAA;SAAA,EAAA,WAAA;gBAAAC,CAAA;YAAA,OAAAhB,CAAA,CAAAA,CAAA,CAAAiB,CAAA,GAAA,IAAA,CAAA,CAAA;QAAA,CAAA,CAAA,EAAAC,IAAA,GAAAlB,CAAA,CAAAe,CAAA,EAAA;IAAA,CAAA;CAAA,CAAA,CAAA",
"names": [
"self",
"push",
@ -21,6 +21,7 @@
"window",
"__NEXT_P",
"O",
"moduleId",
"s",
"_N_E"
],

View File

@ -1 +1,2 @@
//// [Protected5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1 +1,3 @@
//// [accessorWithES5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _create_class from "@swc/helpers/src/_create_class.mjs";

View File

@ -1 +1,3 @@
//// [accessorWithMismatchedAccessibilityModifiers.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _create_class from "@swc/helpers/src/_create_class.mjs";

View File

@ -1,2 +1,5 @@
//// [accessorsAreNotContextuallyTyped.ts]
(void 0).x("");
var c;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _create_class from "@swc/helpers/src/_create_class.mjs";
c.x("");

View File

@ -1 +1,4 @@
//// [apparentTypeSubtyping.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [apparentTypeSupertype.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [arrayLiteralsWithRecursiveGenerics.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,2 +1,3 @@
//// [arrowFunctionExpressions.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
0..toExponential();

View File

@ -1 +1,4 @@
//// [assignmentCompatWithCallSignatures3.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,5 +1,8 @@
//// [assignmentCompatWithCallSignatures4.ts]
var Errors;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
!function(Errors) {
var WithNonGenericSignaturesInBaseType, WithGenericSignaturesInBaseType;
WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {}), WithGenericSignaturesInBaseType || (WithGenericSignaturesInBaseType = {});

View File

@ -1 +1,4 @@
//// [assignmentCompatWithCallSignatures5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,3 +1,6 @@
//// [assignmentCompatWithCallSignatures6.ts]
var x, b, b2, b3, b4, b5, b11, b16;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
x.a = b, b = x.a, x.a2 = b2, b2 = x.a2, x.a3 = b3, b3 = x.a3, x.a4 = b4, b4 = x.a4, x.a5 = b5, b5 = x.a5, x.a11 = b11, b11 = x.a11, x.a16 = b16, b16 = x.a16;

View File

@ -1 +1,4 @@
//// [assignmentCompatWithConstructSignatures3.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,5 +1,8 @@
//// [assignmentCompatWithConstructSignatures4.ts]
var Errors;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
!function(Errors) {
var WithNonGenericSignaturesInBaseType, WithGenericSignaturesInBaseType;
WithNonGenericSignaturesInBaseType || (WithNonGenericSignaturesInBaseType = {}), WithGenericSignaturesInBaseType || (WithGenericSignaturesInBaseType = {});

View File

@ -1 +1,4 @@
//// [assignmentCompatWithConstructSignatures5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,3 +1,6 @@
//// [assignmentCompatWithConstructSignatures6.ts]
var x, b, b2, b3, b4, b5, b11, b16;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
x.a = b, b = x.a, x.a2 = b2, b2 = x.a2, x.a3 = b3, b3 = x.a3, x.a4 = b4, b4 = x.a4, x.a5 = b5, b5 = x.a5, x.a11 = b11, b11 = x.a11, x.a16 = b16, b16 = x.a16;

View File

@ -1,3 +1,6 @@
//// [assignmentCompatWithNumericIndexer.ts]
var Generics;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
Generics || (Generics = {});

View File

@ -1,3 +1,6 @@
//// [assignmentCompatWithNumericIndexer3.ts]
var Generics;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
Generics || (Generics = {});

View File

@ -1,5 +1,7 @@
//// [assignmentCompatWithObjectMembersOptionality.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
var TargetHasOptional, SourceHasOptional, Base = function Base() {
"use strict";
_class_call_check(this, Base);

View File

@ -1,5 +1,7 @@
//// [assignmentCompatWithObjectMembersOptionality2.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
var TargetHasOptional, SourceHasOptional, Base = function Base() {
"use strict";
_class_call_check(this, Base);

View File

@ -1,3 +1,6 @@
//// [assignmentCompatWithStringIndexer.ts]
var Generics;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
Generics || (Generics = {});

View File

@ -1 +1,3 @@
//// [asyncArrowFunction10_es5.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";

View File

@ -1 +1,2 @@
//// [asyncArrowFunction10_es6.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";

View File

@ -1 +1,3 @@
//// [asyncArrowFunction1_es5.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";

View File

@ -1 +1,2 @@
//// [asyncArrowFunction1_es6.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";

View File

@ -1 +1,4 @@
//// [asyncArrowFunctionCapturesArguments_es5.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";

View File

@ -1 +1,4 @@
//// [asyncArrowFunctionCapturesThis_es5.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";

View File

@ -1,4 +1,6 @@
//// [asyncAwaitIsolatedModules_es5.ts]
var M;
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
M || (M = {});
export { };

View File

@ -1,4 +1,4 @@
//// [asyncAwaitIsolatedModules_es6.ts]
var M;
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
M || (M = {});
export { };

View File

@ -1,3 +1,6 @@
//// [asyncAwait_es5.ts]
var M;
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
M || (M = {});

View File

@ -1,3 +1,4 @@
//// [asyncAwait_es6.ts]
var M;
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
M || (M = {});

View File

@ -1 +1,2 @@
//// [asyncFunctionDeclarationCapturesArguments_es5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1 +1,9 @@
//// [asyncMethodWithSuper_es5.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _get from "@swc/helpers/src/_get.mjs";
import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _set from "@swc/helpers/src/_set.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";

View File

@ -1 +1,3 @@
//// [asyncUnParenthesizedArrowFunction_es5.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";

View File

@ -1 +1,2 @@
//// [asyncUnParenthesizedArrowFunction_es6.ts]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";

View File

@ -1 +1,4 @@
//// [bestCommonTypeOfConditionalExpressions.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [bestCommonTypeOfConditionalExpressions2.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,3 +1,6 @@
//// [bestCommonTypeOfTuple2.ts]
var t2, t3, t4, t5;
(void 0)[4], t2[4], t3[4], t4[2], t5[2];
var t1, t2, t3, t4, t5;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
t1[4], t2[4], t3[4], t4[2], t5[2];

View File

@ -1 +1,6 @@
//// [callChainWithSuper.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _get from "@swc/helpers/src/_get.mjs";
import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,7 +1,7 @@
//// [callGenericFunctionWithZeroTypeArguments.ts]
var f3, i, i2;
var i, i2;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
f3(1), new (function() {
(void 0)(1), new (function() {
"use strict";
function C() {
_class_call_check(this, C);

View File

@ -1,7 +1,7 @@
//// [callNonGenericFunctionWithTypeArguments.ts]
var f3, i, i2, a, a2;
var i, i2, a, a2;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
f3(1), new (function() {
(void 0)(1), new (function() {
"use strict";
function C() {
_class_call_check(this, C);

View File

@ -1 +1,4 @@
//// [callSignatureAssignabilityInInheritance2.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,3 +1,6 @@
//// [callSignatureAssignabilityInInheritance3.ts]
var Errors;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
Errors || (Errors = {});

View File

@ -1 +1,4 @@
//// [callSignatureAssignabilityInInheritance4.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [callSignatureAssignabilityInInheritance5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [callSignatureAssignabilityInInheritance6.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,4 +1,5 @@
//// [callSignaturesWithOptionalParameters.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
function foo(x) {}
var c, i, a, f = function(x) {}, f2 = function(x, y) {};
foo(1), foo(), f(1), f(), f2(1), f2(1, 2), c.foo(), c.foo(1), i(), i(1), i.foo(1), i.foo(1, 2), a(), a(1), a.foo(), a.foo(1);

View File

@ -1,5 +1,6 @@
//// [callSignaturesWithOptionalParameters2.ts]
var c, i, a;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
function foo(x) {}
function foo2(x, y) {}
foo(1), foo(), foo2(1), foo2(1, 2), c.foo(), c.foo(1), c.foo2(1), c.foo2(1, 2), i(), i(1), i(1, 2), i.foo(1), i.foo(1, 2), i.foo(1, 2, 3), a(), a(1), a(1, 2), a.foo(1), a.foo(1, 2), a.foo(1, 2, 3);

View File

@ -1,6 +1,11 @@
//// [callWithSpread.ts]
var _instance, _instance1, _instance2, _instance3, _instance4, _instance5, _instance6, a, obj, xa;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _get from "@swc/helpers/src/_get.mjs";
import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
function foo(x, y) {
for(var _len = arguments.length, z = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++)z[_key - 2] = arguments[_key];
}

View File

@ -1,5 +1,7 @@
//// [castingTuple.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
var E1, E2, C = function C() {
"use strict";
_class_call_check(this, C);

View File

@ -1,3 +1,6 @@
//// [checkJsxChildrenCanBeTupleType.tsx]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
import React from "react";
React.Component;

View File

@ -1 +1,2 @@
//// [file.tsx]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1 +1,2 @@
//// [file.tsx]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1 +1,2 @@
//// [file.tsx]
import * as React from "react";

View File

@ -1,3 +1,8 @@
//// [checkJsxSubtleSkipContextSensitiveBug.tsx]
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs";
import * as React from "react";
React.Component;

View File

@ -1 +1,2 @@
//// [classAbstractAssignabilityConstructorFunction.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1 +1,2 @@
//// [classAbstractClinterfaceAssignability.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1 +1,4 @@
//// [classAbstractExtends.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [classAbstractGeneric.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [classAbstractInheritance.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,2 @@
//// [classAbstractOverloads.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1 +1,4 @@
//// [classAbstractOverrideWithAbstract.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,6 @@
//// [classAbstractSuperCalls.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _get from "@swc/helpers/src/_get.mjs";
import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,2 @@
//// [classConstructorAccessibility3.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1 +1,4 @@
//// [classConstructorAccessibility4.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [classConstructorAccessibility5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,3 +1,6 @@
//// [classConstructorParametersAccessibility.ts]
var c2;
(void 0).x, c2.p, (void 0).p;
var c1, c2;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
c1.x, c2.p, (void 0).p;

View File

@ -1,3 +1,6 @@
//// [classConstructorParametersAccessibility2.ts]
var c2;
(void 0).x, c2.p, (void 0).p;
var c1, c2;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
c1.x, c2.p, (void 0).p;

View File

@ -1,2 +1,5 @@
//// [classConstructorParametersAccessibility3.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
(void 0).p;

View File

@ -1 +1,4 @@
//// [classExpression2.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,3 +1,6 @@
//// [classExtendingBuiltinType.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
_wrap_native_super(Object), _wrap_native_super(Function), _wrap_native_super(String), _wrap_native_super(Boolean), _wrap_native_super(Number), _wrap_native_super(Date), _wrap_native_super(RegExp), _wrap_native_super(Error), _wrap_native_super(Array), _wrap_native_super(Array);

View File

@ -1,2 +1,5 @@
//// [classExtendingClassLikeType.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
Base, getBase(), getBase(), getBase(), getBase(), getBadBase();

View File

@ -1 +1,4 @@
//// [classExtendingNonConstructor.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [classExtendingNull.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [classExtendsItself.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [classExtendsItselfIndirectly.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1,12 +1,30 @@
//// [classExtendsItselfIndirectly_file1.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
E;
//// [classExtendsItselfIndirectly_file2.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
C;
//// [classExtendsItselfIndirectly_file3.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
D;
//// [classExtendsItselfIndirectly_file4.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
E2;
//// [classExtendsItselfIndirectly_file5.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
C2;
//// [classExtendsItselfIndirectly_file6.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
D2;

View File

@ -1,3 +1,6 @@
//// [classExtendsShadowedConstructorFunction.ts]
var M;
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
M || (M = {});

View File

@ -1 +1,4 @@
//// [classExtendsValidConstructorFunction.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [classIsSubtypeOfBaseType.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,2 @@
//// [classStaticBlock11.ts]
import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs";

View File

@ -1 +1,3 @@
//// [classWithOnlyPublicMembersEquivalentToInterface.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _create_class from "@swc/helpers/src/_create_class.mjs";

View File

@ -1 +1,3 @@
//// [classWithOnlyPublicMembersEquivalentToInterface2.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _create_class from "@swc/helpers/src/_create_class.mjs";

View File

@ -1 +1,2 @@
//// [classWithOptionalParameter.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";

View File

@ -1,5 +1,7 @@
//// [classWithProtectedProperty.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
(function() {
"use strict";
function C() {

View File

@ -1,4 +1,5 @@
//// [classWithStaticFieldInParameterInitializer.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
!function() {
arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
}();

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithIdenticalObjects.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithNoRelationshipObjectsOnCallSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithSubtypeObjectOnCallSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithSubtypeObjectOnIndexSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

View File

@ -1 +1,4 @@
//// [comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts]
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";

Some files were not shown because too many files have changed in this diff Show More