Fix: use correct identifier in template - fixes T7509 (#3602)

This commit is contained in:
Henry Zhu
2016-07-27 09:24:26 -04:00
committed by GitHub
parent 81f0f464e7
commit 0ff1f089bb
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ let buildTemplate = template(`
let buildExportAll = template(`
for (var KEY in TARGET) {
if (KEY !== "default" && key !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY];
if (KEY !== "default" && KEY !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY];
}
`);

View File

@@ -6,7 +6,7 @@ System.register(["foo"], function (_export, _context) {
var _exportObj = {};
for (var _key in _foo) {
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _foo[_key];
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _foo[_key];
}
_exportObj.foo = _foo.foo;