Skip to content

fix(metro-config): fix assets outside of project root not rendering - #3910

Merged
Tommy Nguyen (tido64) merged 7 commits into
mainfrom
tido/metro-config/rewrite-assets
Jan 8, 2026
Merged

Tommy Nguyen (tido64) merged 7 commits into
mainfrom
tido/metro-config/rewrite-assets

Conversation

@tido64

Copy link
Copy Markdown
Member

Description

Fixed assets outside of project root not rendering.

Resolves #3909.

Test plan

The close button should be rendered.

image

Comment thread packages/metro-config/src/assetPluginForMonorepos.js Fixed
@tido64
Tommy Nguyen (tido64) enabled auto-merge (squash) January 6, 2026 11:53
@tido64
Tommy Nguyen (tido64) force-pushed the tido/metro-config/rewrite-assets branch 2 times, most recently from 5e12d55 to 0bdebdf Compare January 8, 2026 15:49
@tido64
Tommy Nguyen (tido64) force-pushed the tido/metro-config/rewrite-assets branch from 0bdebdf to df9c55f Compare January 8, 2026 15:51

@JasonVMo Jason Morse (JasonVMo) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The ../ escaping is hardcoded to posix style paths, will these still be in this style on Windows?

@tido64
Tommy Nguyen (tido64) merged commit 176e101 into main Jan 8, 2026
15 checks passed
@tido64
Tommy Nguyen (tido64) deleted the tido/metro-config/rewrite-assets branch January 8, 2026 21:38
@tido64

Copy link
Copy Markdown
Member Author

Looks good. The ../ escaping is hardcoded to posix style paths, will these still be in this style on Windows?

This should be fine because they're urls (which is also the cause of all the issues).

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

Labels

feature: metro This is related to Metro

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Static assets fail to load in monorepo since 0.81

3 participants