Skip to content

Commit 9e437b2

Browse files
bors[bot]Veetaha
andauthored
Merge #5262
5262: Workaround rollup messing up default imports r=matklad a=Veetaha Tackles #5257 (comment) Related: rollup/plugins#491 Co-authored-by: Veetaha <[email protected]>
2 parents 41feb81 + e2fec10 commit 9e437b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

editors/code/src/net.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import fetch from "node-fetch";
1+
// Replace with `import fetch from "node-fetch"` once this is fixed in rollup:
2+
// https://github.com/rollup/plugins/issues/491
3+
const fetch = require("node-fetch") as typeof import("node-fetch")["default"];
4+
25
import * as vscode from "vscode";
36
import * as stream from "stream";
47
import * as crypto from "crypto";

0 commit comments

Comments
 (0)