Skip to content

Commit

Permalink
Add missing native options for scala-js-cli (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwronski authored Apr 12, 2022
1 parent 8f814c3 commit cfb31bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class ScalaJsCliNativeImage(val scalaJsVersion0: String) extends ScalaModule wit
def nativeImageOptions = T{
super.nativeImageOptions() ++ Seq(
"--no-fallback",
"-H:IncludeResources=org/scalajs/linker/backend/emitter/.*.sjsir"
"-H:IncludeResources=org/scalajs/linker/backend/emitter/.*.sjsir",
"-H:IncludeResources=com/google/javascript/jscomp/js/polyfills.txt",
"-H:IncludeResourceBundles=com.google.javascript.jscomp.parsing.ParserConfig",
)
}
def nativeImagePersist = System.getenv("CI") != null
Expand Down

0 comments on commit cfb31bb

Please sign in to comment.