Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix wrapper to work on Windows #522

Merged
merged 3 commits into from
Sep 2, 2024
Merged

Conversation

jakub-gonet
Copy link
Member

@jakub-gonet jakub-gonet commented Sep 2, 2024

We're using filenames which are platform-specific to check what files should be modified. Windows uses backslashes so it wasn't ever matched.

Testing plan

Run any app on windows and check if RN IDE functionality works (inspector, etc).

Copy link

vercel bot commented Sep 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 9:09am

Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

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

Approving, but please reverse spread operator change

@@ -97,7 +101,7 @@ function transformWrapper({ filename, src, ...rest }) {
}
}

return transform({ filename, src, ...rest });
return transform({ filename, src, options, plugins });
Copy link
Member

Choose a reason for hiding this comment

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

why this change here? I actually fixed one issue in another transformer a while ago that was assuming only three elements in that object exists while plugins was added afterwards to the specification. Given we don't use all of them it'd be more future proof to have the ellipsis here

Copy link
Member

Choose a reason for hiding this comment

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

@kmagiera
Copy link
Member

kmagiera commented Sep 2, 2024

Also, can you provide the test plan here?

@jakub-gonet jakub-gonet merged commit 96364a7 into main Sep 2, 2024
3 checks passed
@jakub-gonet jakub-gonet deleted the jgonet/fix-windows-wrapper branch September 2, 2024 09:09
p-malecki added a commit that referenced this pull request Sep 2, 2024
This PR adds a missing import in the previous PR #522 and changes `/`
path separator to platform-specific in`babel_transformer.js`.
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.

3 participants