Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Bundle all the things (elimination of require) #5173
Elimination of require() based resource loading. This pushes all application entrypoints from the core application (many legacy, which we'll continue to transition into the base application as they are rewritten) into a globally exposed (on old pages) bundleEntries object.
This dramatically speeds up time-to-rendered of most non-modern pages (especially once the extended bundle is cached, but in most cases even before that).
We still use local define/require for the client app, but I'll refactor that in a separate PR (this doesn't do any async individual file loading, which is what I'm primarily trying to eliminate here). I also need to go through external client plugins (