-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
32 lines (28 loc) · 1.11 KB
/
build.sbt
File metadata and controls
32 lines (28 loc) · 1.11 KB
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
30
31
32
import org.scalajs.linker.interface.ModuleInitializer
import org.scalajs.jsenv.selenium.SeleniumJSEnv
import org.scalajs.linker.interface.ModuleSplitStyle
import scala.collection.Seq
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "3.7.3"
lazy val root =
crossProject(JVMPlatform, JSPlatform)
.in(file("laminar-react"))
.settings(
name := "laminar-react",
)
.jsEnablePlugins(JSBundlerPlugin)
.jsSettings(
fastLinkJS / bundlerImplementation := sbtjsbundler.vite.ViteJSBundler(
sbtjsbundler.vite.ViteJSBundler.Config()
.addEnv("NODE_ENV" -> "development")
),
bundlerManagedSources ++= Seq(
file("laminar-react/js/jsbundler"),
),
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "2.8.1",
"com.raquo" %%% "laminar" % "17.2.0",
),
scalaJSModuleInitializers := Seq(ModuleInitializer.mainMethodWithArgs("App", "main")),
)
Global / onChangedBuildSource := ReloadOnSourceChanges