Webpack4 deviates from Webpack3 quite a bit, in terms of code splitting and dynamic imports and in order to support it we had to introduce some new ideas:
removal and injection of script tags into the HTML page
hacking CSP (PITA); and maybe can be improved
a dynamic interceptor for dynamic module imports
keeping a list of assestsByChunkName to resolve dynamic imports
moved the functionality of opening a browser to the RPCServer (this was an older update, but makes more sense to control everything in ProxyPack through it's RPCServer)
This PR brings Webpack4 support to ProxyPack.
Webpack4 deviates from Webpack3 quite a bit, in terms of code splitting and dynamic imports and in order to support it we had to introduce some new ideas: