New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fork-loadable-codemod

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fork-loadable-codemod

Various codemods related to @loadable/components for easier migration/upgrades.

  • 5.13.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

@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 '@7rulnik/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

Keywords

FAQs

Package last updated on 18 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc