Skip to content

Commit

Permalink
feat!: support safari14 by default for wider ES2020 compatibility (#…
Browse files Browse the repository at this point in the history
…9063)

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
  • Loading branch information
lgarron and bluwy committed Nov 28, 2022
1 parent 01dee1b commit 3cc65d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/build.md
Expand Up @@ -8,7 +8,7 @@ The production bundle assumes support for modern JavaScript. By default, Vite ta

- Chrome >=87
- Firefox >=78
- Safari >=13
- Safari >=14
- Edge >=88

You can specify custom targets via the [`build.target` config option](/config/build-options.md#build-target), where the lowest target is `es2015`.
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/constants.ts
Expand Up @@ -22,7 +22,7 @@ export const ESBUILD_MODULES_TARGET = [
'edge88',
'firefox78',
'chrome87',
'safari13' // transpile nullish coalescing
'safari14'
]

export const DEFAULT_EXTENSIONS = [
Expand Down

0 comments on commit 3cc65d7

Please sign in to comment.