Skip to content

Commit 18e426e

Browse files
authored
chore: disable node native blob (#49)
Disable until nodejs/node#42108 is fixed
1 parent bd4382a commit 18e426e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/blob/src/lib.node.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
export { TextEncoder, TextDecoder, ReadableStream } from "./package.js"
2-
import { Blob as NodeBlob } from "./blob.node.js"
2+
// import { Blob as NodeBlob } from "./blob.node.js"
33
import { Blob as WebBlob } from "./blob.js"
44

55
/** @type {typeof globalThis.Blob} */
66
// Our first choise is to use global `Blob` because it may be available e.g. in
77
// electron renderrer process. If not available fall back to node native
88
// implementation, if also not available use our implementation.
9-
export const Blob = globalThis.Blob || NodeBlob || WebBlob
9+
export const Blob =
10+
globalThis.Blob ||
11+
// Disable node native blob until impractical perf issue is fixed
12+
// @see https://github.com/nodejs/node/issues/42108
13+
// NodeBlob ||
14+
WebBlob

0 commit comments

Comments
 (0)