Remove unneccessary debug.fail as by defualt we will add commonJS module transformation step

This commit is contained in:
Kanchalai Tanglertsampan
2017-06-08 12:59:30 -07:00
parent 58aa0f3f76
commit 7121891921
4 changed files with 169 additions and 3 deletions

View File

@@ -514,14 +514,14 @@ namespace ts {
function visitImportCallExpression(node: ImportCall): Expression {
switch (compilerOptions.module) {
case ModuleKind.CommonJS:
return transformImportCallExpressionCommonJS(node);
case ModuleKind.AMD:
return transformImportCallExpressionAMD(node);
case ModuleKind.UMD:
return transformImportCallExpressionUMD(node);
case ModuleKind.CommonJS:
default:
return transformImportCallExpressionCommonJS(node);
}
Debug.fail("All supported module kind in this transformation step should have been handled");
}
function transformImportCallExpressionUMD(node: ImportCall): Expression {