From f0a8bf566c1d3dbe09d2a20ac920b047aa1fd759 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Mon, 14 Dec 2015 18:01:55 +0200 Subject: [PATCH] add __moduleName to System.register --- src/compiler/emitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index f0b4985473..f783c10ba8 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);