From dac0692631f85600b793270993525e9079036064 Mon Sep 17 00:00:00 2001 From: Rafid Muhymin Wafi Date: Sat, 29 Jan 2022 06:56:47 +0600 Subject: [PATCH] Changed vite.build target to esnext (#2487) --- packages/astro/src/core/build/static-build.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index a8cd9a785..78deded54 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -164,7 +164,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp format: 'esm', }, }, - target: 'es2020', // must match an esbuild target + target: 'esnext', // must match an esbuild target }, plugins: [ vitePluginNewBuild(input, internals, 'mjs'), @@ -204,7 +204,7 @@ async function clientBuild(opts: StaticBuildOptions, internals: BuildInternals, }, preserveEntrySignatures: 'exports-only', }, - target: 'es2020', // must match an esbuild target + target: 'esnext', // must match an esbuild target }, plugins: [ vitePluginNewBuild(input, internals, 'js'),