babel-plugin-syntax-dynamic-lazy-import

1.0.0 • Public • Published

babel-plugin-syntax-dynamic-lazy-import

Allow parsing of lazyImport()

Modules only on demand.

Installation

npm install babel-plugin-syntax-dynamic-lazy-import --save-dev

Usage

Via .babelrc or babel-loader.

{
  "plugins": ["syntax-lazy-import"]
}

Example

Converts

const component = lazyImport('./xx.js')

to

const component = () => import('./xx.js')

Readme

Keywords

Package Sidebar

Install

npm i babel-plugin-syntax-dynamic-lazy-import

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.95 kB

Total Files

3

Last publish

Collaborators

  • wotermelon