MCPcopy Create free account
hub / github.com/cure53/DOMPurify / transform

Function transform

config/rollup.config.js:27–34  ·  view source on GitHub ↗
(code, id)

Source from the content-addressed store, hash-verified

25const stripNamedTypeExports = () => ({
26 name: 'strip-named-type-exports',
27 transform(code, id) {
28 if (id.endsWith('.d.ts')) {
29 return {
30 code: code.replace(/^export\s+\{\s*type[\s\S]+?^\};\s*$/gm, ''),
31 map: null,
32 };
33 }
34 },
35});
36
37const config = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected