lishaobos
lishaobos
how about this we can chang this function ` // before export function urlToRequire( url: string, transformAssetUrlsOption: TransformAssetUrlsOptions = {}, ): string { const returnValue = "${url}" if ( isExternalUrl(url)...
> @abitwhy it will be auto generated only in the situaction when I run npm `dev` scripts? Step1: ```js // vite.config AutoImport({ // ... eslintrc: { enabled: true, } }),...
hi, you can config like this ```js AutoImport({ imports: [ 'react', { react: [ 'createContext', ], }, ] }) ```
need reproduction...
就是和 glob 规则一样,你最开始加个 ! , 例如:!src/xx.vue
这个 globs 里面可以写多个,你写了一个排除,可以再写几个命中,类似于下面 ``` globs: [ 'src/components/*.vue', '!src/components/ComponentA.vue', ], ```
its good with me, try reload your ide 
现在可以使用建议的插件:vite-plugin-vuetify
看看这个:https://github.com/antfu/unplugin-vue-components/issues/643#issuecomment-1588951920