Skip to content

Howie126313/babel-mportant-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-import-plugin

Babel按需引入插件

Install

Using npm:

npm install babel-import-plugin --save-dev

Usage

libraryName 需要按需引入的包的名称

alias 按需引入后包的地址目录

e.g: 下面是C端神策插件的引入

babel: {
  ...
  plugins: [
    [
      landzImportBabelPlugin,
      {
        libraryName: 'landz-sensors-fullstack',
        alias: 'landz-sensors-fullstack/dist'
      }
    ],
    ...
  ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published