const config = {
  dir: 'dist',
  sanitizeFileName: (f) => f.includes('tXml') ? f.toLowerCase() : f,
};

export default {
  input: ['index.js', 'tXml.js', 'transformStream.js'],
  output: [
    {
      ...config,
      format: 'cjs',
      entryFileNames: '[name].js',
    },
    {
      ...config,
      format: 'esm',
      entryFileNames: '[name].mjs',
    },
  ],
  external: [
    'through2'
  ]
};

@@ -25,16 +25,60 @@
 'dist',%0A
+  // Small hack to lowercase tXml in bundle%0A
   saniti

Add comment on sanitizeFileName option