Skip to content

fix: nodejs wasm root package - #545

Merged
stefan-gorules merged 2 commits into
masterfrom
fix/nodejs-wasm-root-package
Oct 13, 2026
Merged

stefan-gorules merged 2 commits into
masterfrom
fix/nodejs-wasm-root-package

Conversation

@stefan-gorules

Copy link
Copy Markdown
Contributor

No description provided.

…dency

cli 3.10 drops WASI packages from the root optionalDependencies when native targets exist, which would leave browser.js importing an uninstalled package. Ignore and clear the root facades pre-publish now generates.
napi prepublish copies the 15.6MB wasm into the root package and rewrites files and exports for workerd consumers. Run it through prepublish.mjs, which keeps its optionalDependencies but restores files and exports and removes the generated root files, so the root tarball is back to ~20kB.
@stefan-gorules
stefan-gorules merged commit 73c8fda into master Oct 13, 2026
22 checks passed
@stefan-gorules
stefan-gorules deleted the fix/nodejs-wasm-root-package branch October 13, 2026 11:54
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