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.
The text was updated successfully, but these errors were encountered:
eemeli
changed the title
[@rollup/plugin-typescript] Using rewriteRelativeImportExtension with synamic imports leaves out helper function
[@rollup/plugin-typescript] Using rewriteRelativeImportExtension with dynamic imports leaves out helper function
Nov 29, 2024
Expected Behavior
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 dynamicimport()
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.The text was updated successfully, but these errors were encountered: