scalajsbundler

ReloadWorkflow

object ReloadWorkflow

Faster workflow when a developer changes the source code and then reloads the application.

It pre-bundles the dependencies once and then recompiles just the part of the application that changed.

For this to work, the pre-bundled dependencies are exposed to the global namespace and a fake require implementation is also provided so that the output of Scala.js, which is supposed to be executed by a CommonJS compatible environment, can be executed by a web browser.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReloadWorkflow
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bundleDependencies(imports: Seq[String], workingDir: File, entryPoint: File, bundleFile: File, customWebpackConfigFile: Option[File], webpackResources: Seq[File], logger: Logger): Unit

    imports

    Imported module names

    workingDir

    Directory where node_modules are present

    entryPoint

    File to write the bundle entry point to

    bundleFile

    File to write the bundle to

    logger

    Logger

    returns

    The imported dependencies of the Scala.js project, bundled into a single file, and exported to the global namespace

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def findImportedModules(linker: ClearableLinker, irFiles: Seq[VirtualScalaJSIRFile], outputMode: OutputMode, emitSourceMaps: Boolean, logger: Logger): List[String]

    linker

    Scala.js linker

    irFiles

    Scala.js IR files

    outputMode

    Scala.js output mode

    emitSourceMaps

    Whether emitSourceMaps is enabled

    logger

    Logger

    returns

    The list of ES modules imported by a Scala.js project

  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. val modulePrefix: String

  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def writeFakeBundle(emitSourceMaps: Boolean, bundledDependencies: File, loader: File, launcher: File, sjsOutput: File, workingDir: File, targetDir: File, logger: Logger): File

    emitSourceMaps

    Whether to emit source maps at all

    bundledDependencies

    Pre-bundled dependencies

    loader

    require implementation

    launcher

    Entry point launcher

    sjsOutput

    Output of Scala.js

    workingDir

    Nodejs working directory

    targetDir

    Target directory (where to write the bundle)

    returns

    A file that contains the concatenation of the dependencies bundle and the output of the Scala.js compilation

  26. def writeLauncher(mainClass: String, launcher: File, logger: Logger): Unit

    mainClass

    Application entry point

    launcher

    File to write the launcher to

    logger

    Logger

    returns

    The written launcher file (calling the application entry point)

  27. def writeLoader(loader: File, logger: Logger): Unit

    loader

    File to write the loader to

    logger

    Logger

    returns

    The written loader file (faking a require implementation)

Inherited from AnyRef

Inherited from Any

Ungrouped