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

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

Latest version **0.63.1** (published 2026-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @startupjs/babel-plugin-import-to-react-lazy
pnpm add @startupjs/babel-plugin-import-to-react-lazy
yarn add @startupjs/babel-plugin-import-to-react-lazy
bun add @startupjs/babel-plugin-import-to-react-lazy
```

## Health

**Score 50/100 (C)** — status: active.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.63.1 |
| Published | 2026-06-24 |
| First published | 2020-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 109 |
| Author | Pavel Zhukov |
| Maintainers | cray0000, yska, zag2art, fctsvirus, maestro.sc, byshock, anagami, rabbit-abyss, tarlord, nariman322 |
| Keywords | babel, babel-plugin, react, lazy, import |

## Links

- npm: https://www.npmjs.com/package/@startupjs/babel-plugin-import-to-react-lazy
- Repository: https://github.com/startupjs/startupjs
- Homepage: https://github.com/startupjs/startupjs#readme
- Issues: https://github.com/startupjs/startupjs/issues
- npm.io page: https://npm.io/package/@startupjs/babel-plugin-import-to-react-lazy

## Dependencies (3)

- [@babel/types](https://npm.io/package/@babel/types.md) ^7.0.0
- [@babel/template](https://npm.io/package/@babel/template.md) ^7.4.0
- [@babel/helper-module-imports](https://npm.io/package/@babel/helper-module-imports.md) ^7.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.63.1 (latest) — 2026-06-24
- 0.64.0-alpha.0 (alpha) — 2026-06-24
- 0.60.0-canary.7 (canary) — 2025-11-12
- 0.56.0-alpha.0 (next) — 2024-01-15
- 0.63.0 — 2026-06-24
- 0.63.0-alpha.0 — 2026-05-04
- 0.62.0 — 2026-05-04
- 0.62.0-alpha.0 — 2026-03-25
- 0.61.0 — 2026-01-02
- 0.60.0-canary.0 — 2025-11-06
- 0.59.0-canary.0 — 2024-11-08
- 0.58.0-canary.0 — 2024-11-08
- 0.57.0-canary.75 — 2024-09-23
- 0.57.0-canary.0 — 2024-05-25
- 0.55.8 — 2023-12-16
- … 57 more at https://npm.io/package/@startupjs/babel-plugin-import-to-react-lazy/versions

## README

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

Transforms exported default import to React.lazy dynamic import.

## Example

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

↓ ↓ ↓ ↓ ↓ ↓

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

## License

MIT

---
_Source: https://npm.io/package/@startupjs/babel-plugin-import-to-react-lazy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
