Skip to content

Commit

Permalink
add Node.js 18, 19, and 20 to the list of target defaults (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
raygesualdo authored Apr 14, 2023
1 parent b775104 commit e8bc724
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ const nodeTargetDefaults = new Map([
['15', 'es2021'],
['16', 'es2021'],
['17', 'es2022'],
['18', 'es2023'],
['19', 'es2023'],
['20', 'es2023'],
])

function buildSwcTransformOpts(swcOptions: (Options & { experimental?: unknown }) | undefined): Options {
Expand Down

0 comments on commit e8bc724

Please sign in to comment.