Description: fix rollup-plugin-typescript2 include patterns for picomatch >= 4
 rollup-plugin-typescript2 ships the default include list
 ['*.ts+(|x)', '**/*.ts+(|x)', '**/*.cts', '**/*.mts'], whose extglob
 alternative '( |x )' is meant to match both .ts and .tsx files. With
 picomatch >= 4 (used by @rollup/pluginutils 5 in this build environment)
 that extglob matches no file at all, so rpt2 skipped every TypeScript
 source and left the raw TypeScript to @rollup/plugin-babel, which is
 configured with the '.ts' extension but has no TypeScript syntax plugin:
 .
   [!] (plugin rpt2) RollupError: /<<PKGBUILDDIR>>/src/purify.ts:
   Unexpected token, expected "from" (3:12)
 .
 List the TypeScript extensions explicitly instead. This is equivalent to
 the default include list and does not change what gets compiled.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-16

--- node-dompurify-3.3.3+dfsg.orig/rollup.config.js
+++ node-dompurify-3.3.3+dfsg/rollup.config.js
@@ -64,6 +64,11 @@ const config = [
     plugins: [
       typescript({
         clean: true,
+        // rpt2's default include relies on the extglob '**/*.ts+(|x)', which
+        // matches no file with picomatch >= 4 (used by @rollup/pluginutils
+        // here). List the TypeScript extensions explicitly instead, this is
+        // equivalent to the default include list.
+        include: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
       }),
       babel({
         babelHelpers: 'bundled',
