Hi,
I compile nim source to javascript with sourceMap options:
nim js --sourceMap --out:scripts/terminal.js ../../src/apps/terminal.nim
I get in browser in console this error:
DevTools failed to load SourceMap: Could not load content for http://localhost:8887/mnt/data/dev/terminal/scripts/terminal.js.map
Problem is with absolute path. Compiled file scripts/terminal.js contains on last line this path:
//# sourceMappingURL=/mnt/data/dev/terminal/scripts/terminal.js.map
I can edit it.
Why I change (set) path to sourceMap in compile time?
thanks