lihaoyi / scala.rx

An experimental library for Functional Reactive Programming in Scala
984 stars 79 forks source link

Developer paths in Scala.js source maps #200

Open steinybot opened 3 years ago

steinybot commented 3 years ago

The Scala.js builds are including relative paths to sources on the developers machines.

For example: ../../../../../../../../../home/nick/Forks/scala.rx/scalarx/shared/src/main/scala/rx/Ctx.scala

I am trying to write a webpack loader which can fetch these sources but these paths obviously don't exist.

fdietze commented 3 years ago

Strange, the source maps should point at github: https://github.com/lihaoyi/scala.rx/blob/master/build.sbt#L78

fdietze commented 3 years ago

This is how cats is doing it:

https://github.com/typelevel/cats/blob/master/build.sbt#L210