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 90f686e commit b56de63Copy full SHA for b56de63
src/index.ts
@@ -6,7 +6,9 @@
6
* SPDX-License-Identifier: Apache-2.0
7
*/
8
9
-const [major, minor] = process.version.substring(1).split('.').map(Number);
+import {version} from 'node:process';
10
+
11
+const [major, minor] = version.substring(1).split('.').map(Number);
12
13
if (major < 22 || (major === 22 && minor < 12)) {
14
console.error(
tsconfig.json
@@ -8,8 +8,8 @@
"ESNext.Iterator",
"ESNext.Collection"
],
- "module": "nodenext",
- "moduleResolution": "nodenext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "./build",
"rootDir": ".",
15
"strict": true,
0 commit comments