mirror of https://github.com/sveltejs/svelte
feat: treat tag with `.` as a component, even if lowercase (#12798)
* feat: treat tag with `.` as a component, even if lowercase * changeset * consistency * note breaking change * oops, wrong placepull/12805/head
parent
09db33979d
commit
5094cb9e89
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
feat: treat tag with `.` as a component, even if lowercase
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: '<h1>hello</h1>'
|
||||
});
|
@ -0,0 +1 @@
|
||||
<h1>hello</h1>
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import child from './child.svelte';
|
||||
|
||||
const components = { child };
|
||||
</script>
|
||||
|
||||
<components.child />
|
Loading…
Reference in new issue