-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remix Vite Plugin triggers watchers during Build #8313
Comments
I just took a quick look at how SvelteKit managed the build, and it seems that they don't use |
Quick and dirty fix (until implementation using vite.build) could be to set |
Interesting, thanks for reporting the issue. Note that Remix makes use of remix/packages/remix-dev/vite/build.ts Line 71 in 9edcf88
To fix this, |
Fixed by #8320. |
Reproduction
I'm using the Vite Plugin for building an app (and deploy it to Production), and I have two issues:
vite build
seems to trigger watchers on all files in my workspace.Using pnpm on Gitlab, I configured
viteConfig.server.watch.ignored
to include**/.pnpm-store/**
.This prevents the CI to crash because of too many inotify watchers.
(See kinda related issue https://gitlab.com/gitlab-org/gitlab/-/issues/434329)
Until version
2.4.0
it was possible to configure which files had to be ignored, but since2.4.0
(in this commit), the configuration of the Server does not overwrite User config but does an entire replace instead.Configuration
System Info
Used Package Manager
pnpm
Expected Behavior
Remix Vite plugin should not trigger watchers during build.
It should be possible to configure which files should be ignored using
viteConfig.server.watch.ignored
.Actual Behavior
Remix Vite Plugin triggers watchers for all files in workspace (except
node_modules/
and.git/
which are Vite defaults)viteConfig.server.watch.ignored
is entirely skipped by the Remix Vite Plugin.The text was updated successfully, but these errors were encountered: