fi3ework / vite-plugin-checker

💬 Vite plugin that provide checks of TypeScript, ESLint, vue-tsc, Stylelint and more.
https://vite-plugin-checker.netlify.app
MIT License
1k stars 87 forks source link

vite optimize --force freezes because of checker #378

Open Khavrolev opened 3 months ago

Khavrolev commented 3 months ago

Describe the bug

I've recently added vite-plugin-checker into our project, it works fine during development, but it leads to an infinite freeze during link an external lib: yarn link @fleet/shared && yarn add @fleet/shared && vite optimize --force

I use the simple configuration:

checker({
  typescript: true,
}),

When I set typescript to false, it works fine. But I can't find a way, how I can turn the checker off during the link process

Reproduction

1) Add an external lib to the project; 2) Add vite-plugin-checker with the simple typescript configuration; 3) Try to link the external lib; 4) See the freeze.

Expected behavior

1) Add an external lib to the project; 2) Add vite-plugin-checker with the simple typescript configuration; 3) Try to link the external lib; 4) See the end of the link process

System Info

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M1 Pro
    Memory: 53.92 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.17.1/bin/npm
  Browsers:
    Chrome: 126.0.6478.185
    Safari: 17.5

Additional context

No response

Validations