@startupjs/babel-plugin-import-to-react-lazy
Change regular imports to React.lazy() calls with dynamic imports
Last updated a day ago by yska .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @startupjs/babel-plugin-import-to-react-lazy 
SYNC missed versions from official npm registry.

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

Transforms exported default import to React.lazy dynamic import.

Example

export { default as PHome } from './PHome'

↓ ↓ ↓ ↓ ↓ ↓

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

Licence

MIT

Current Tags

  • 0.23.45                                ...           latest (a day ago)
  • 0.22.0-alpha.33                                ...           next (4 months ago)

5 Versions

  • 0.23.45                                ...           a day ago
  • 0.23.44                                ...           a day ago
  • 0.23.0                                ...           3 months ago
  • 0.22.0                                ...           3 months ago
  • 0.22.0-alpha.33                                ...           4 months ago
Downloads
Today 0
This Week 24
This Month 0
Last Day 24
Last Week 0
Last Month 24
Dependencies (3)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |