diff --git a/packages/integrations/partytown/src/index.ts b/packages/integrations/partytown/src/index.ts index 097305c37..95841a06c 100644 --- a/packages/integrations/partytown/src/index.ts +++ b/packages/integrations/partytown/src/index.ts @@ -53,7 +53,7 @@ export default function createPlugin(options: PartytownOptions): AstroIntegratio }, 'astro:build:done': async ({ dir }) => { await copyLibFiles(fileURLToPath(new URL('~partytown', dir)), { - debugDir: false, + debugDir: options?.config?.debug ?? false, }); }, 'astro:build:ssr': async ({ manifest }) => {