Skip to content

wotermelon/babel-plugin-syntax-dynamic-lazy-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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-dynamic-lazy-import"]
}

Example

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

About

Modules is loaded as needed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published