Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Improve inline source mapping and error reporting #349

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
4 changes: 3 additions & 1 deletion build.boot
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@
(cljs :compiler-options {:optimizations :simple
:main 'lumo.core
:cache-analysis true
:source-map false
:source-map true
:source-map-timestamp false
:aot-cache true
:dump-core false
:static-fns true
:optimize-constants false
Expand Down
4 changes: 3 additions & 1 deletion scripts/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ function deflate(fname) {
const outputPath = `build/${/^Windows/.test(os.type()) ? 'lumo.exe' : 'lumo'}`;
const resources = getDirContents('target').filter(
fname =>
fname.endsWith('.aot.js.map') ||
/target[\\\/]cljs[\\\/].*(\$macros)?\.js\.map/.test(fname) ||
/target[\\\/]lumo[\\\/]repl(\$macros)?\.js\.map/.test(fname) ||
/target[\\\/]main\.js\.map/.test(fname) ||
(!fname.endsWith('main.js') &&
!fname.endsWith('bundle.js') &&
!fname.endsWith('bundle.min.js') &&
Expand Down
Loading