I think Alex meant that the official tooling for most libraries does not yet make splitting automated. It's difficult but worthwhile.
-
-
Replying to @_developit @slightlylate
True, but man it's still pretty turn key https://github.com/thejameskyle/react-loadable …
1 reply 0 retweets 5 likes -
The last time I did a React developer survey, <10% of ~500 respondents identified they were code-splitting. Strong defaults could help here.
4 replies 3 retweets 23 likes -
seems like a really easy win :D
2 replies 0 retweets 6 likes -
Replying to @_developit @addyosmani and
What kind of defaults are you suggesting? CRA doesn’t dictate how you do routing and doesn’t generate a “real”-ish project. Should we?
4 replies 0 retweets 12 likes -
Replying to @dan_abramov @_developit and
Consider that even the generated tiny project with *one* component is complex for beginners. Are you suggesting we generate multi page site?
1 reply 0 retweets 5 likes -
Replying to @dan_abramov @_developit and
If CRA is primarily for beginner prototyping, I buy KISS is important. If it's aimed for creating real apps, I think multi-view makes sense.
3 replies 0 retweets 12 likes -
Replying to @addyosmani @_developit and
It’s meant to give you something you can work with immediately, and doesn’t try to guess your use case.
2 replies 0 retweets 4 likes -
Replying to @dan_abramov @addyosmani and
My thinking is that if you want something specific (e.g. Redux app or an app with routing) you can clone a community-maintained example.
1 reply 0 retweets 5 likes -
Replying to @dan_abramov @addyosmani and
Perhaps if we featured such examples prominently (or offered to use them as templates) then this would help solve the problem.
4 replies 0 retweets 7 likes
Starting out as a security engineer taught me one lasting, overriding lesson: defaults matter.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Replying to @slightlylate @dan_abramov and
How good a solution is just manually splitting using webpack's import()?
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.