mirror of
https://github.com/withastro/astro.git
synced 2025-03-31 23:31:30 -05:00
[ci] format
This commit is contained in:
parent
cdf8ce0627
commit
87ede76b3b
1 changed files with 1 additions and 3 deletions
|
@ -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
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue