From 4f1c3b6c89081fc5b658100243e19edceb933e75 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Tue, 12 Jul 2022 21:01:29 -0700 Subject: [PATCH] Update default target from `safari13` to `safari14`. From https://github.com/vitejs/vite/issues/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! --- packages/vite/src/node/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/constants.ts b/packages/vite/src/node/constants.ts index 5a108652ef7ce6..ba7994a712528c 100644 --- a/packages/vite/src/node/constants.ts +++ b/packages/vite/src/node/constants.ts @@ -18,7 +18,7 @@ export const ESBUILD_MODULES_TARGET = [ 'edge88', 'firefox78', 'chrome87', - 'safari13' // transpile nullish coalescing + 'safari14' ] export const DEFAULT_EXTENSIONS = [