-
-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set swc option keepClassNames whenever possible (#1344)
* set swc option keepClassNames whenever possible * increase minimum swc version to 1.2.50 to support keepClassNames * update package-lock.json * add test * lint-fix * Fix tests so they actually fail without the bugfix * remove log statement from tests * compat with ts 2.7
- Loading branch information
Showing
8 changed files
with
6,550 additions
and
73 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
// Test for #1343 | ||
const Decorator = function () {}; | ||
@Decorator | ||
class World {} | ||
|
||
// intentional type errors to check transpile-only ESM loader skips type checking | ||
parseInt(1101, 2); | ||
const x: number = 'hello world'; | ||
const x: number = `Hello ${World.name}!`; | ||
console.log(x); |
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,4 +1,9 @@ | ||
// Test for #1343 | ||
const Decorator = function () {}; | ||
@Decorator | ||
class World {} | ||
|
||
// intentional type errors to check transpile-only ESM loader skips type checking | ||
parseInt(1101, 2); | ||
const x: number = 'hello world'; | ||
const x: number = `Hello ${World.name}!`; | ||
console.log(x); |
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,7 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2018", | ||
"module": "ESNext", | ||
"allowJs": true, | ||
"jsx": "react" | ||
"jsx": "react", | ||
"experimentalDecorators": true | ||
} | ||
} |