All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mill.scalajslib.worker.ScalaJSModuleSplitStyle.scala Maven / Gradle / Ivy

There is a newer version: 0.12.0-RC2-17-07e173
Show newest version
package mill.scalajslib.worker

// Separating ModuleSplitStyle in a standalone object avoids
// early classloading which fails in Scala.js versions where
// the classes don't exist
object ScalaJSModuleSplitStyle {
  import org.scalajs.linker.interface.ModuleSplitStyle
  object SmallModulesFor {
    def apply(packages: List[String]): ModuleSplitStyle =
      ModuleSplitStyle.SmallModulesFor(packages)
  }
  object FewestModules {
    def apply(): ModuleSplitStyle = ModuleSplitStyle.FewestModules
  }
  object SmallestModules {
    def apply(): ModuleSplitStyle = ModuleSplitStyle.SmallestModules
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy