-
-
Notifications
You must be signed in to change notification settings - Fork 221
Open
Description
Describe the bug
Hi, I just created a new Vite project and noticed that the imports option in unplugin-auto-import is typed as any.
This makes it hard to know what presets are actually supported 😅
import { defineConfig } from 'vite'
import autoImport from 'unplugin-auto-import/vite' // same behavior with /webpack
export default defineConfig({
plugins: [
autoImport({
imports: [],
// ^? = any
}),
],
})Would be nice if this had proper typings or showed the preset suggestions (like vue, @vueuse/core, etc).
Reproduction
https://stackblitz.com/edit/vitejs-vite-9wzbyhyl?file=vite.config.ts&view=editor
System Info
anyUsed Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Metadata
Metadata
Assignees
Labels
No labels