Fix esbuild charset and target for Netlify compatibility

Set esbuild charset to utf8 and target to es2022 to avoid
syntax errors from ASCII-escaped unicode in the bundled output
on Netlify's build environment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Neeldhara Misra 2026-04-17 03:34:37 +05:30
parent fd8bbe16e6
commit 11ab6c3b9f

View file

@ -24,5 +24,13 @@ export default defineConfig({
vite: {
plugins: [tailwindcss()],
build: {
target: "es2022",
minify: "esbuild",
},
esbuild: {
target: "es2022",
charset: "utf8",
},
},
});