aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Alex Lam S.L <alexlamsl@gmail.com> 2023-07-17 20:05:01 +0300
committerGravatar GitHub <noreply@github.com> 2023-07-17 20:05:01 +0300
commit570a44d73a14b73614d6bdd8787f08545dd63c37 (patch)
tree2d328b1c4c3794190333da7f9f2a987abbedf454 /src
parent5218a33fb67f90d25f2fcfe0a55b6000469ab069 (diff)
downloadbun-570a44d73a14b73614d6bdd8787f08545dd63c37.tar.gz
bun-570a44d73a14b73614d6bdd8787f08545dd63c37.tar.zst
bun-570a44d73a14b73614d6bdd8787f08545dd63c37.zip
workaround `readable-stream` compatibility (#3626)
- update `bun link` tests - update `tests/bun.lockb` - drop unused import in test
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/module_loader.zig8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig
index e7e4d700e..1bf8dcb12 100644
--- a/src/bun.js/module_loader.zig
+++ b/src/bun.js/module_loader.zig
@@ -2204,9 +2204,11 @@ pub const HardcodedModule = enum {
.{ "path/win32", .{ .path = "node:path/win32" } },
.{ "perf_hooks", .{ .path = "node:perf_hooks" } },
.{ "process", .{ .path = "node:process" } },
- .{ "readable-stream", .{ .path = "node:stream" } },
- .{ "readable-stream/consumer", .{ .path = "node:stream/consumers" } },
- .{ "readable-stream/web", .{ .path = "node:stream/web" } },
+ // Older versions of `readable-stream` is incompatible with latest
+ // version of Node.js Stream API, which `bun` implements
+ // .{ "readable-stream", .{ .path = "node:stream" } },
+ // .{ "readable-stream/consumer", .{ .path = "node:stream/consumers" } },
+ // .{ "readable-stream/web", .{ .path = "node:stream/web" } },
.{ "readline", .{ .path = "node:readline" } },
.{ "readline/promises", .{ .path = "node:readline/promises" } },
.{ "stream", .{ .path = "node:stream" } },