@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