Skip to content

Commit

Permalink
fix (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Nov 7, 2021
1 parent d44c1ec commit dd4c04e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transpilers/swc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ targetMapping.set(/* ts.ScriptTarget.ES2018 */ 5, 'es2018');
targetMapping.set(/* ts.ScriptTarget.ES2019 */ 6, 'es2019');
targetMapping.set(/* ts.ScriptTarget.ES2020 */ 7, 'es2020');
targetMapping.set(/* ts.ScriptTarget.ES2021 */ 8, 'es2021');
targetMapping.set(/* ts.ScriptTarget.ES2022 */ 9, 'es2022');
targetMapping.set(/* ts.ScriptTarget.ESNext */ 99, 'es2022');

type SwcTarget = typeof swcTargets[number];
Expand Down

0 comments on commit dd4c04e

Please sign in to comment.