diff options
| author | Veetaha <veetaha2@gmail.com> | 2020-07-08 14:47:34 +0300 |
|---|---|---|
| committer | Veetaha <veetaha2@gmail.com> | 2020-07-08 14:47:34 +0300 |
| commit | e2fec10dc17943cffde7dfc3bd94bb64b3f3c2a9 (patch) | |
| tree | 8f71f7c7128cf5e2b3c4a8da3b4ab4ce2869eb46 /editors/code/src | |
| parent | 41feb816c98894d48df97193eb085738e405a3c2 (diff) | |
| download | rust-e2fec10dc17943cffde7dfc3bd94bb64b3f3c2a9.tar.gz rust-e2fec10dc17943cffde7dfc3bd94bb64b3f3c2a9.zip | |
Workaround rollup messing up default imports
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/net.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editors/code/src/net.ts b/editors/code/src/net.ts index 53c9e91cd17..681eaa9c946 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"; |
