svelte-preprocess-budoux
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

svelte-preprocess-budoux

npm version npm downloads

JSR JSR

Screenshot 2024-07-11 at 11 39 44

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' });

Readme

Keywords

none

Package Sidebar

Install

npm i svelte-preprocess-budoux

Weekly Downloads

13

Version

1.1.2

License

MIT

Unpacked Size

22.3 kB

Total Files

22

Last publish

Collaborators

  • ryoppippi