From 7c3372c062e8b6d8c13d9694e43cb9c6a072a7b5 Mon Sep 17 00:00:00 2001 From: le-czs Date: Thu, 13 Aug 2026 20:21:54 +0800 Subject: [PATCH] fix(explorer): align dev esbuild target (#966) Co-authored-by: le-czs <243511553+le-czs@users.noreply.github.com> Co-authored-by: Mohd Kaif <98801504+KaifAhmad1@users.noreply.github.com> --- explorer/vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/explorer/vite.config.ts b/explorer/vite.config.ts index bdc253f0..e36eec50 100644 --- a/explorer/vite.config.ts +++ b/explorer/vite.config.ts @@ -57,6 +57,13 @@ export default defineConfig({ }, }, }, + optimizeDeps: { + // Keep dependency pre-bundling aligned with the production build target. + // esbuild >=0.28 no longer lowers destructuring for Vite's default target. + esbuildOptions: { + target: 'esnext', + }, + }, server: { proxy: { '/api': {