summaryrefslogtreecommitdiff
path: root/packages/astro/src/vite-plugin-head-propagation/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/src/vite-plugin-head-propagation/index.ts')
-rw-r--r--packages/astro/src/vite-plugin-head-propagation/index.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro/src/vite-plugin-head-propagation/index.ts b/packages/astro/src/vite-plugin-head-propagation/index.ts
index 93f5f5e79..b17d5f382 100644
--- a/packages/astro/src/vite-plugin-head-propagation/index.ts
+++ b/packages/astro/src/vite-plugin-head-propagation/index.ts
@@ -92,11 +92,11 @@ export function astroHeadPropagationBuildPlugin(
for (const [info] of walkParentInfos(id, this)) {
appendPropagation(info);
}
- }
- const info = this.getModuleInfo(id);
- if (info) {
- appendPropagation(info);
+ const info = this.getModuleInfo(id);
+ if (info) {
+ appendPropagation(info);
+ }
}
}
}