From f4b8ab073f6773d50212537fee13e69b8b7e4376 Mon Sep 17 00:00:00 2001 From: Joe Maples Date: Thu, 28 May 2026 12:15:32 -0400 Subject: [PATCH] build: switch to NodeNext module resolution for strict ESM enforcement Change tsconfig from bundler to NodeNext moduleResolution. This makes TypeScript enforce .js extensions at compile time, preventing the class of ESM resolution failures described in issue #16. The .js extension fixes were already applied in a previous commit. This change prevents future regressions by making extensionless imports a compile-time error. Fixes #16 --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index fbe2351..1ad90fb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "target": "ES2022", - "module": "ESNext", - "moduleResolution": "bundler", + "module": "NodeNext", + "moduleResolution": "NodeNext", "lib": ["ES2022"], "jsx": "react-jsx", "outDir": "./dist",