Update
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
/**
|
||||
* Pear's bare-module does not apply a dependency's package.json `imports` to CJS
|
||||
* `require('net')` etc. Replace Node core specifiers with bare-node-* and crypto
|
||||
* with explicit shim paths. Idempotent when already patched.
|
||||
* `require('net')` etc. Replace Node core specifiers with explicit requires:
|
||||
* - `bare-node-net`, `bare-node-stream`, … — npm “node compat” shims (Holepunch `bare-node` monorepo).
|
||||
* - Those shims sit on top of Bare stacks such as **`bare-net`** (npm TCP/IP for Bare), not a
|
||||
* non-existent `bare-net-node` name.
|
||||
* Also replace `require('crypto')` with paths into vendored `shims/crypto`. Idempotent.
|
||||
*/
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
|
||||
Reference in New Issue
Block a user