mirror of https://github.com/sveltejs/svelte
This change fixes an issue in Component.ts where an error occurs when the parent_component parameter is undefined, causing the following error: "Cannot read properties of undefined (reading '$$')". The proposed solution is to add a null check to the parent_component parameter before accessing the $$ property. This change ensures that the code works even when parent_component is not defined, as is the case when importing a module dynamically.pull/8295/head
parent
5a3a1e488a
commit
be0ef10d4f
Loading…
Reference in new issue