Skip to content

Commit

Permalink
Update default target from safari13 to safari14.
Browse files Browse the repository at this point in the history
From vitejs#9062, it sounds like the goal is to support ES2020 by default. However, the browser list was set to `safari13`, which means that big ints (an ES2020 feature) produced an error by default.

This PR updates from `safari13` to `safari14` (released September 2020) to support that.

Thanks for any consideration of this change!
  • Loading branch information
lgarron authored Jul 13, 2022
1 parent f020066 commit 4f1c3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ESBUILD_MODULES_TARGET = [
'edge88',
'firefox78',
'chrome87',
'safari13' // transpile nullish coalescing
'safari14'
]

export const DEFAULT_EXTENSIONS = [
Expand Down

0 comments on commit 4f1c3b6

Please sign in to comment.