From f962348f76cde9a854359777b2d34c8e23206f67 Mon Sep 17 00:00:00 2001 From: matthewp Date: Mon, 22 May 2023 13:18:18 +0000 Subject: [PATCH] [ci] format --- .../src/core/build/plugins/plugin-hoisted-scripts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts b/packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts index 4c9b48597882..d31e42807c03 100644 --- a/packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts +++ b/packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts @@ -55,18 +55,18 @@ export function vitePluginHoistedScripts( // Find all page entry points and create a map of the entry point to the hashed hoisted script. // This is used when we render so that we can add the script to the head. - Object.entries(bundle).forEach(([ id, output ]) => { + Object.entries(bundle).forEach(([id, output]) => { if ( output.type === 'chunk' && output.facadeModuleId && virtualHoistedEntry(output.facadeModuleId) ) { considerInlining.set(id, output); - output.imports.forEach(imported => importedByOtherScripts.add(imported)); + output.imports.forEach((imported) => importedByOtherScripts.add(imported)); } }); - for (const [ id, output ] of considerInlining.entries()) { + for (const [id, output] of considerInlining.entries()) { const canBeInlined = importedByOtherScripts.has(output.fileName) === false && output.imports.length === 0 && @@ -98,7 +98,7 @@ export function vitePluginHoistedScripts( if (removeFromBundle) { delete bundle[id]; } - }; + } }, }; }