🚀 Feature Request: Support exclude patterns in [build].watch_dir #13218
XIYO
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Hi, I wanted to follow up and see if there’s any update on this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
When using code generators like
paraglide-js(i18n),graphql-codegen, orprisma, wrangler's custom build watch triggers infinite rebuild loops because generated files are detected as changes.Current Behavior
What happens:
src/lib/paraglide/watch_dirAdditionally:
.gitignorepatterns are not respected by watchProposed Solution
Option 1: Add
watch_ignoreparameterOption 2: Automatically respect
.gitignoreWrangler should automatically exclude paths listed in
.gitignorefrom the watch mechanism.Use Cases
This affects any project using code generators:
paraglide-js,typesafe-i18ngraphql-codegenprisma client generateopenapi-typescript.svelte-kit,.next, etc.Current Workaround
Users must manually run build before dev:
pnpm build && pnpm wrangler dev --port 8788This removes the benefit of automatic rebuilds on file changes.
Related Issues
Environment
Beta Was this translation helpful? Give feedback.
All reactions