UNPKG

better-svelte-email

Version:

Svelte email renderer with Tailwind support

26 lines (25 loc) 813 B
import type { PreprocessorGroup } from 'svelte/compiler'; import type { PreprocessorOptions, ComponentTransform } from './types.js'; /** * Svelte 5 preprocessor for transforming Tailwind classes in email components * * @example * ```javascript * // svelte.config.js * import { betterSvelteEmailPreprocessor } from 'better-svelte-email/preprocessor'; * * export default { * preprocess: [ * vitePreprocess(), * betterSvelteEmailPreprocessor({ * pathToEmailFolder: '/src/lib/emails', * tailwindConfig: { ... } * }) * ] * }; * ``` * * Reference: https://svelte.dev/docs/svelte/svelte-compiler#preprocess */ export declare function betterSvelteEmailPreprocessor(options?: PreprocessorOptions): PreprocessorGroup; export type { PreprocessorOptions, ComponentTransform };