-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
**Related issue:** - Closes #10133
- Loading branch information
Showing
33 changed files
with
197 additions
and
103 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
swc_ecma_minifier: patch | ||
swc_core: patch | ||
--- | ||
|
||
fix(es/minifier): Fix regression |
6 changes: 3 additions & 3 deletions
6
crates/swc/tests/tsc-references/circularImportAlias.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,13 +1,13 @@ | ||
//// [circularImportAlias.ts] | ||
var B, A, B1, A1; | ||
var B, A, B1, D, A1; | ||
import { _ as _call_super } from "@swc/helpers/_/_call_super"; | ||
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; | ||
import { _ as _inherits } from "@swc/helpers/_/_inherits"; | ||
(B1 = B || (B = {})).a = A, B1.D = /*#__PURE__*/ function(_B_a_C) { | ||
(B1 = B || (B = {})).a = A, D = /*#__PURE__*/ function(_B_a_C) { | ||
function D() { | ||
return _class_call_check(this, D), _call_super(this, D, arguments); | ||
} | ||
return _inherits(D, _B_a_C), D; | ||
}(B1.a.C), (A1 = A || (A = {})).C = function C() { | ||
}(B1.a.C), B1.D = D, (A1 = A || (A = {})).C = function C() { | ||
_class_call_check(this, C); | ||
}, A1.b = B, new B.a.C(); |
10 changes: 8 additions & 2 deletions
10
crates/swc/tests/tsc-references/compoundExponentiationAssignmentLHSIsReference.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,9 @@ | ||
//// [compoundExponentiationAssignmentLHSIsReference.ts] | ||
var value, x3, x1 = Math.pow(x1, value); | ||
x3.a = Math.pow(x3.a, value), x3.a = Math.pow(x3.a, value), x1 = Math.pow(x1, value), x3.a = Math.pow(x3.a, value), x3.a = Math.pow(x3.a, value); | ||
var value, x3, x1 = Math.pow(x1, value), ref = x3.a; | ||
x3.a = Math.pow(ref, value); | ||
var ref1 = x3.a; | ||
x3.a = Math.pow(ref1, value), x1 = Math.pow(x1, value); | ||
var ref2 = x3.a; | ||
x3.a = Math.pow(ref2, value); | ||
var ref3 = x3.a; | ||
x3.a = Math.pow(ref3, value); |
6 changes: 3 additions & 3 deletions
6
crates/swc/tests/tsc-references/parserRealSource8.2.minified.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.