Fix "maximum call stack size exceeded" error (#5641)
This commit is contained in:
parent
1ac1ed86e9
commit
62580ed078
2 changed files with 7 additions and 0 deletions
5
.changeset/itchy-laws-smile.md
Normal file
5
.changeset/itchy-laws-smile.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix "Maximum call stack size exceeded" error in vite-plugin-head-propagation
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue