Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Source-maps #453

Open
borkdude opened this issue Jan 16, 2024 · 0 comments
Open

Source-maps #453

borkdude opened this issue Jan 16, 2024 · 0 comments

Comments

@borkdude
Copy link
Member

borkdude commented Jan 16, 2024

WIP in source-maps @ c1c7e4c

$ ./node_cli.js --show -e '(defn foo [] (throw (js/Error. "dude"))) (defn bar [] (foo)) (bar)'
import * as squint_core from 'squint-cljs/core.js';
var foo = function () {
throw new Error("dude")
};
var bar = function () {
return foo()
};
bar();

export { foo, bar }


//# sourceMappingURL=squint.mjs.map
/Users/borkdude/dev/squint/.tmpHYIPMl/squint.cljs:1
(defn foo [] (throw (js/Error. "dude"))) (defn bar [] (foo)) (bar)
                    ^


Error: dude
    at foo (/Users/borkdude/dev/squint/.tmpHYIPMl/squint.cljs:1:21)
    at bar (/Users/borkdude/dev/squint/.tmpHYIPMl/squint.cljs:1:62)
    at <anonymous> (/Users/borkdude/dev/squint/.tmpHYIPMl/squint.cljs:1:62)
    at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:308:24)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant