When a user creates a .js extension file but writes TypeScript syntax in it, the loader now detects common TS patterns (type annotations, interfaces, enums, generics) and provides a clear error message suggesting to rename the file to .ts, instead of the previous cryptic "Extension does not export a valid factory function" or opaque jiti parse errors. Fixes #2381 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||