Socket
Socket
Sign inDemoInstall

@startupjs/babel-plugin-import-to-react-lazy

Package Overview
Dependencies
33
Maintainers
6
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @startupjs/babel-plugin-import-to-react-lazy

Change regular imports to React.lazy() calls with dynamic imports


Version published
Weekly downloads
268
increased by98.52%
Maintainers
6
Created
Weekly downloads
 

Readme

Source

@startupjs/babel-plugin-import-to-react-lazy

Transforms exported default import to React.lazy dynamic import.

Example

/* @asyncImports */
export { default as PHome } from './PHome'

↓ ↓ ↓ ↓ ↓ ↓

import { lazy } from 'react'
export const PHome = lazy(() => import('./PHome'))

License

MIT

Keywords

FAQs

Last updated on 16 Dec 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc