6

I tried posting this question to Scala Users but no reply yet. How does one go about working with the new experimental Scala 3 with Scala.JS? I can’t find cogent instructions.

Shockingly there’s nothing I can find on this topic on the Internet.

For example I’ve read (and verified in the Scala 3 source code) that there’s no plugin as the integration is compiled into the dotc compiler. So what I am I suppose to do with the instructions on the Scala.js website that instruct me to add a plugin to the build files?

1 Answer 1

11

You follow exactly the same instructions as for Scala 2. The only thing you change is scalaVersion to some 3.x version.

There is no compiler plugin, but there is still an sbt plugin. So nothing changes.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you. And thank you for putting this answer when it can be found by those searching. Is the Sbtplugin for activating the Scala.JS linker?
The linker, yes, as well as running/testing with a JavaScript runtime instead of a JVM.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.