Official codemod collection for migrating to @loadable/components and upgrading between versions. Current stable version is 5.12.0, developed by the maintainers of @loadable/component. Provides automated transforms (e.g. react-loadable-to-loadable-component) to convert Loadable() calls to the new API, but manual steps remain (loadableReady, ChunkExtractor). Key differentiator: trusted path for migration from react-loadable and previous loadable versions with minimal human error.
npm install loadable-codemodNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to run the primary codemod to migrate from react-loadable to @loadable/component and required manual steps.
Manually rewrite Loadable.Map() calls; remove timeout/delay props and use @loadable/component's options.
Follow the @loadable/component docs for webpack and SSR setup.
Manually import loadableReady and call it to hydrate your app on the client side.
Ensure your project has @loadable/codemod installed: npm install @loadable/codemod --save-dev or run npx with --package @loadable/codemod.
Install @loadable/component: npm install @loadable/component