Use debug option for debugDir (#6554)

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
This commit is contained in:
Isaac 2023-03-29 09:18:25 -03:00 committed by GitHub
parent fc71c3f188
commit 9e16860f61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }) => {