diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index f0b49854734..f783c10ba8c 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -6992,7 +6992,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi write(text); } - write(`], function(${exportFunctionForFile}) {`); + write(`], function(${exportFunctionForFile}, __moduleName) {`); writeLine(); increaseIndent(); const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ true);