diff options
author | 2023-05-22 13:18:18 +0000 | |
---|---|---|
committer | 2023-05-22 13:18:18 +0000 | |
commit | f962348f76cde9a854359777b2d34c8e23206f67 (patch) | |
tree | f2a1aff5d611094572400bde46ae383b3c779013 | |
parent | ba0636240996f9f082d122a8414240196881cb96 (diff) | |
download | astro-f962348f76cde9a854359777b2d34c8e23206f67.tar.gz astro-f962348f76cde9a854359777b2d34c8e23206f67.tar.zst astro-f962348f76cde9a854359777b2d34c8e23206f67.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/build/plugins/plugin-hoisted-scripts.ts | 8 |
1 files 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 4c9b48597..d31e42807 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]; } - }; + } }, }; } |