Generating __awaiter
in all files even if no async/await is present
#5564
Milestone
__awaiter
in all files even if no async/await is present
#5564
Hi,
If I compile the following code:
It generates a helper function
__awaiter
and adds it to the output file, which is fine.However, if I add another
ts
file, the output file will contain the__awaiter
function as well, even if it doesn't contain any async/await method.Exemple:
index.ts:
a.ts:
Output:
index.js:
a.js:
Is this by design?
This is not a big issue from my part but I'm working on a quite big project with lots of files and this adds about 604 B for each file (if I remove the spaces), and it adds a lot of noise.
My tsconfig:
Thanks!
The text was updated successfully, but these errors were encountered: