mirror of https://github.com/sveltejs/svelte
chore: simpler `<svelte:element>` hydration (#11773)
* chore: simpler <svelte:element> hydration * avoid hydrate_anchor inside <svelte:element> * tweak * changesetpull/11950/head
parent
6655f2c5d2
commit
123b5cbecb
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
feat: simpler `<svelte:element> hydration
|
@ -1,5 +1,11 @@
|
||||
import { HYDRATION_END, HYDRATION_END_ELSE, HYDRATION_START } from '../../constants.js';
|
||||
import {
|
||||
HYDRATION_ANCHOR,
|
||||
HYDRATION_END,
|
||||
HYDRATION_END_ELSE,
|
||||
HYDRATION_START
|
||||
} from '../../constants.js';
|
||||
|
||||
export const BLOCK_OPEN = `<!--${HYDRATION_START}-->`;
|
||||
export const BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;
|
||||
export const BLOCK_ANCHOR = `<!--${HYDRATION_ANCHOR}-->`;
|
||||
export const BLOCK_CLOSE_ELSE = `<!--${HYDRATION_END_ELSE}-->`;
|
||||
|
@ -1,16 +1,13 @@
|
||||
<!--[-->
|
||||
<!--[-->
|
||||
<title>lorem</title>
|
||||
<!--]-->
|
||||
<!--[-->
|
||||
<!---->
|
||||
<style>
|
||||
.ipsum {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
<!--]-->
|
||||
<!--[-->
|
||||
<!---->
|
||||
<script>
|
||||
console.log(true);
|
||||
</script>
|
||||
<!--]--><!--]-->
|
||||
<!----><!--]-->
|
||||
|
Loading…
Reference in new issue