This branch addresses 2 things: code splitting and caching bundles.
The Bundle component can be used to wrap any component or component tree and dynamically requires its dependacy at runtime. You can use either () => import() or require('bundle!./myDep.js') as the loadfunction. Once its completed Bundle will render the component tree with the dependency injected.
This branch also implements webpack's recommended caching for bundles. In dev hashes are updated every bundle. In production only the chunks that have changed will have their chunkhash updated which will cache bust the old bundle and keep the cache for unchanged modules
This branch addresses 2 things: code splitting and caching bundles.
The
Bundle
component can be used to wrap any component or component tree and dynamically requires its dependacy at runtime. You can use either() => import()
orrequire('bundle!./myDep.js')
as theload
function. Once its completedBundle
will render the component tree with the dependency injected.This branch also implements webpack's recommended caching for bundles. In dev hashes are updated every bundle. In production only the chunks that have changed will have their
chunkhash
updated which will cache bust the old bundle and keep the cache for unchanged modules