diff --git a/development/build/transforms/remove-fenced-code.js b/development/build/transforms/remove-fenced-code.js index 6a95adf17..13e8b8a6f 100644 --- a/development/build/transforms/remove-fenced-code.js +++ b/development/build/transforms/remove-fenced-code.js @@ -104,14 +104,14 @@ function createRemoveFencedCodeTransform( // string. /** - * Returns a transform stream that removes fenced code from JavaScript files. For non-JavaScript + * Returns a transform stream that removes fenced code from JavaScript/TypeScript files. For non-JavaScript * files, a pass-through stream is returned. * * @param filePath - The file path to transform. * @returns {Transform} The transform stream. */ return function removeFencedCodeTransform(filePath) { - if (!['.js', '.cjs', '.mjs'].includes(path.extname(filePath))) { + if (!['.js', '.cjs', '.mjs', '.ts'].includes(path.extname(filePath))) { return new PassThrough(); }