babel-plugin-import-fix
babel-plugin-import-fix copied to clipboard
用户配置不覆盖默认配置
{
"presets": [["env", { "modules": false }], "react"],
"plugins": [
"babel-plugin-transform-decorators-legacy",
"transform-object-rest-spread",
"transform-class-properties",
["import-fix", {
"libraryName": "antd",
"libraryPath": "antd/lib/${name}/index.js",
"namePolicy": "dash",
"cssPath": ""
}]
]
}
我将 cssPath
置空,但是还是会按照默认配置进行读取,我看之前有人提了 issue,但还是存在这个问题?