vanilla-ui / vanipack

Universal build system for isomorphic app.
https://npm.im/vanipack
MIT License
16 stars 0 forks source link

Code split by router #28

Open lixiaoyan opened 7 years ago

fuechter commented 7 years ago

Can you elaborated this issue? I'm interested in helping the project :)

lixiaoyan commented 7 years ago

@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.

fuechter commented 7 years ago

Hmmm, take a look at the project Rapscallion about checksum, maybe that might help.

lixiaoyan commented 7 years ago

Thanks, I'll look into it later.

On Tue, Mar 7, 2017, 12:02 AM Carlos Alexandre Fuechter < notifications@github.com> 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 .

lixiaoyan commented 7 years ago

https://github.com/thejameskyle/react-loadable Just a reminder.