You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix TypeScript import resolution for extensionless imports
Automatically add .js extension to relative imports that don't have a standard module extension. This fixes the ERR_MODULE_NOT_FOUND error when TypeScript files import other files without specifying an extension (e.g., import from "./abstract.helper" instead of "./abstract.helper.js").
The transpiler now:
- Detects imports without standard extensions (.js, .mjs, .cjs, .json, .node)
- Adds .js extension automatically for ESM compatibility
- Handles both transpiled TypeScript files (rewrites to .temp.mjs) and regular JS files
Co-authored-by: kobenguyent <7845001+kobenguyent@users.noreply.github.com>
0 commit comments