You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run in some problems with webpackBundlingMode := BundlingMode.LibraryOnly().
If I observed it the right way an entrypoint.txt file is generated in the target folder from which the entrypoints.js file is generated. Every used @JSImport in the sources of the project will be used to generate these files.
Now to my problem. If I use different or no JsImports in the tests of the project my entrypoints.txt file will be empty. And if I start the server with this empty file the client-fastopt-library.js will have no module.exports from the endpoint.js file and the web page can't be rendered because of the missing dependecies.
I created a sample project to reproduce the problem:
In sbt shell following steps will cause this problem:
serverJVM/reStart <-- server is running and all jsDependencies are ok, web page is rendered. everything is fine.
clientJS/test <-- will overwrite the entrypoints.txt and js so no module.exports from endpoint.js in client-fastopt-library.js anymore
serverJVM/reStart <- won't touch entrypoints so the jsDependencies in library.js are missing and the web page won't load anymore
The text was updated successfully, but these errors were encountered:
kalejami
changed the title
Problem with LibraryMode + entrypoints.txt File
Problem with webpackBundlingMode := BundlingMode.LibraryOnly() and the generated entrypoints.txt file
May 19, 2020
First of all. Thanks for the great project :)
I run in some problems with webpackBundlingMode := BundlingMode.LibraryOnly().
If I observed it the right way an entrypoint.txt file is generated in the target folder from which the entrypoints.js file is generated. Every used
@JSImport
in the sources of the project will be used to generate these files.Now to my problem. If I use different or no JsImports in the tests of the project my entrypoints.txt file will be empty. And if I start the server with this empty file the client-fastopt-library.js will have no module.exports from the endpoint.js file and the web page can't be rendered because of the missing dependecies.
I created a sample project to reproduce the problem:
https://github.com/kalejami/scalajs-bundler-test
In sbt shell following steps will cause this problem:
The text was updated successfully, but these errors were encountered: