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.
Shared base class for LibraryOnly and LibraryAndApplication. Both must provide an
exportedNamefield indicating what javascript global the libraries will be exported to. Both library modes will generate anentrypointsfile based on the Scala.js imports and use that as theentrypointfor the generatedwebpack.config.js. The webpack output will be a library, which will assign itself to a global variable when loaded.The
entrypointsfile also contains arequireimplementation, which can be exposed globally by including theloaderfile. 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.