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

Context: - https://github.com/antfu/unplugin-auto-import/pull/60#issuecomment-939341877 - https://github.com/antfu/vue-global-api/issues/10 For example, it would be great to have common types like `Ref`, `ComputedRef` globally available when using the Vue preset. I would expect the API...

enhancement
help wanted
pr welcome

In my project, eol is set as 'crlf' in rule of prettier. However, each time I launch vite, eol in `auto-import.d.ts` is replaced with 'lf'. Is there a recommended way...

The type declaration is generated in `auto-imports.d.ts` only when it needs to be loaded into a lazy-loaded routing page. The `auto-imports.d.ts` file is reset every time the project is built;...

if you have Vue SFC, and use options Api, and somewhere in section use identifier that should be auto-imported, source maps will break. Repro: https://stackblitz.com/edit/vite-zrayd3?file=src/App.vue Click the button and look...

Could you please add `createContext` to [react.ts](https://github.com/antfu/unplugin-auto-import/blob/main/src/presets/react.ts) and [preact.ts](https://github.com/antfu/unplugin-auto-import/blob/main/src/presets/preact.ts). it does not get exported.

# How to repeoduce - clone https://github.com/xiangqunXiao/elem-ts/tree/test - follow steps: https://github.com/xiangqunXiao/elem-ts/blob/test/README.md#bug-repoduce # Enviroment OS: Win10 WSL2 Ubuntu Editor: VSCode Node: v16.13.2 Pnpm: 6.11.0

wepack + ts + react cannot auto generate d.ts and auto-import.js with `webpack-dev-server` or `webpack`

yarn && yarn dev expect generate auto-import.d.ts in root path here is my [minimal reproduction](https://github.com/moliyu/nextjs-unplugin-auto-import.git)

Hey, So far the plugin works great for importing vue, vue-router. So as I am working with vue3, let's assume an example where I have two composition functions in my...

enhancement
pr welcome