Imported module names
Directory where node_modules are present
File to write the bundle entry point to
File to write the bundle to
Logger
The imported dependencies of the Scala.js project, bundled into a single file, and exported to the global namespace
Scala.js linker
Scala.js IR files
Scala.js output mode
Whether emitSourceMaps is enabled
Logger
The list of ES modules imported by a Scala.js project
Whether to emit source maps at all
Pre-bundled dependencies
require implementation
Entry point launcher
Output of Scala.js
Nodejs working directory
Target directory (where to write the bundle)
A file that contains the concatenation of the dependencies bundle and the output of the Scala.js compilation
Application entry point
File to write the launcher to
Logger
The written launcher file (calling the application entry point)
File to write the loader to
Logger
The written loader file (faking a require implementation)
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
requireimplementation 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.