//taro config/index.config
const AutoImport = require('unplugin-auto-import/webpack')
const config = {
mini: {
webpackChain (chain) {
chain.plugin('AutoImport')
.use(AutoImport, {
imports: 'vue',
eslintrc: {
enabled: true,
filepath: './.eslintrc-auto-import.json',
globalsPropValue: 'readonly'
}
})
.init((Plugin, args) => { return Plugin(args) })
}
}
}