svelte-preprocess plugin for Budoux
npm install svelte-preprocess-budoux



!Screenshot 2024-07-11 at 11 39 44
``bash
npm install -D svelte-preprocess-budoux budoux
npx jsr install -D @ryoppippi/svelte-preprocess-budoux
`
You can choose svelte prerocessor or sveltekit hooks
svelte.config.js
`js
import { budouxPreprocess } from 'svelte-preprocess-budoux';
const config = {
preprocess: [
vitePreprocess(),
budouxPreprocess({ language: 'ja' }),
],
// ... other svelte options
};
export default config;
`
hooks.server.js
`js
import { budouxHandle } from 'svelte-preprocess-budoux';
export const handle = budouxHandle({ language: 'ja' });
``