Skip to content

Commit

Permalink
fix: improve SvelteKit section (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa authored Feb 4, 2024
1 parent fd526cc commit 759fc6b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ Adopting [this strategy](https://partytown.builder.io/copy-library-files#vite) f

```js
// vite.config.js

import { join } from 'path';
import { sveltekit } from '@sveltejs/kit/vite';
import { partytownVite } from '@builder.io/partytown/utils';

/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit(), partytownVite()],
plugins: [
sveltekit(),
partytownVite({
dest: join(__dirname, 'dist', '~partytown'),
}),
],
};

export default config;
Expand Down

0 comments on commit 759fc6b

Please sign in to comment.