object BundlingMode
- Source
- BundlingMode.scala
- Alphabetic
- By Inheritance
- BundlingMode
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
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 anentrypoints
file based on the Scala.js imports and use that as theentrypoint
for the generatedwebpack.config.js
. The webpack output will be a library, which will assign itself to a global variable when loaded.The
entrypoints
file also contains arequire
implementation, which can be exposed globally by including theloader
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.
-
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). WhenwebpackEmitSourceMaps := true
, this mode will attempt to merge all the files using the node.js 'concat-with-sourcemaps' module.Refer to Library for additional details.
-
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 generatedwebpack.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 theloader
and the Scala.js output in order to fully duplicate the usability of Application mode.Refer to Library for additional details.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
Default: BundlingMode
The default BundlingMode used by the ScalaJSBundler
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
val
defaultLibraryExportedName: String
The default exported library name, used by LibraryOnly and LibraryAndApplication
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated