Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/minifier): Preserve unused imported specifiers (#6458)
- Loading branch information
Showing
403 changed files
with
682 additions
and
75 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...LiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//// [ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts] | ||
var A; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
(A || (A = {})).UnitSquare = null; |
1 change: 1 addition & 0 deletions
1
...sc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [Protected3.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [Protected9.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/TypeGuardWithArrayUnion.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [TypeGuardWithArrayUnion.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
import _instanceof from "@swc/helpers/src/_instanceof.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/abstractProperty(target=es2015).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [abstractProperty.ts] | ||
import _define_property from "@swc/helpers/src/_define_property.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/anyAsGenericFunctionCall.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//// [anyAsGenericFunctionCall.ts] | ||
var x; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
x(), x("hello"), x(x), x(x); |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/anyAssignableToEveryType.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
//// [anyAssignableToEveryType.ts] | ||
var E; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
!function(E) { | ||
E[E.A = 0] = "A"; | ||
}(E || (E = {})); |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/arrayLiteralSpread.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [arrayLiteralSpread.ts] | ||
import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [arrayLiteralSpreadES5iterable.ts] | ||
import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/arrowFunctionExpressions.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//// [arrowFunctionExpressions.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; | ||
import _to_array from "@swc/helpers/src/_to_array.mjs"; | ||
0..toExponential(); |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignAnyToEveryType.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
//// [assignAnyToEveryType.ts] | ||
var x, E, M; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
!function(E) { | ||
E[E.A = 0] = "A"; | ||
}(E || (E = {})), E.A, (M || (M = {})).foo = 1, M = x; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignEveryTypeToAny.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
//// [assignEveryTypeToAny.ts] | ||
var E; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
!function(E) { | ||
E[E.A = 0] = "A"; | ||
}(E || (E = {})), E.A, E.A; |
1 change: 1 addition & 0 deletions
1
...-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//// [assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts] | ||
var ClassTypeParam, GenericSignaturesInvalid, GenericSignaturesValid; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
ClassTypeParam || (ClassTypeParam = {}), GenericSignaturesInvalid || (GenericSignaturesInvalid = {}), GenericSignaturesValid || (GenericSignaturesValid = {}); |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [assignmentCompatWithObjectMembers2.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [assignmentCompatWithObjectMembers3.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [assignmentCompatWithObjectMembers5.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [assignmentCompatWithObjectMembersNumericNames.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
...wc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//// [assignmentCompatWithObjectMembersStringNumericNames.ts] | ||
var JustStrings, NumbersAndStrings; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
JustStrings || (JustStrings = {}), NumbersAndStrings || (NumbersAndStrings = {}); |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//// [assignmentCompatWithStringIndexer3.ts] | ||
var Generics; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
Generics || (Generics = {}); |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncAliasReturnType_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [asyncAliasReturnType_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncAliasReturnType_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncAliasReturnType_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
4 changes: 4 additions & 0 deletions
4
crates/swc/tests/tsc-references/asyncArrowFunction11_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
//// [asyncArrowFunction11_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 _define_property from "@swc/helpers/src/_define_property.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncArrowFunctionCapturesArguments_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncArrowFunctionCapturesThis_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [asyncFunctionDeclaration13_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncFunctionDeclaration13_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [asyncFunctionDeclaration14_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncFunctionDeclaration14_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncFunctionDeclaration15_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [asyncFunctionDeclaration15_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncFunctionDeclaration15_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncFunctionDeclaration15_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [asyncFunctionDeclaration1_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncFunctionDeclaration1_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
//// [asyncFunctionDeclarationCapturesArguments_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"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncMethodWithSuperConflict_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncMethodWithSuper_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [asyncMethodWithSuper_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncMultiFile_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
//// [a.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; | ||
//// [b.ts] |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncMultiFile_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
//// [a.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
//// [b.ts] |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncQualifiedReturnType_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncQualifiedReturnType_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
//// [asyncQualifiedReturnType_es6.ts] | ||
var X; | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
(X || (X = {})).MyPromise = class extends Promise { | ||
}; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/asyncUseStrict_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [asyncUseStrict_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/asyncUseStrict_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [asyncUseStrict_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
3 changes: 3 additions & 0 deletions
3
crates/swc/tests/tsc-references/asyncWithVarShadowing_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
//// [asyncWithVarShadowing_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _extends from "@swc/helpers/src/_extends.mjs"; | ||
import _object_destructuring_empty from "@swc/helpers/src/_object_destructuring_empty.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitBinaryExpression1_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitBinaryExpression1_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitBinaryExpression1_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitBinaryExpression1_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitBinaryExpression2_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitBinaryExpression2_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitBinaryExpression2_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitBinaryExpression2_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitBinaryExpression3_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitBinaryExpression3_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitBinaryExpression3_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitBinaryExpression3_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitBinaryExpression4_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitBinaryExpression4_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitBinaryExpression4_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitBinaryExpression4_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitBinaryExpression5_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitBinaryExpression5_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitBinaryExpression5_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitBinaryExpression5_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitCallExpression1_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitCallExpression1_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitCallExpression1_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitCallExpression1_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitCallExpression2_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitCallExpression2_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitCallExpression2_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitCallExpression2_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitCallExpression3_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitCallExpression3_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitCallExpression3_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitCallExpression3_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitCallExpression4_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitCallExpression4_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitCallExpression4_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitCallExpression4_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitCallExpression5_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitCallExpression5_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitCallExpression5_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitCallExpression5_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitCallExpression6_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitCallExpression6_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitCallExpression6_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitCallExpression6_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitCallExpression7_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitCallExpression7_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitCallExpression7_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitCallExpression7_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/awaitCallExpression8_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitCallExpression8_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitCallExpression8_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitCallExpression8_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
5 changes: 5 additions & 0 deletions
5
crates/swc/tests/tsc-references/awaitClassExpression_es5.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
//// [awaitClassExpression_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 _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"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/awaitClassExpression_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitClassExpression_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
//// [awaitUnion_es5.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
import _ts_generator from "@swc/helpers/src/_ts_generator.mjs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [awaitUnion_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/await_unaryExpression_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [await_unaryExpression_es6.ts] | ||
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [cb.js] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/circularIndexedAccessErrors.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
//// [circularIndexedAccessErrors.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
x2.x; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [circularTypeAliasForUnionWithClass.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classAbstractProperties.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classAbstractProperties.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classAndInterfaceWithSameName.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//// [classAndInterfaceWithSameName.ts] | ||
var M; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
M || (M = {}); |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//// [classAppearsToHaveMembersOfObject.ts] | ||
var c; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
c.toString(), c.hasOwnProperty(""); |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classConstructorOverloadsAccessibility.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//// [classExpression.ts] | ||
var M; | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
M || (M = {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classExpression1.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classImplementsMergedClassInterface.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classImplementsMergedClassInterface.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classInsideBlock.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classStaticBlock1(target=es5).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classStaticBlock1.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classStaticBlock10(target=es5).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classStaticBlock10.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
2 changes: 2 additions & 0 deletions
2
crates/swc/tests/tsc-references/classStaticBlock11(target=es2015).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
//// [classStaticBlock11.ts] | ||
import _class_private_field_get from "@swc/helpers/src/_class_private_field_get.mjs"; | ||
import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; | ||
import _class_private_field_set from "@swc/helpers/src/_class_private_field_set.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classStaticBlock18(target=es5).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classStaticBlock18.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classStaticBlock2(target=es5).2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classStaticBlock2.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classStaticBlock21.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classStaticBlock21.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classStaticBlock28.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
//// [classStaticBlock28.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
console.log(1); |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classStaticBlock8.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classStaticBlock8.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classWithEmptyBody.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classWithEmptyBody.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/classWithSemicolonClassElement1.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
//// [classWithSemicolonClassElement1.ts] | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; |
Oops, something went wrong.
dabea71
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/bugs-1
380309
ns/iter (± 29903
)349632
ns/iter (± 29760
)1.09
es/full/minify/libraries/antd
2137349110
ns/iter (± 101724270
)1957165331
ns/iter (± 53635805
)1.09
es/full/minify/libraries/d3
494321806
ns/iter (± 33766541
)433230902
ns/iter (± 17642077
)1.14
es/full/minify/libraries/echarts
1715818213
ns/iter (± 152348982
)1671474473
ns/iter (± 98476853
)1.03
es/full/minify/libraries/jquery
126117900
ns/iter (± 9372918
)104882915
ns/iter (± 3030188
)1.20
es/full/minify/libraries/lodash
146710926
ns/iter (± 10546392
)147869608
ns/iter (± 24038492
)0.99
es/full/minify/libraries/moment
74247392
ns/iter (± 11578709
)68619452
ns/iter (± 3432784
)1.08
es/full/minify/libraries/react
23028002
ns/iter (± 954786
)22669381
ns/iter (± 3486552
)1.02
es/full/minify/libraries/terser
374635589
ns/iter (± 21170901
)369145753
ns/iter (± 39937234
)1.01
es/full/minify/libraries/three
633513788
ns/iter (± 60603354
)715356507
ns/iter (± 82567204
)0.89
es/full/minify/libraries/typescript
3877807461
ns/iter (± 139431744
)4283352428
ns/iter (± 226778311
)0.91
es/full/minify/libraries/victory
964824116
ns/iter (± 92271028
)1017507676
ns/iter (± 69442282
)0.95
es/full/minify/libraries/vue
270336575
ns/iter (± 45107603
)217195615
ns/iter (± 7995448
)1.24
es/full/codegen/es3
50595
ns/iter (± 18831
)39145
ns/iter (± 7077
)1.29
es/full/codegen/es5
44381
ns/iter (± 19426
)37019
ns/iter (± 7245
)1.20
es/full/codegen/es2015
44668
ns/iter (± 7161
)36482
ns/iter (± 4972
)1.22
es/full/codegen/es2016
41311
ns/iter (± 6554
)36237
ns/iter (± 4597
)1.14
es/full/codegen/es2017
42148
ns/iter (± 7319
)36842
ns/iter (± 4208
)1.14
es/full/codegen/es2018
43863
ns/iter (± 7645
)43374
ns/iter (± 7329
)1.01
es/full/codegen/es2019
43638
ns/iter (± 7072
)40675
ns/iter (± 7412
)1.07
es/full/codegen/es2020
46075
ns/iter (± 9642
)35644
ns/iter (± 6538
)1.29
es/full/all/es3
274822916
ns/iter (± 67020098
)233796880
ns/iter (± 23717192
)1.18
es/full/all/es5
260793154
ns/iter (± 42808549
)199044625
ns/iter (± 14093987
)1.31
es/full/all/es2015
204560709
ns/iter (± 25521892
)172620647
ns/iter (± 16790762
)1.19
es/full/all/es2016
201088334
ns/iter (± 22089485
)159275145
ns/iter (± 18333985
)1.26
es/full/all/es2017
196993358
ns/iter (± 31906276
)162641875
ns/iter (± 17706312
)1.21
es/full/all/es2018
196914836
ns/iter (± 28295749
)161547619
ns/iter (± 17546494
)1.22
es/full/all/es2019
197096392
ns/iter (± 19374217
)161714485
ns/iter (± 12642274
)1.22
es/full/all/es2020
187010122
ns/iter (± 32728069
)157365213
ns/iter (± 15601094
)1.19
es/full/parser
903626
ns/iter (± 151374
)800604
ns/iter (± 177378
)1.13
es/full/base/fixer
29721
ns/iter (± 3373
)29917
ns/iter (± 3643
)0.99
es/full/base/resolver_and_hygiene
123733
ns/iter (± 36128
)102767
ns/iter (± 12439
)1.20
serialization of ast node
266
ns/iter (± 44
)237
ns/iter (± 37
)1.12
serialization of serde
281
ns/iter (± 44
)261
ns/iter (± 37
)1.08
This comment was automatically generated by workflow using github-action-benchmark.