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
Noticed on a webpack project with typescript@2.1.1, using either commonjs or es2015 modules:
// index.tsimport'./empty'asyncfunctionx(){}
// empty.ts
This emits an import for tslib following by the import for empty. However, commenting the import 'empty' line out also omits the import for tslib, and the emitted code attempts to use a global __awaiter.
I thought this might have been fixed by #12151, but it's still present in current master (built with gulp LKG).
The text was updated successfully, but these errors were encountered:
Jessidhia
changed the title
importHelpers does not emit import if not at least one other import is present
importHelpers does not emit import unless at least one other import is present
Nov 11, 2016
Noticed on a webpack project with typescript@2.1.1, using either commonjs or es2015 modules:
// empty.ts
This emits an import for
tslib
following by the import forempty
. However, commenting theimport 'empty'
line out also omits the import fortslib
, and the emitted code attempts to use a global__awaiter
.I thought this might have been fixed by #12151, but it's still present in current
master
(built withgulp LKG
).The text was updated successfully, but these errors were encountered: