/scalajs-wrongsourcemap

scalajs relativeSourceMaps bug reproduction

Primary LanguageHTML

Steps to reproduce

  1. run sbt clean fastOptJS first time
  2. check generated source map file ./target/scala-2.11/scalajs-wrongsourcemap-fastopt.js.map, there is such path to source file:
    "../src/main/scala/ru/lmars/bundler/Application.scala"
    
    this is wrong path!
  3. run sbt clean fastOptJS second time
  4. path to source file will be different:
    "../../src/main/scala/ru/lmars/bundler/Application.scala"
    
    and this is right path!
  5. delete directory ./target/scala-2.11
  6. run sbt clean fastOptJS
  7. source file path in .map file is broken again!