mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Merge #6759
6759: Remove workaround & fix fetch$1 is not a function r=lnicola a=kafji Remove workaround for https://github.com/rollup/plugins/issues/491 because it's fixed in 15.0 https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md#v1500. Also fix fetch$1 is not a function error https://github.com/rust-analyzer/rust-analyzer/issues/6757. Co-authored-by: Kafji <k@kafji.net>
This commit is contained in:
commit
021e97ea03
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,4 @@
|
||||||
// Replace with `import fetch from "node-fetch"` once this is fixed in rollup:
|
import fetch from "node-fetch";
|
||||||
// https://github.com/rollup/plugins/issues/491
|
|
||||||
const fetch = require("node-fetch") as typeof import("node-fetch")["default"];
|
|
||||||
|
|
||||||
import * as vscode from "vscode";
|
import * as vscode from "vscode";
|
||||||
import * as stream from "stream";
|
import * as stream from "stream";
|
||||||
import * as crypto from "crypto";
|
import * as crypto from "crypto";
|
||||||
|
|
Loading…
Reference in a new issue