Skip to content

FreemenL/babel-plugin-empty-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-empty-import

一个解决第三方依赖全量导入的babel插件

依赖 babel-core babel-types 两个库 做语法解析及转换

Install

npm install babel-plugin-empty-import -D

USE

libraryName 字段为要配置的三方库 如 lodash 等

{
  "presets": [],
  "plugins": [
    ["empty-import",{
      "libraryName": "",
    }],
  ]
}

About

babel-plugin-empty-import

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published