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
Using the new rewriteRelativeImportExtension option introduced in TypeScript 5.7 should work with dynamic imports.
Actual Behavior
If rewriteRelativeImportExtension: true is set in the TS config, a dynamic import() in a .ts source will have its argument wrapped with a __rewriteRelativeImportExtension() helper function, but the helper function itself is not included in the compiled output.
Additional Information
Building the same file with just tsc works, and includes the helper in the output.