Skip to content

Commit

Permalink
chore: Disable source map generation for Scala.js projects
Browse files Browse the repository at this point in the history
  • Loading branch information
cheleb committed May 18, 2024
1 parent 3fd15dd commit 112f165
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 21,585 deletions.
18 changes: 12 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ lazy val core = scalajsProject("core", false)
// scalaJSUseMainModuleInitializer := true,
scalaJSLinkerConfig ~= {
_.withModuleKind(scalaJSModule)
.withSourceMap(true)
.withSourceMap(false)
.withModuleSplitStyle(ModuleSplitStyle.SmallestModules)
}
)
Expand All @@ -175,7 +175,7 @@ lazy val ui5 = scalajsProject("ui5", false)
// scalaJSUseMainModuleInitializer := true,
scalaJSLinkerConfig ~= {
_.withModuleKind(scalaJSModule)
.withSourceMap(true)
.withSourceMap(false)
.withModuleSplitStyle(ModuleSplitStyle.SmallestModules)
}
)
Expand All @@ -190,10 +190,16 @@ lazy val ui5 = scalajsProject("ui5", false)
lazy val example = scalajsProject("client", true)
.settings(
scalaJSUseMainModuleInitializer := true,
scalaJSLinkerConfig ~= {
_.withModuleKind(scalaJSModule)
.withSourceMap(true)
.withModuleSplitStyle(ModuleSplitStyle.SmallestModules)
scalaJSLinkerConfig ~= { config =>
dev match {
case "prod" =>
config.withModuleKind(scalaJSModule)
case _ =>
config
.withModuleKind(scalaJSModule)
.withSourceMap(false)
.withModuleSplitStyle(ModuleSplitStyle.SmallestModules)
}
}
)
.settings(scalacOptions ++= usedScalacOptions)
Expand Down
Loading

0 comments on commit 112f165

Please sign in to comment.