We are in the process of developing a game and have successfully implemented code-splitting to separate vendor libraries and the core engine into individual bundles, as well as splitting levels into separate bundles.
As we plan for future releases where the number of levels may change, we want to be able to add new levels without recompiling the core engine bundle. How can we best organize this to allow for flexible inclusion of new content?
One possible solution is to have the level select feature within the core load a JSON list of available levels and then asynchronously require each additional level as needed.
We are using Typescript for development.