svelte_preprocess_fuz_code.ts view source
PreprocessFuzCodeOptions import type {PreprocessFuzCodeOptions} from '@fuzdev/fuz_code/svelte_preprocess_fuz_code.js'; Options for svelte_preprocess_fuz_code.
exclude?
File patterns to exclude.
type Array<string | RegExp>
syntax_styler?
Custom SyntaxStyler instance.
type SyntaxStyler
default
syntax_styler_globalcache?
Enable in-memory caching.
type boolean
default
truecomponent_imports?
Import sources that resolve to the Code component.
Used to verify that <Code> in templates actually refers to Code.svelte.
type Array<string>
default
['@fuzdev/fuz_code/Code.svelte']on_error?
How to handle errors.
type 'log' | 'throw'
default
'throw' in CI, 'log' otherwise