Files
Simon Klee 6d5d25afda Switch tsconfig to NodeNext module resolution (#855)
Prevent regressions where extensionless imports break consumers using
NodeNext
or Node's ESM loader.

tsconfigs override back to "bundler" because bun-ffi-structs and
bun-webgpu
don't export NodeNext-compatible types yet.

Change this once @kommander fixes upstream. I think we can merge this pr
now and update the last things once you've updated upstream.

Close: #843
2026-03-24 11:32:43 +01:00

28 lines
635 B
JSON

{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "NodeNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// NodeNext module resolution
"moduleResolution": "NodeNext",
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
},
"exclude": ["dist"]
}