0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

[ci] format

This commit is contained in:
Martin Trapp 2024-01-11 18:28:28 +00:00 committed by astrobot-houston
parent cdf8ce0627
commit 87ede76b3b

View file

@ -21,7 +21,7 @@ export default function createPlugin(options?: PartytownOptions): AstroIntegrati
let partytownSnippetHtml: string;
const partytownEntrypoint = resolve('@builder.io/partytown/package.json');
const partytownLibDirectory = path.resolve(partytownEntrypoint, '../lib');
const SELF_DESTRUCT_ON_VIEW_TRANSITION = `;((d,s)=>(s=d.currentScript,d.addEventListener('astro:before-swap',()=>s.remove(),{once:true})))(document);`
const SELF_DESTRUCT_ON_VIEW_TRANSITION = `;((d,s)=>(s=d.currentScript,d.addEventListener('astro:before-swap',()=>s.remove(),{once:true})))(document);`;
return {
name: '@astrojs/partytown',
hooks: {
@ -62,6 +62,4 @@ export default function createPlugin(options?: PartytownOptions): AstroIntegrati
},
},
};
}