mirror of https://github.com/sveltejs/svelte
[fix] handle AssignmentPattern with ObjectPattern in rewrite_identifier (#6715)
parent
7e156c014e
commit
f1f7d90240
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
html: `
|
||||
<div>hello undefined</div>
|
||||
<div>hello bar2</div>
|
||||
`
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
<script>
|
||||
const hoge = {};
|
||||
const { foo: { bar } = {} } = hoge;
|
||||
|
||||
|
||||
const hoge2 = {};
|
||||
const { foo2: { bar2 } = { bar2: "bar2" } } = hoge2;
|
||||
</script>
|
||||
|
||||
<div>hello {bar}</div>
|
||||
<div>hello {bar2}</div>
|
Loading…
Reference in new issue