diff options
author | Veetaha <[email protected]> | 2020-07-08 12:47:34 +0100 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-07-08 12:47:34 +0100 |
commit | e2fec10dc17943cffde7dfc3bd94bb64b3f3c2a9 (patch) | |
tree | 8f71f7c7128cf5e2b3c4a8da3b4ab4ce2869eb46 /editors/code/src | |
parent | 41feb816c98894d48df97193eb085738e405a3c2 (diff) |
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 53c9e91cd..681eaa9c9 100644 --- a/editors/code/src/net.ts +++ b/editors/code/src/net.ts | |||
@@ -1,4 +1,7 @@ | |||
1 | import fetch from "node-fetch"; | 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 | |||
2 | import * as vscode from "vscode"; | 5 | import * as vscode from "vscode"; |
3 | import * as stream from "stream"; | 6 | import * as stream from "stream"; |
4 | import * as crypto from "crypto"; | 7 | import * as crypto from "crypto"; |