orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
518 stars 220 forks source link

Download JavaScript dependencies at build time #6642

Open ebruchez opened 1 day ago

ebruchez commented 1 day ago

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 commented 1 day ago

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 commented 4 hours ago

Baby step: