Skip to content

Commit e65cd07

Browse files
committed
Remove workaround & fix fetch$1 is not a function
Remove workaround for rollup/plugins#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 #6757.
1 parent dfd0626 commit e65cd07

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

editors/code/src/net.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
// Replace with `import fetch from "node-fetch"` once this is fixed in rollup:
2-
// https://github.com/rollup/plugins/issues/491
3-
const fetch = require("node-fetch") as typeof import("node-fetch")["default"];
4-
1+
import fetch from "node-fetch";
52
import * as vscode from "vscode";
63
import * as stream from "stream";
74
import * as crypto from "crypto";

0 commit comments

Comments
 (0)