Skip to content

Commit 708d13c

Browse files
committed
build: modernize TypeScript config for ES modules
- Change module from CommonJS to ESNext - Remove esModuleInterop and allowSyntheticDefaultImports - Simplify configuration for pure ES module support
1 parent de39c05 commit 708d13c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "CommonJS",
4+
"module": "ESNext",
55
"outDir": "./dist",
66
"rootDir": "./src",
77
"strict": true,
8-
"esModuleInterop": true,
98
"skipLibCheck": true,
109
"forceConsistentCasingInFileNames": true,
1110
"declaration": true,
1211
"declarationMap": true,
1312
"sourceMap": true,
1413
"resolveJsonModule": true,
1514
"moduleResolution": "node",
16-
"allowSyntheticDefaultImports": true,
1715
"experimentalDecorators": true,
1816
"emitDecoratorMetadata": true,
1917
"noImplicitAny": true,

0 commit comments

Comments
 (0)