-
Notifications
You must be signed in to change notification settings - Fork 26
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
tests: fix loading wasm when targeting external deps #94
Conversation
I'm sincerely sorry for the noise this caused 😅 |
This reverts commit bcc6ce4.
Actually I'm just very confused about what is going on here now - But it is both a build environment variable and a define variable by name. And in the build, we inline that path as an absolute path, while in the runtime the assumption is that And then we also wrap the entry point for the package for some kind of lazy wrapping as well as altering the main distribution file? This is all just very very very convoluted, and I trusted that it would work but it clearly doesn't. I've put together a revert PR in #95, to remove these build changes entirely. |
It was never a runtime variable. The purpose of this is to enable externalized build, and build
The relative path change was done to make sure a single external build can handle the reading of lexer.wasm both in-tree and installed to I understand the efforts you put into this, and the necessity to make things simpler. But based on the reasons above, #95 is, unfortunately, not a choice here. |
There is no variable in https://github.com/nodejs/cjs-module-lexer/pull/94/files#diff-7d867ca4df223e0c07d997702e598243e0644cb647e57d8363a6652a8888cf1fR97, so how is this the case in the code? |
A step by step breakdown:
|
Thanks for clarifying, if you're doing internal module hooks to alter internal resolution rules, then this pattern needs to be clearly identified and described as part of this work. |
Follow up of #91 and #93.