Skip to content

Commit 3cc65d7

Browse files
lgarronbluwy
andauthoredNov 28, 2022
feat!: support safari14 by default for wider ES2020 compatibility (#9063)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
1 parent 01dee1b commit 3cc65d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎docs/guide/build.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The production bundle assumes support for modern JavaScript. By default, Vite ta
88

99
- Chrome >=87
1010
- Firefox >=78
11-
- Safari >=13
11+
- Safari >=14
1212
- Edge >=88
1313

1414
You can specify custom targets via the [`build.target` config option](/config/build-options.md#build-target), where the lowest target is `es2015`.

‎packages/vite/src/node/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const ESBUILD_MODULES_TARGET = [
2222
'edge88',
2323
'firefox78',
2424
'chrome87',
25-
'safari13' // transpile nullish coalescing
25+
'safari14'
2626
]
2727

2828
export const DEFAULT_EXTENSIONS = [

0 commit comments

Comments
 (0)
Please sign in to comment.