fix(webapp): stop emitting source maps in the web build (#70)
The web build set `sourcemap: !isTauri` → true, so Vite emitted *.js.map files and `sourceMappingURL` comments into docs/app/, exposing the original TypeScript via DevTools on the deployed GitHub Pages site. No error-tracking service consumes the maps (PrivacyPolicy confirms no Sentry/Datadog), so disable them outright rather than using 'hidden' (which would still publish fetchable .map files). The Tauri build was already mapless; local `npm run dev` sourcemaps are unaffected. Verified: build emits 0 .map files and 0 sourceMappingURL refs; lint clean. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e1fd54dbd9
commit
68d97d48cb
1 file changed
+1
-1
@@ -13,7 +13,7 @@ export default defineConfig({
|
||||
build: {
|
||||
outDir: isTauri ? 'dist' : '../docs/app',
|
||||
emptyOutDir: true,
|
||||
sourcemap: !isTauri,
|
||||
sourcemap: false,
|
||||
target: isTauri ? 'es2022' : 'es2020',
|
||||
chunkSizeWarningLimit: 600,
|
||||
rollupOptions: {
|
||||
|
||||
Reference in new issue
Block a user