Skip to main content

modular-import(不推荐)

不推荐使用,直接使用 Webpack/Vite 提供的 tree-shaking 能力即可

用于快捷增加 babel-plugin-import 的配置。

Install

$ npm i --save-dev build-plugin-modular-import

Usage

{
"plugins": [
[
"build-plugin-modular-import",
[
{
"libraryName": "lodash",
"libraryDirectory": "",
"camel2DashComponentName": false
}
]
]
]
}