mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Workaround rollup messing up default imports
This commit is contained in:
parent
41feb816c9
commit
e2fec10dc1
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
|||
import fetch from "node-fetch";
|
||||
// Replace with `import fetch from "node-fetch"` once this is fixed in rollup:
|
||||
// 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 stream from "stream";
|
||||
import * as crypto from "crypto";
|
||||
|
|
Loading…
Reference in a new issue