We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7eb38e commit 1fe8b13Copy full SHA for 1fe8b13
src/api/index.ts
@@ -1,4 +1,8 @@
1
-import fetch from "node-fetch";
+// import fetch from "node-fetch";
2
+// mod.cjs
3
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
+// @ts-ignore
5
+const fetch = (...args) => import("node-fetch").then(({ default: fetch }) => fetch(...args));
6
import * as httpModule from "http";
7
import * as httpsModule from "https";
8
import * as url from "url";
tsconfig.json
@@ -2,7 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
- "target": "es6",
+ "target": "es2019",
"outDir": "out",
"moduleResolution": "node",
"lib": ["esnext", "dom"],
0 commit comments