Skip to content

Commit d90a32a

Browse files
committed
Use external source map in dev mode to avoid dirtying dist js
1 parent 0006ff6 commit d90a32a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ live_admin-*.tar
3737
.DS_Store
3838

3939
archives/
40+
41+
# Source maps (generated in dev watch mode)
42+
dist/js/*.map

assets/esbuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let opts = {
2323
}
2424
if (mode === 'watch') {
2525
opts = {
26-
sourcemap: 'inline',
26+
sourcemap: 'external',
2727
...opts
2828
}
2929
}

0 commit comments

Comments
 (0)