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

### Description Added `exportAllByFileName` configuration for `dirs`, which allows for importing all by file names instead of scanning the file contents when generating type declarations and automatically importing. The detailed...

### Clear and concise description of the problem Now, when I have the dirs configuration option, this plugin will automatically scan all exports in the files and generate type declarations...

enhancement

### Describe the bug Read it for more detail: https://github.com/element-plus/element-plus/issues/11726 ### Reproduction https://github.com/ishowman/vue3-ts-template-list/tree/element-plus ### System Info ```Shell Vue Version: 3.2.45 Element Plus Version: 2.2.32 Browser / OS: Chrome 102.0.5005.115 Build...

### Describe the bug 以 webpack 为例,当前 tsup 生成的 d.ts 文件: ```ts declare const _default: (options?: Options) => any; export { _default as default }; ``` 然后我在 webpack 配置相关的脚本中(plugin.js)开启 `checkJs`:...

### Describe the bug say I've a file `@/globals/index.mjs` whose content is: ```js export { Model } from "@/lib/model.mjs"; export * as utils from "@/lib/utils.mjs"; ``` `utils` can't be auto...

### Describe the bug [This](https://github.com/antfu/unplugin-auto-import/issues/133) problem still exist when I using Windi css, with auto import. ![image](https://user-images.githubusercontent.com/80349526/228181594-fc5f1214-b787-442e-b2d9-9a5006585a56.png) ### Reproduction Just create app, run, and do any ui changes, then save...

### Clear and concise description of the problem 在webstorm或vscode中的方法上方编写注释以后都可以在调用的地方来快速查看注释的内容,这是一个很好的功能,但是使用这个插件之后类型的提示依赖生成的.d.ts文件,这个文件没有携带任何与注释相关的内容,从而导致丢失了快速查看函数注释的功能。 ### Suggested solution 建议增加一个配置选项可以让所有生成的类型携带其上方的注释内容。 ### Alternative _No response_ ### Additional context _No response_ ### Validations - [X] Follow our [Code of...

enhancement

### Describe the bug 集成此插件,webstorm无法追溯定位引入的组件. ### Reproduction 无 ### System Info ```Shell mac ``` ### Used Package Manager npm ### Validations - [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md) - [X]...

### Describe the bug ![image](https://user-images.githubusercontent.com/950717/230291648-d155a65f-fe77-4b41-a899-129729ba562f.png) ![image](https://user-images.githubusercontent.com/950717/230291768-2f882597-6aee-4138-b3d5-da518d75b692.png) ### Reproduction bug ### System Info ```Shell /* empty css *//* empty css */import { Table, Form, FormItem, Input, DatePicker, Select, SelectOption, Textarea, UploadDragger,...

### Describe the bug ![image](https://user-images.githubusercontent.com/50100681/228274095-92389b1a-bfe9-487c-b10f-998476dc4afb.png) If you uncomment `console.log(oldFontSizeMap)` according to the comment, the following error will be reported ![image](https://user-images.githubusercontent.com/50100681/228274462-b5289082-64e7-4760-b439-a4f86aa74ff8.png) ### Reproduction https://stackblitz.com/edit/github-dp5zp2-j1e9uu?file=src/pages/index.astro ### System Info ```Shell x ``` ###...