diff --git a/editors/code/src/net.ts b/editors/code/src/net.ts index 9ba17b7b5d..1ab21e7262 100644 --- a/editors/code/src/net.ts +++ b/editors/code/src/net.ts @@ -1,7 +1,4 @@ -// 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 fetch from "node-fetch"; import * as vscode from "vscode"; import * as stream from "stream"; import * as crypto from "crypto";