Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit d6d5bc4

Browse files
Tom Riglarnchanged
authored andcommitted
fix: adds stream-browserify as stream polyfill for browser
1 parent 5456c49 commit d6d5bc4

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

modules/stream/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if (FuseBox.isServer) {
22
module.exports = global.require("stream");
33
} else {
4-
module.exports = function() {};
4+
module.exports = { Stream: require("stream-browserify") };
55
}

package-lock.json

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"request": "^2.79.0",
5757
"shorthash": "0.0.2",
5858
"source-map": "^0.7.1",
59+
"stream-browserify": "^2.0.1",
5960
"tslib": "^1.8.0",
6061
"watch": "^1.0.1",
6162
"ws": "^1.1.1"
@@ -148,4 +149,4 @@
148149
},
149150
"typings": "index.d.ts",
150151
"version": "3.7.0-next.8"
151-
}
152+
}

0 commit comments

Comments
 (0)