Skip to content

Commit f24fea1

Browse files
committed
moved to correct constants
1 parent 6af955e commit f24fea1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/svelte/src/compiler/phases/constants.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export const VoidElements = [
2626
'wbr'
2727
];
2828

29-
export const RawTextElements = ['textarea', 'script', 'style', 'title'];
30-
3129
export const PassiveEvents = ['wheel', 'touchstart', 'touchmove', 'touchend', 'touchcancel'];
3230

3331
export const Runes = /** @type {const} */ ([

packages/svelte/src/constants.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export const TRANSITION_IN = 1;
1616
export const TRANSITION_OUT = 1 << 1;
1717
export const TRANSITION_GLOBAL = 1 << 2;
1818

19+
/** List of elements that require raw contents and should not have SSR comments put in them */
20+
export const RawTextElements = ['textarea', 'script', 'style', 'title'];
21+
1922
/** List of Element events that will be delegated */
2023
export const DelegatedEvents = [
2124
'beforeinput',

packages/svelte/src/internal/server/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { is_promise, noop } from '../common.js';
33
import { subscribe_to_store } from '../../store/utils.js';
44
import {
55
DOMBooleanAttributes,
6+
RawTextElements,
67
disallowed_paragraph_contents,
78
interactive_elements,
89
is_tag_valid_with_parent
910
} from '../../constants.js';
1011
import { DEV } from 'esm-env';
1112
import { UNINITIALIZED } from '../client/constants.js';
12-
import { RawTextElements } from '../../compiler/phases/constants.js';
1313

1414
export * from '../client/validate.js';
1515

0 commit comments

Comments
 (0)