Skip to content

fix: add --no-border-checks flag to recover from source-map-explorer errors #129

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

thymikee
Copy link
Member

Description

On latest few versions of React Native (checked on 0.75 and above), the source-map-explorer dependency is crashing by incorrect mappings produced by Metro bundler:
image

which bleeds to react-native-bundle-visualizer:
image

To fix that, we can pass --no-border-checks flag to source-map-explorer, which avoids failure and can still produce the visual information, at least in my test project. As a non-breaking solution I'm adding the same flag to the react-native-bundle-visualizer

Test Plan

image

@thymikee thymikee force-pushed the feat/no-border-checks branch from d95b02e to 3fc2f0d Compare January 27, 2025 17:49
@thymikee thymikee requested a review from hurali97 January 30, 2025 13:46
Copy link
Member

@hurali97 hurali97 left a comment

Choose a reason for hiding this comment

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

LGTM

@hurali97 hurali97 merged commit 7aa289f into callstack:main Jan 31, 2025
3 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants