Update src/utils.js
Co-authored-by: Joshua Lochner <admin@xenova.com>
This commit is contained in:
parent
05bfddba74
commit
f611db0917
|
@ -3,7 +3,7 @@ const fs = require('fs');
|
|||
|
||||
const { env } = require('./env.js');
|
||||
|
||||
if (global.ReadableStream === undefined && typeof process !== 'undefined') {
|
||||
if (global.ReadableStream === undefined && typeof process !== 'undefined') {
|
||||
try {
|
||||
global.ReadableStream = require('node:stream/web').ReadableStream; // ReadableStream is not a global with Node 16
|
||||
} catch(err) {
|
||||
|
|
Loading…
Reference in New Issue