Support TypeScript 7.1 API - #1704
Conversation
|
@copilot update ts-loader/.github/workflows/push.yml Line 52 in 53082fb ts-loader/.github/workflows/push.yml Line 84 in 53082fb We expect execution-tests to pass after this change |
Updated in |
|
@copilot great work! We would like the following to succeed:
Remember backwards compatibility is not required - feel free to make changes |
Verified on |
|
@copilot we have explictly removed the historic typescript version from dependencies and moved to use 7.1 directly. This has broken compilation. Please fix it. You will likely need to use new APIs in TypeScript 7 to achieve this. No cheating. |
Updated in |
|
@copilot make |
Addressed in |
Comment out the DIAGNOSTIC_CODE_FILE_NOT_FOUND constant.
This PR is an attempt at using the TypeScript 7.1+ API.
This pares back the earlier tsgo integration attempt to the new API alone. Instead of carrying both implementations,
experimentalNativeApinow routes through the tsgo API directly, with the existing loader flow left in place for non-tsgo usage.What changed
experimentalNativeApitypescriptdependency for current loader internals and config handling, while loading the tsgo API fromtypescript-native-previewLoader integration
experimentalNativeApiis enabledNative API path
/src/native.tsto:typescript-native-preview/unstable/syncgetJavaScriptEmitOption model
experimentalNativeApito loader optionstranspileOnly; it does not attempt to support the older language-service/watch/project-reference machineryExecution coverage
Execution tests are generally passing - loaderOptions does not