svelte-preprocess-budoux

Installation

npm install -D svelte-preprocess-budoux budoux

# or

npx jsr install -D @ryoppippi/svelte-preprocess-budoux

Configuration

You can choose svelte prerocessor or sveltekit hooks

Preprocessor

svelte.config.js

import { budouxPreprocess } from 'svelte-preprocess-budoux';

const config = {
    preprocess: [
        vitePreprocess(),
        budouxPreprocess({ language: 'ja' }),
    ],
    // ... other svelte options
};

export default config;

SvelteKit hooks

hooks.server.js

import { budouxHandle } from 'svelte-preprocess-budoux';

export const handle = budouxHandle({ language: 'ja' });

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes