scala-js / vite-plugin-scalajs

Vite plugin for integration of Scala.js
Apache License 2.0
51 stars 8 forks source link

SBT_OPTS which alters sbt output will break the plugin #19

Open kalejami opened 9 months ago

kalejami commented 9 months ago

... because the plugins reads the last(?) line from sbt output as path where to find the main.js file.

Here is one example with sbt.task.timings

https://github.com/kalejami/vite-sandbox

The plugin thinks that the output from timings is the path to the main.js file.

Not sure how to fix this.

cornerman commented 7 months ago

The same is happening when running sbt in native-client mode by default. Then the additional sbt options will have no effect (as the server already started). In this case, it will fail finding the file path, because there are colors in the output.