Workaround rollup messing up default imports

This commit is contained in:
Veetaha 2020-07-08 14:47:34 +03:00
parent 41feb816c9
commit e2fec10dc1

View file

@ -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";