mirror of https://github.com/sveltejs/svelte
fix: correctly analyze `<object.property>` components (#16711)
* fix: correctly analyze `<object.property>` components * add test --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/16744/head
parent
f09f25e6a3
commit
2743cd0fe5
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: correctly analyze `<object.property>` components
|
@ -0,0 +1 @@
|
|||||||
|
<h1>Hello world!</h1>
|
@ -0,0 +1,5 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: '<h1>Hello world!</h1>'
|
||||||
|
});
|
@ -0,0 +1,13 @@
|
|||||||
|
<script>
|
||||||
|
import Component from './Component.svelte';
|
||||||
|
|
||||||
|
const object = {
|
||||||
|
property: Component
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#snippet not_hoisted()}
|
||||||
|
<object.property />
|
||||||
|
{/snippet}
|
||||||
|
|
||||||
|
{@render not_hoisted()}
|
Loading…
Reference in new issue