Skip to content

JS sourceMappingURL is wrong #1235

New issue

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

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

Already on GitHub? Sign in to your account

Closed
armanbilge opened this issue Aug 4, 2022 · 0 comments · Fixed by #1286
Closed

JS sourceMappingURL is wrong #1235

armanbilge opened this issue Aug 4, 2022 · 0 comments · Fixed by #1286
Assignees
Labels
bug Something isn't working

Comments

@armanbilge
Copy link
Contributor

Version(s)
0.1.11

Describe the bug
The sourceMappingURL doesn't match the name of the sourcemap.

To Reproduce

//> using platform "js"
//> using jsEmitSourceMaps true

@main def whatever = ()
$ scala-cli --version
0.1.11
$ scala-cli package bug.scala 
Compiling project (Scala 3.1.3, Scala.js)
Compiled project (Scala 3.1.3, Scala.js)
Emitted js source maps to: /workspace/sandbox/whatever.js.map
Wrote /workspace/sandbox/whatever.js, run it with
  node ./whatever.js
gitpod /workspace/sandbox (main) $ ls
bug.scala  README.md  whatever.js  whatever.js.map
$ tail -n 1 whatever.js
//# sourceMappingURL=main.js.map

Expected behaviour
The sourceMappingURL should match the name of the sourcemap.

@Gedochao Gedochao added the bug Something isn't working label Aug 4, 2022
@lwronski lwronski linked a pull request Aug 25, 2022 that will close this issue
@lwronski lwronski self-assigned this Aug 25, 2022
@tgodzik tgodzik moved this to Done in Scala CLI Board Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants