From 11ab6c3b9f68b4da6b382d1324c873a1e91f78da Mon Sep 17 00:00:00 2001 From: Neeldhara Misra Date: Fri, 17 Apr 2026 03:34:37 +0530 Subject: [PATCH] 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) --- astro.config.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index d65352a..2778bf7 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -24,5 +24,13 @@ export default defineConfig({ vite: { plugins: [tailwindcss()], + build: { + target: "es2022", + minify: "esbuild", + }, + esbuild: { + target: "es2022", + charset: "utf8", + }, }, });