From f14e58d42c8843422c681e1b23eeb487fc620b06 Mon Sep 17 00:00:00 2001 From: Jacob Hagstedt Date: Sun, 7 Jun 2026 22:41:38 +0200 Subject: [PATCH] chore(vite): prioritise .tsx/.ts over .js in resolve.extensions Prevents stale compiled .js files from shadowing their .tsx sources when the AI agent builds or type-checks the frontend. Co-Authored-By: Claude Sonnet 4.6 --- frontend/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 62a7018..ae39db2 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -26,6 +26,7 @@ export default defineConfig({ __APP_GITSHA__: JSON.stringify(APP_GITSHA), }, resolve: { + extensions: ['.tsx', '.ts', '.jsx', '.mjs', '.js', '.json'], alias: { '@': path.resolve(__dirname, './src'), },