fix(electron): suppress DevTools source map error for Capacitor SQLite plugin

Remove sourceMappingURL comment from plugin.js in @capacitor-community/sqlite to
prevent Electron DevTools from attempting to load the source map via the custom
capacitor-electron:// protocol. This eliminates harmless but noisy 404 warnings
in development. No impact on runtime or debugging.

- Remove //# sourceMappingURL=plugin.js.map from plugin.js
- Confirmed plugin.js.map exists for manual inspection if needed
- No changes to app logic or build process
This commit is contained in:
Matthew Raymer
2025-07-11 06:45:35 +00:00
parent 5f790dd90b
commit 6e00aac0b9
3 changed files with 24 additions and 6 deletions

View File

@@ -161,11 +161,7 @@ build_web_assets() {
local mode=$1
log_info "Building web assets for Electron (mode: $mode)"
if [[ "$mode" == "development" ]]; then
safe_execute "Building web assets" "VITE_GIT_HASH=\$(git log -1 --pretty=format:%h) vite build --config vite.config.electron.mts"
else
safe_execute "Building web assets" "VITE_GIT_HASH=\$(git log -1 --pretty=format:%h) vite build --mode $mode --config vite.config.electron.mts"
fi
safe_execute "Building web assets" "VITE_GIT_HASH=\$(git log -1 --pretty=format:%h) vite build --mode $mode --config vite.config.electron.mts"
}
# Sync with Capacitor