object BundlingMode

Source
BundlingMode.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BundlingMode
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Library extends BundlingMode

    Shared base class for LibraryOnly and LibraryAndApplication.

    Shared base class for LibraryOnly and LibraryAndApplication. Both must provide an exportedName field indicating what javascript global the libraries will be exported to. Both library modes will generate an entrypoints file based on the Scala.js imports and use that as the entrypoint for the generated webpack.config.js. The webpack output will be a library, which will assign itself to a global variable when loaded.

    The entrypoints file also contains a require implementation, which can be exposed globally by including the loader file. Refer to util.JSBundler.loaderScript for an example of such a script.

    To see the specific webpack configuration that will be generated, refer to Webpack.writeConfigFile.

  2. case class LibraryAndApplication(exportedName: String = defaultLibraryExportedName) extends Library with Product with Serializable

    Builds on LibraryOnly by generating the loader and concatenating it with the Scala.js output file.

    Builds on LibraryOnly by generating the loader and concatenating it with the Scala.js output file. This output is designed to be a drop-in replacement for fully processing the file via webpack (Application mode). When webpackEmitSourceMaps := true, this mode will attempt to merge all the files using the node.js 'concat-with-sourcemaps' module.

    Refer to Library for additional details.

  3. case class LibraryOnly(exportedName: String = defaultLibraryExportedName) extends Library with Product with Serializable

    Bundle only the libraries used by the application.

    Bundle only the libraries used by the application. This mode will generate an entrypoints file based on the Scala.js imports and use that as the entrypoint for the generated webpack.config.js. The webpack output will be a library, which will assign itself to a global variable when loaded.

    The library file produce in this mode must be combined with the loader and the Scala.js output in order to fully duplicate the usability of Application mode.

    Refer to Library for additional details.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val Default: BundlingMode

    The default BundlingMode used by the ScalaJSBundler

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. val defaultLibraryExportedName: String

    The default exported library name, used by LibraryOnly and LibraryAndApplication

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. object Application extends BundlingMode with Product with Serializable

    Bundle the entire application with webpack.

    Bundle the entire application with webpack. Using this mode, the webpack entry key will contain the Scala.js output file. All dependencies will be resolved via webpack, and the entire bundle will be processed by any plugins. The output will be a runnable bundle, not a library.

    To see the specific webpack configuration that will be generated, refer to Webpack.writeConfigFile.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped