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: node 22 module filename resolution in win32 (#49) by @faulpeltz #49

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

faulpeltz
Copy link

@faulpeltz faulpeltz commented Sep 24, 2024

Fixes the workaround when loading modules to not use the C++ API.
The original code here uses toNamespacedPath() which converts win32 paths to "\\?\C:\snapshot\foo.js" which the snapshot fs cannot resolve -> use original path instead

@robertsLando robertsLando changed the title fix: Node 22 module filename resolution in win32 fix: node 22 module filename resolution in win32 Sep 24, 2024
Copy link
Member

@robertsLando robertsLando left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @faulpeltz !

@robertsLando robertsLando changed the title fix: node 22 module filename resolution in win32 fix: node 22 module filename resolution in win32 (#49) by @faulpeltz Sep 24, 2024
@robertsLando robertsLando merged commit e436d74 into yao-pkg:main Sep 24, 2024
4 checks passed
@robertsLando
Copy link
Member

@faulpeltz Unfortunately we need to wait a new nodejs 22 release in order to test this as I have no way with current workflows to force build a specific version, I need to implement this

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.

2 participants