Fix "maximum call stack size exceeded" error (#5641)

This commit is contained in:
Sam Chen 2022-12-19 21:50:23 +08:00 committed by GitHub
parent 1ac1ed86e9
commit 62580ed078
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix "Maximum call stack size exceeded" error in vite-plugin-head-propagation

View file

@ -27,6 +27,8 @@ export default function configHeadPropagationVitePlugin({
if (parent.id) {
if (seen.has(parent.id)) {
continue;
} else {
seen.add(parent.id);
}
const info = getInfo(parent.id);
if (info?.meta.astro) {