From 40cc498c0689b17af6dcb713293ee3b8e7d18e1e Mon Sep 17 00:00:00 2001 From: gioboa Date: Sun, 4 Feb 2024 22:48:38 +0100 Subject: [PATCH] fix: improve SvelteKit section --- docs/sveltekit.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/sveltekit.md b/docs/sveltekit.md index d8cb1916..dac41049 100644 --- a/docs/sveltekit.md +++ b/docs/sveltekit.md @@ -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;