diff --git a/editors/code/src/net.ts b/editors/code/src/net.ts index 53c9e91cd170..681eaa9c9464 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";