From 933562e4edf454745f6b31cd79f6c86f11ac9208 Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Sat, 1 Feb 2025 18:36:35 +1100 Subject: [PATCH] Set Vite's esbuild target to match build target This is required for testing. By default esbuild target is esnext, which is not supported on old Cast clients that can be used for testing. --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 62c080e3..a6d0cb4a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,6 +11,9 @@ export default defineConfig({ target: 'es2015', assetsInlineLimit: 0 }, + esbuild: { + target: 'es2015' + }, server: { port: 9000 }