(svelteSource: string, scripts: readonly ScannedScriptTag[], options?: BlankVerbatimContentOptions | undefined): string import {blankVerbatimContent} from 'svelte-docinfo/svelte-scripts.js'; Copy svelteSource with the content of its script and style tags
overwritten by spaces, newlines kept, so every offset and line still means
what it meant. Script content needn't be JS that Svelte's parser accepts,
and a nested tag's content would be read as template.
A style tag that opens inside a script tag is text in that script, and the
search for styles resumes after the script. A leading byte-order mark
becomes a space too: Svelte's parse strips one, which would shift every
offset it reports.
svelteSource
the full Svelte source code
stringscripts
the source's scanned script tags (scanScriptTags), nested ones included
readonly ScannedScriptTag[]options?
which style tags keep their content
returns
string the source with the verbatim content blanked, the same length