From e65cd07e488e3a7bd50061f6dc33b333583654ae Mon Sep 17 00:00:00 2001 From: Kafji Date: Tue, 8 Dec 2020 13:06:36 +0700 Subject: Remove workaround & fix fetch$1 is not a function Remove workaround for https://github.com/rollup/plugins/issues/491 because it's fixed in 15.0 https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md#v1500. Also fix fetch$1 is not a function error https://github.com/rust-analyzer/rust-analyzer/issues/6757. --- editors/code/src/net.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'editors/code/src/net.ts') diff --git a/editors/code/src/net.ts b/editors/code/src/net.ts index 9ba17b7b5..1ab21e726 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"; -- cgit v1.2.3