unplugin / unplugin/unplugin-auto-import
Infinite reload with Vite 8 + Vite Plus
Open
Nobody has claimed this yet.
need reproduction
- Dominant language
- TypeScript
- Stars
- 3.8k
- Forks
- 217
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Hi, when I enable the ESLint option, it enters an infinite loop when I run vp dev.
plugins: lazyPlugins(() => [
!isTestMode && !isPlaywrightRun && mkcert(),
varlockVitePlugin(),
!isTestMode &&
!isPlaywrightRun &&
codeInspectorPlugin({ bundler: "vite", exclude: ["packages"], hideConsole: true }),
mdx({ include: /\.mdx$/u, remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter] }),
autoImportPlugin({
dts: "./typings/auto-imports.d.ts",
// eslintrc: {
// enabled: true,
// filepath: "./.eslintrc-auto-import.json",
// globalsPropValue: "readonly",
// },
imports: ["react", { type: true, from: "react", imports: AUTO_IMPORT_REACT_TYPES }],
include: [/\.[jt]sx?$/u],
viteOptimizeDeps: true,
}),
react(),
svgr(),
tailwindcss(),
]),
When you turn it off, the option stops reloading
Reproduction
System Info
WSL Ubuntu
System:
OS: Linux 6.6 Ubuntu 24.04.4 LTS 24.04.4 LTS (Noble Numbat)
CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13980HX
Memory: 6.46 GB / 15.43 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 24.18.0 - /home/danci/.local/share/mise/installs/node/24.18.0/bin/node
npm: 11.16.0 - /home/danci/.local/share/mise/installs/node/24.18.0/bin/npm
pnpm: 11.17.0 - /home/danci/.local/share/mise/installs/pnpm/11.17.0/pnpm
Browsers:
Chrome: 149.0.7827.200
Used 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the infinite reload from the ESLint option while running vp dev, using the configuration shown in the issue. Trace the reload behavior around the ESLint option and confirm that disabling it stops the loop; done means vp dev runs without repeated reloads, ideally with a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, typescript, vite
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100