mirror of https://github.com/sveltejs/svelte
Merge pull request #3380 from Conduitry/gh-3185
generate valid code when spreading literal into propspull/3394/head
commit
f26a15fd98
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let foo;
|
||||
</script>
|
||||
|
||||
<p>foo: {foo}</p>
|
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
html: `
|
||||
<div><p>foo: bar</p></div>
|
||||
`
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Widget from './Widget.svelte';
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<Widget {...{ foo: 'bar' }}/>
|
||||
</div>
|
Loading…
Reference in new issue