Ensure prepend texts are set when skipping internals (#33694)

This commit is contained in:
Ron Buckton
2019-10-01 12:33:17 -07:00
committed by GitHub
parent a04f1eb7f0
commit 526ed5284e
4 changed files with 352 additions and 2 deletions

View File

@@ -2974,7 +2974,10 @@ namespace ts {
(texts || (texts = [])).push(prependNode);
break;
case BundleFileSectionKind.Internal:
if (stripInternal) break;
if (stripInternal) {
if (!texts) texts = [];
break;
}
// falls through
case BundleFileSectionKind.Text: