From 9e16860f61ce4ce8ae8c993a2ed59a155503ce55 Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 29 Mar 2023 09:18:25 -0300 Subject: [PATCH] Use debug option for debugDir (#6554) Co-authored-by: Matthew Phillips --- packages/integrations/partytown/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }) => {