Skip to content

Commit 686af1c

Browse files
committed
fix: use vite compatible readable stream to fix torus auth
See nodejs/readable-stream#348 and feross/simple-peer#823 This commit will probably be reverted in near future when nodejs readable stream will be compatible with vite
1 parent a38c8bb commit 686af1c

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"sass": "~1.32.6",
5555
"unplugin-vue-components": "^0.21.1",
5656
"vite": "^2.9.13",
57+
"vite-compatible-readable-stream": "^3.6.1",
5758
"vite-plugin-istanbul": "^2.8.0",
5859
"vite-plugin-mkcert": "^1.7.2",
5960
"vite-plugin-pwa": "^0.12.2",

pnpm-lock.yaml

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

vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export default defineConfig({
6262
resolve: {
6363
alias: {
6464
'@': path.resolve(__dirname, './src'),
65+
"readable-stream": "vite-compatible-readable-stream"
6566
},
6667
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
6768
},

0 commit comments

Comments
 (0)