Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download JavaScript dependencies at build time #6642

Open
ebruchez opened this issue Nov 21, 2024 · 2 comments
Open

Download JavaScript dependencies at build time #6642

ebruchez opened this issue Nov 21, 2024 · 2 comments

Comments

@ebruchez
Copy link
Collaborator

See also #3897, which discusses scalajs-bundler.

Based on this article, it seems that scalajs-bundler is no longer the way to go. However, it's not clear what the path forward is, as that article describes interop with vite.js, which we are not using right now.

At least the following modules are currently unmodified and could be included at build time:

@ebruchez
Copy link
Collaborator Author

Right now, we include JavaScript files directly in our build, and not as modules.

Top-level files, properties describing a JS baseline, and XBL components express dependencies on JavaScript files directly.

webjars could work, and still appears maintained, but it doesn't seems to be "the future". This would allow us to download JAR containing JavaScript files, and then, through some build magic, include the assets into our artifacts.

@ebruchez
Copy link
Collaborator Author

Baby step:

  • use npm to download JavaScript assets
  • then we somehow access/copy those assets from node_modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

1 participant