Skip to content

fix(metro): watch project root in widget bundler - #234

Merged
V3RON merged 1 commit into
mainfrom
agent/fix-metro-project-root-watch
Jul 28, 2026
Merged

fix(metro): watch project root in widget bundler#234
V3RON merged 1 commit into
mainfrom
agent/fix-metro-project-root-watch

Conversation

@V3RON

@V3RON V3RON commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What is this?

Fix Dynamic Widget bundling when Voltra starts its private Metro instance from an unnormalized default configuration. Widget source files under the app project are now available to Metro instead of failing because no project files were indexed.

How does it work?

The widget Metro configuration now prepends projectRoot to the configured watch folders, matching the normalization performed by Metro loadConfig(), while preserving and deduplicating additional watch folders. The redundant manifest-specific chokidar watcher is removed, and the regression test verifies the normalized watch-folder list passed to the private Metro middleware.

Why is this useful?

Dynamic Widgets can be resolved and bundled from the application project without requiring separate watch-folder entries for widgets/ or .voltra/, and Voltra no longer relies on an unused transitive chokidar installation.

@V3RON
V3RON marked this pull request as ready for review July 28, 2026 07:19
@V3RON
V3RON merged commit d18c588 into main Jul 28, 2026
14 checks passed
@V3RON
V3RON deleted the agent/fix-metro-project-root-watch branch July 28, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant