mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-25 16:07:52 -05:00
Ensure prepend texts are set when skipping internals (#33694)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user