support dynamic import with import assertion with module: preserve
#58975
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
π Search Terms
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?module=200#code/IYZwngdgxgBAZgV2gFwJYHsIygCwKZQDWAFAJQwDeAUDLTAE57IL1aoC2ADuvcsQEQA6APQATYMmCCAViEz8ANJRgB3VMhwAuZcjCc82-rPkwAvmdIBuKqapA
π» Code
see the repo: https://github.com/stefanprobst/issue-ts-preserve
π Actual behavior
when running
tsc --noEmit
in the example repo, i see this error message:π Expected behavior
i had expected
module: "preserve"
to work with dynamic imports + import assertions.when setting
module: "esnext"
, i see no error messageAdditional information about the issue
No response
The text was updated successfully, but these errors were encountered: