Skip to content

Stop app dev watching build output and other never-source paths - #8992

Draft
isaacroldan wants to merge 1 commit into
mainfrom
improve-chokidar-performance
Draft

isaacroldan wants to merge 1 commit into
mainfrom
improve-chokidar-performance

Conversation

@isaacroldan

Copy link
Copy Markdown
Contributor

Chokidar ignored only node_modules and .git, so it crawled (and on macOS, without fsevents, polled) every file under a Rust function's target directory. The per-extension watch rules only filter events after chokidar emits them.

Ignore at the watcher level the paths that are never an extension's source or an import: Cargo target directories (a target directory next to a Cargo.toml), function output directories (dist), the CLI's .shopify directory, .DS_Store and editor swap/backup files. dist and generated stay watched for other extensions, because imported files can live there.

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

How to manually test your changes?

Post-release steps

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

Chokidar ignored only node_modules and .git, so it crawled (and on macOS, without fsevents, polled) every file under a Rust function's target directory. The per-extension watch rules only filter events after chokidar emits them.

Ignore at the watcher level the paths that are never an extension's source or an import: Cargo target directories (a target directory next to a Cargo.toml), function output directories (dist), the CLI's .shopify directory, .DS_Store and editor swap/backup files. dist and generated stay watched for other extensions, because imported files can live there.

Co-authored-by: Isaac Roldan <isaac.roldan@shopify.com>
@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Oct 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants