vanipack
vanipack copied to clipboard
Code split by router
Can you elaborated this issue? I'm interested in helping the project :)
@alexandref93
I want to implement code splitting in user space, that means we do not need to modify the webpack config for code splitting.
The one of the hardest things is how to detect which async chunk is used in initial rendering (on server side).
I found react-router-server done this well, but it's still a bit hacky (it uses func.toString()
to find the actual id of the async chunk).
I'm trying to find a better way to support it. If you have any idea, please leave a comment here.
Thanks.
Hmmm, take a look at the project Rapscallion about checksum, maybe that might help.
Thanks, I'll look into it later.
On Tue, Mar 7, 2017, 12:02 AM Carlos Alexandre Fuechter < [email protected]> wrote:
Hmmm, take a look at the project Rapscallion https://github.com/FormidableLabs/rapscallion about checksum, maybe that might help.
— You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/vanilla-ui/vanipack/issues/28#issuecomment-284440794, or mute the thread https://github.com/notifications/unsubscribe-auth/ABiTdvaedGmFGx6-ltImCtz6y5-b6s7dks5rjC4fgaJpZM4MUHxe .
https://github.com/thejameskyle/react-loadable Just a reminder.