-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
29 lines (26 loc) · 1.1 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import org.scalajs.linker.interface.ModuleSplitStyle
import org.scalajs.jsenv.nodejs.NodeJSEnv
lazy val cosmo = project
.in(file("packages/cosmo"))
.enablePlugins(ScalaJSPlugin) // Enable the Scala.js plugin in this project
.settings(
name := "cosmo",
scalaVersion := "3.3.3",
// Tell Scala.js that this is an application with a main method
scalaJSUseMainModuleInitializer := true,
scalaJSLinkerConfig ~= {
_.withModuleKind(ModuleKind.ESModule)
.withModuleSplitStyle(ModuleSplitStyle.SmallModulesFor(List("cosmo")))
},
jsEnv := new NodeJSEnv(
NodeJSEnv.Config().withArgs(List("--enable-source-maps")),
),
/* Depend on the scalajs-dom library.
* It provides static types for the browser DOM APIs.
*/
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.8.0",
libraryDependencies += "com.lihaoyi" %%% "fastparse" % "3.1.1",
libraryDependencies += "com.lihaoyi" %%% "sourcecode" % "0.4.2",
libraryDependencies += "org.scalameta" %%% "munit" % "1.0.0" % Test,
libraryDependencies += "com.lihaoyi" %%% "pprint" % "0.9.0",
)