Unless i'm mistaken, that would keep the same problem, but move it elsewhere. <script> tag would load a module to the global namespace (window), require with module federation would move it to a require, but require('bootstrap') would still load the same global version. which means if someone upgrades "bootstrap" from 4 to 5, everything would break. The same issue with prototype again (except prototype was so much worse, polluting so much of the global namespace).
Even with the bootstrap4-api thing, you'll have bootstrap4-api and bootstrap5-api, which would lead to two copies being loaded, and could really have weird behavior. I strongly feel the solution is to have more jelly or web components, that do the standard ui behavior with encapsulation and contracts, and those that want to be able to do custom logic, should include their own dependencies via a bundler. On Wed, May 24, 2023 at 10:11 PM Basil Crow <m...@basilcrow.com> wrote: > It occurs to me that the new Webpack 5 module federation feature could > be used to implement dynamic linking with Webpack builds: > > https://webpack.js.org/concepts/module-federation/ > > Implementing the tooling for this in the Jenkins ecosystem would > likely be an ambitious project of similar scope to the one started > (but never completed) by Tom Fennelly several years back. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-dev+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CAFwNDjqpAasSLZymsn3uKAjaekUWvJzx_O5GsLLy1y123o--Mg%40mail.gmail.com > . > > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuvptJn%3DgdAQhWiiNnodUVuPTzhzXL_-stHp3rGhoM%2BDJA%40mail.gmail.com.