Noticed on a webpack project with typescript@2.1.1, using either commonjs or es2015 modules:
// index.ts
import './empty'
async function x () {}
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).
Noticed on a webpack project with typescript@2.1.1, using either commonjs or es2015 modules:
// empty.tsThis emits an import for
tslibfollowing 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).