mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
chore(cli): add config of babel-plugin-import
This commit is contained in:
@@ -33,6 +33,15 @@ module.exports = function(api: any) {
|
||||
useESModules
|
||||
}
|
||||
],
|
||||
[
|
||||
'import',
|
||||
{
|
||||
libraryName: 'vant',
|
||||
libraryDirectory: 'es',
|
||||
style: true
|
||||
},
|
||||
'vant'
|
||||
],
|
||||
'@babel/plugin-transform-object-assign',
|
||||
'@babel/plugin-proposal-optional-chaining'
|
||||
]
|
||||
|
Reference in New Issue
Block a user