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

### Clear and concise description of the problem If declare and export a class. ```typescript export default class Foo { } ``` While directly use it for construct a new...

enhancement

### Clear and concise description of the problem 我在项目中的 `config.ts` 里面定义了些复杂变量,使用 `unplugin-auto-import` 配置自动导入希望让其携带 `assert {type:'macro'},编译时可以让 `unplugin-macros` 将其处理成静态变量免去运行时开销。 示例代码(示例可能不准确,但大致如此): ```ts // config.ts function createOptions() { // ... } export const userOptions=...

enhancement

### Describe the bug I have this setup [repo](https://github.com/mblandr/test) When I starting VS Code after dependencies installed, it create directory with autoimported types right in the root of the project...

### Describe the bug I defined an custom directives - **vEllipsis** > composables/ellipsis ``` import type { ObjectDirective } from 'vue'; export const vEllipsis: ObjectDirective = { mounted(el: HTMLElement) {...

### Describe the bug False positive for toRefs when i don't do `import { toRefs } from 'vue';`. I have eslint error in HelloWorld.vue ### Reproduction https://github.com/galsim/false-positive-no-unused-properties ### System Info...

### Describe the bug viteConfig: `import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import Pages from 'vite-plugin-pages'; import AutoImport from "unplugin-auto-import/vite"; import Components from 'unplugin-vue-components/vite'; import NutUIResolver from...

### Describe the bug I have added local directories js like ``` dirs: [ "src/store/**", "src/core/**", "src/composables/**", ] ``` and it's generate auto import variable like **_get this result_** ```...

### Clear and concise description of the problem The issue #341 expect do not remove unused imports, however is it possible to remove the unused imports? If I modified the...

enhancement

### Describe the bug Not compatible with rollup v4. Please update. Thank you. ``` unplugin-auto-import 0.16.6 │ └─┬ @rollup/pluginutils 5.0.2 │ └── ✕ unmet peer rollup@^1.20.0||^2.0.0||^3.0.0: found 4.1.4 ``` ###...

### Describe the bug It seems to me that the plugin needs a script block without setup to be able to find vue components. Having script setup will result in...