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
And the way the helper emit code is currently written doesn’t distinguish between helpers that are only needed by other helpers, and helpers that are actually needed by transpiled code:
As I already noted in the original post, a fix is ready to be PRd on my machine. I'm just waiting for the approval to match the process outlined in the guidelines and the PR template.
TypeScript Version: 4.2.0-dev.20201112
Search Terms: esm, importHelpers, unused
Code
Expected behavior:
Imports only the used helpers:
Actual behavior:
Imports the used helpers and also the helpers they depend on:
Note the extra unused import in the first line.
Playground Link: https://www.typescriptlang.org/play?downlevelIteration=true&importHelpers=true&target=1&module=5&ts=4.2.0-dev.20201112#code/MYewdgzgLgBAhjAvDA2gRgDQwEwF0DcAUKJLAEZKoDMWALLoQKYAeADiAE6wnQzCUoAdMLhZhgsgSA
Additional info: I already have a fix for this ready; basically I'm just following protocol, waiting for approval.
The text was updated successfully, but these errors were encountered: