support for code splitting
fanky5g opened this issue · 2 comments
fanky5g commented
Been trying too hard to achieve code splitting but can't get my way around the window undefined error when rendering on the server.
Is there any way to achieve code splitting using webpack's require.ensure.
or probably another method to circumvent that error.
olebedev commented
Obviously, server cannot handle source script loading via script html tag. Use different bundles for client and server.
fanky5g commented
I'll try to hack that, however if you could show an example to point me in the right direction I'd be grateful.