Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed May 22, 2023
1 parent ba06362 commit f962348
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -98,7 +98,7 @@ export function vitePluginHoistedScripts(
if (removeFromBundle) {
delete bundle[id];
}
};
}
},
};
}
Expand Down

0 comments on commit f962348

Please sign in to comment.