v0.6.0
·
43 commits
to master
since this release
New features
- Update
lazyto load outside of phases, so that it behaves likeReact.lazy(#65). This change means that the next phase does not need to be manually started, for alazycomponent to load. - The original error from the
loaderis thrown instead of a customLoaderError, improving both the stack trace and messaging in the console and other reporters (#68) - Add
resolverOptionsconfiguration option to the babel plugin (#69) LazyComponent.preloadnow returns a cleanup function, that removes any inserted link tags (#70)- Add retry support for the
loader, and introduce a globalretryconfiguration option (#71)
Bug fixes
- Fix
initdefault value handling when called multiple times (#65) - Ensure
lazyAfterPaintcomponents do not render during the paint phase, when falling back to theloaderpreloading (#65) - Automatically resolve TypeScript files in the babel plugin, when it is referenced in a loader import without the
.tsor.tsxsuffix (#69) - Cleanup
lazyAfterPaintpreload links when the component unmounts (#70)