Skip to content

Commit 65ec6e8

Browse files
committed
web streams polyfill
1 parent 278427d commit 65ec6e8

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

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
@@ -72,6 +72,7 @@
7272
"dependencies": {
7373
"@zip.js/zip.js": "^2.7.41",
7474
"vscode-nls": "^5.2.0",
75-
"vscode-nls-dev": "^4.0.4"
75+
"vscode-nls-dev": "^4.0.4",
76+
"web-streams-polyfill": "^4.0.0"
7677
}
7778
}

packages/core/src/shared/utilities/zipStream.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import { WritableStreamBuffer } from 'stream-buffers'
77
import crypto from 'crypto'
88
import { readFileAsString } from '../filesystemUtilities'
9+
global.TransformStream = require('web-streams-polyfill').TransformStream
10+
global.ReadableStream = require('web-streams-polyfill').ReadableStream
11+
global.WritableStream = require('web-streams-polyfill').WritableStream
912
// Use require instead of import since this package doesn't support commonjs
1013
const { ZipWriter, TextReader } = require('@zip.js/zip.js')
1114

0 commit comments

Comments
 (0)