lc
loadable-codemod
npm i loadable-codemod
lc

loadable-codemod

The recommended Code Splitting library for React ✂️✨

by Greg Bergé

5.12.0 (see all)License:MITTypeScript:Not Found
npm i loadable-codemod
Readme

@loadable/codemod

This package is a collection of codemod that can be used to help making big changes easier to a project, for example: migrating from react-loadable to @loadable/component

Notes about react-loadable-to-loadable-component transform

react-loadable-to-loadable-component transform will help codemod all of your Loadable() declaration to loadable() with mostly equivalent params, barring some behavior that do not exist in @loadable/component such as Loadable.Map(), timeout, delay, etc.

After running the codemod, you will still need to update some of your code manually, namely:

  1. Using loadableReady to hydrate your app on the client side.
  2. Updating your webpack configuration to use @loadable
  3. Updating your server side rendering code to use ChunkExtractor

Downloads/wk

67

GitHub Stars

6.5K

LAST COMMIT

8mos ago

MAINTAINERS

1

CONTRIBUTORS

107

OPEN ISSUES

11

OPEN PRs

7
VersionTagPublished
5.12.0
latest
3yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate