Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit a8719b1

Browse files
bors[bot]Veetaha
andauthored
Merge #5262
5262: Workaround rollup messing up default imports r=matklad a=Veetaha Tackles rust-lang/rust-analyzer#5257 (comment) Related: rollup/plugins#491 Co-authored-by: Veetaha <[email protected]>
2 parents e4cb0f3 + b396bc8 commit a8719b1

File tree

1 file changed

+4
-1
lines changed
  • rust-analyzer/editors/code/src

1 file changed

+4
-1
lines changed

rust-analyzer/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)