mirror of https://github.com/sveltejs/svelte
fix: don't replace rest props with `$$props` for excluded props (#16898)
Closes #16895pull/16910/head
parent
fc39f2ed0d
commit
303750a124
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: don't replace rest props with `$$props` for excluded props
|
@ -0,0 +1,7 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
async test({ assert, target }) {
|
||||
assert.equal(target.textContent, ' false');
|
||||
}
|
||||
});
|
@ -0,0 +1,4 @@
|
||||
<script>
|
||||
const { name, ...rest } = $props();
|
||||
</script>
|
||||
{rest.name} {'name' in rest}
|
@ -0,0 +1,4 @@
|
||||
<script>
|
||||
import Component from './component.svelte';
|
||||
</script>
|
||||
<Component name='world' />
|
Loading…
Reference in new issue