vanipack icon indicating copy to clipboard operation
vanipack copied to clipboard

Code split by router

Open lixiaoyan opened this issue 7 years ago • 5 comments

lixiaoyan avatar Mar 06 '17 13:03 lixiaoyan

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

fuechter avatar Mar 06 '17 13:03 fuechter

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

lixiaoyan avatar Mar 06 '17 14:03 lixiaoyan

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

fuechter avatar Mar 06 '17 16:03 fuechter

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 .

lixiaoyan avatar Mar 06 '17 17:03 lixiaoyan

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

lixiaoyan avatar Mar 28 '17 09:03 lixiaoyan