mirror of https://github.com/sveltejs/svelte
Merge pull request #2029 from sveltejs/component-name-conflict-again
deconflict with globals referenced in module contextpull/2030/head
commit
0172d84850
@ -0,0 +1,9 @@
|
|||||||
|
export default {
|
||||||
|
compileOptions: {
|
||||||
|
name: 'Set'
|
||||||
|
},
|
||||||
|
|
||||||
|
preserveIdentifiers: true,
|
||||||
|
|
||||||
|
html: `<p>true</p>`
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
<script context="module">
|
||||||
|
let set = new Set(['x']);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>{set.has('x')}</p>
|
Loading…
Reference in new issue