Skip to content

Commit

Permalink
Additional test: Add Module Splitting support in the sbt-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gzm0 committed Oct 1, 2020
1 parent d291eab commit e5952ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sbt-plugin/src/sbt-test/settings/legacy-link-tasks/build.sbt
@@ -1,3 +1,5 @@
val checkNoClosure = taskKey[Unit]("Check that fullOptJS wasn't run with closure")

version := scalaJSVersion
scalaVersion := "2.12.12"

Expand All @@ -10,3 +12,11 @@ scalaJSUseMainModuleInitializer := true

(artifactPath in fullOptJS in Compile) :=
baseDirectory.value / "my-full.js"

(scalaJSLinkerConfig in fullOptJS in Compile) ~= (_.withClosureCompiler(false))

checkNoClosure := {
val file = (artifactPath in fullOptJS in Compile).value
// Check stuff wasn't renamed.
assert(IO.read(file).contains("org_scalajs_sbtplugin_test"))
}
1 change: 1 addition & 0 deletions sbt-plugin/src/sbt-test/settings/legacy-link-tasks/test
Expand Up @@ -2,3 +2,4 @@
$ exists my-fast.js
> fullOptJS
$ exists my-full.js
> checkNoClosure

0 comments on commit e5952ef

Please sign in to comment.