unplugin-auto-import icon indicating copy to clipboard operation
unplugin-auto-import copied to clipboard

Auto import APIs on-demand for Vite, Webpack and Rollup

Results 111 unplugin-auto-import issues
Sort by recently updated
recently updated
newest added

I have been breaking my head the past 2 hours on a problem which I cannot wrap my head round. When I use `unplugin-auto-import` with Quasar (webpack) the css that...

### Description add `resolveDirective` api. Do you need 'with*' apis ? e.g. `withDirectives` ,`withModifiers` [https://vuejs.org/api/render-function.html#withdirectives](https://vuejs.org/api/render-function.html#withdirectives)

### Clear and concise description of the problem Namespace all imports from a directory. Instead of using `foo()`, use `api.foo()` to import functions. Why - - Avoid name collisions -...

enhancement

It would be great if we can scan our project's specific directories to automatically import React Components as well, not only APIs and Hooks. I had added some directories where...

### Clear and concise description of the problem 如果我使用了`vue-router`,也就是有异步组件,只有访问的时候,vite才会更新依赖,这时候才会更新d.ts文件。也就是说,我一开始运行vite项目时,d.ts文件中,只有异步组件用到的依赖会被去除,只有当我一个一个去访问相关页面的时候,才会更新d.ts文件。这也导致了多人合作时的问题,如果大家专注于不同的模块,自己生成的d.ts文件其实并不能概括整个项目,会导致许多冲突 If I use `vue-router`, which means that there are asynchronous components, vite will update the dependencies only when they are accessed,...

enhancement

### Describe the bug I have the following code: export const isMobile = useMediaQuery("(max-width: 770px)"); When using this in vue template, VScode shows an error like so: I have also...

### Describe the bug > [Vue warn]: Failed to resolve directive: on-click-outside These are my config: ```ts // vite.config.ts AutoImport({ imports: [ // presets "vue", "vue-router", { "@vueuse/core": [ "useMouse",...

### Describe the bug Hi, Thanks for creating this amazing unplugin. This is very helpful. We have created a small utility function `dynamicImgImport` which let us import the images without...

### Description add astro support ### Linked Issues #255

### Clear and concise description of the problem Would like to see a preset for [Astro](https://astro.build/) auto-importing. ### Suggested solution Create a preset for [Astro](https://docs.astro.build/en/reference/api-reference/#built-in-components), and possibly auto-imports for components...

enhancement