You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: restore externalized Node.js dep compatibility (#3421)
* fix: restore externalized Node.js dep compatibility
Restore the ability to build Undici compatible with Node.js'
`configure --shared-builtin-undici/undici-path ...` build option.
Scopes the `hasApk` conditional to only cover the part that requires
`apk`.
Makes the WASM optimizer (binaryen) optional to allow building on
Linux distributions that do not package `binaryen` and must be able
to rebuild everything (including tooling) from source.
* ci: add workflow for externalized Node.js dep
Add a workflow to test building Undici in a way compatible with Node.js
built with `configure --shared-builtin-undici/undici-path ...`.
This configuration is used by downstream Node.js packagers (e.g. Fedora)
who require the ability to be able to build everything from source.
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,8 @@ If you are packaging `undici` for a distro, this might help if you would like to
157
157
an unbundled version instead of bundling one in `libnode.so`.
158
158
159
159
To enable this, pass `EXTERNAL_PATH=/path/to/global/node_modules/undici` to `build/wasm.js`.
160
-
You shall also pass this path to `--shared-builtin-undici/undici-path` in Node.js's `configure.py`.
160
+
Pass this path with `loader.js` appended to `--shared-builtin-undici/undici-path` in Node.js's `configure.py`.
161
+
If building on a non-Alpine Linux distribution, you may need to also set the `WASM_CC`, `WASM_CFLAGS`, `WASM_LDFLAGS` and `WASM_LDLIBS` environment variables before running `build/wasm.js`.
0 commit comments