Skip to main content

modular-import

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

Install#

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

Usage#

{
"plugins": [
[
"build-plugin-modular-import",
[
{
"libraryName": "lodash",
"libraryDirectory": "",
"camel2DashComponentName": false
},
{
"libraryName": "@material-ui/core",
"libraryDirectory": "components",
"camel2DashComponentName": false
}
]
]
]
}