If you're using Vite, update your vite.config.js:
export default defineConfig({ build: { sourcemap: false, // Disable source maps }, });