From e2fec10dc17943cffde7dfc3bd94bb64b3f3c2a9 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Wed, 8 Jul 2020 14:47:34 +0300 Subject: Workaround rollup messing up default imports --- editors/code/src/net.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editors/code/src/net.ts') diff --git a/editors/code/src/net.ts b/editors/code/src/net.ts index 53c9e91cd..681eaa9c9 100644 --- a/editors/code/src/net.ts +++ b/editors/code/src/net.ts @@ -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"; -- cgit v1.2.3