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
feat(core): experimental wasi target #22679
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
if (localFileExisted) { | ||
nativeBinding = require('./nx.android-arm-eabi.node') | ||
} else { | ||
nativeBinding = require('@nx/nx-android-arm-eabi') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These imports have been broken some how.
The prefix is specified in package.json
here:
Line 170 in fc8d5ba
"name": "@nx/nx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Brooooooklyn Do you know what might be going on here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a look tomorrow 🥹
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrozenPandaz it should be napi.packageName
now
Closing in favor of #22870 |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Originally opened by @Brooooooklyn
This pull request is trying to add
wasm32-wasi
target support for thenx/native
To test the build, you can run the following commands:
pnpm exec napi build --release --platform -c packages/nx/package.json --manifest-path packages/nx/Cargo.toml --js ./index.js -o packages/nx/src/native --target wasm32-wasi-preview1-threads
And the
wasm
file will be built atpackages/nx/src/native/nx.wasm32-wasi.wasm
Blocked by:
wasm32-wasi-preview1-threads
was renamed napi-rs/napi-rs#2009The
pseudo_terminal
mod is excluded on thewasm32
targets, which is as expected.The
watch
mod is excluded because of the upstreamgix-*
deps introduce byignore-files
don't support wasi target at this moment (but we can improve it).