Skip to content

Commit b5c1519

Browse files
committed
feat(esm): Update tsconfig.json for ES2022 modules
Updated TypeScript configuration to support ESM: - Changed module from 'commonjs' to 'ES2022' - Changed target from 'es2018' to 'ES2022' - Added moduleResolution: 'node16' for proper ESM resolution This resolves TypeScript errors related to import.meta.url and ESM imports.
1 parent 62a9464 commit b5c1519

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"files": true
44
},
55
"compilerOptions": {
6-
"target": "es2018",
7-
"lib": ["es2018", "DOM"],
6+
"target": "ES2022",
7+
"lib": ["ES2022", "DOM"],
88
"esModuleInterop": true,
9-
"module": "commonjs",
9+
"module": "ES2022",
10+
"moduleResolution": "node16",
1011
"types": ["node"],
1112
"declaration": true,
1213
"skipLibCheck": true,

0 commit comments

Comments
 (0)