UNPKG

svelte-preprocess

Version:

A Svelte preprocessor wrapper with baked-in support for commonly used preprocessors

10 lines (9 loc) 556 B
import type { Transformer, Preprocessor } from '../types'; /** Create a tag matching regexp. */ export declare function createTagRegex(tagName: string, flags?: string): RegExp; /** Transform an attribute string into a key-value object */ export declare function parseAttributes(attributesStr: string): Record<string, any>; export declare function transformMarkup({ content, filename }: { content: string; filename?: string; }, transformer: Preprocessor | Transformer<unknown>, options?: Record<string, any>): Promise<import("../types").Processed>;