Skip to content

Commit fe04d97

Browse files
committed
2 parents 342853d + 98a5201 commit fe04d97

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/utils/audio.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,6 @@ function encodeWAV(chunks, rate) {
774774
/* data chunk length */
775775
view.setUint32(40, totalLength * 4, true);
776776

777-
// @ts-expect-error TS2322
778777
return new Blob([buffer, ...chunks], { type: "audio/wav" });
779778
}
780779

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,14 @@ const NODE_EXTERNAL_MODULES = [
171171
"node:fs",
172172
"node:path",
173173
"node:url",
174+
"node:stream",
175+
"node:stream/promises",
174176
];
175177

176178
// Do not bundle node-only packages when bundling for the web.
177179
// NOTE: We can exclude the "node:" prefix for built-in modules here,
178180
// since we apply the `StripNodePrefixPlugin` to strip it.
179-
const WEB_IGNORE_MODULES = ["onnxruntime-node", "sharp", "fs", "path", "url"];
181+
const WEB_IGNORE_MODULES = ["onnxruntime-node", "sharp", "fs", "path", "url", "stream", "stream/promises"];
180182

181183
// Do not bundle the following modules with webpack (mark as external)
182184
const WEB_EXTERNAL_MODULES = ["onnxruntime-common", "onnxruntime-web"];

0 commit comments

Comments
 (0)