Skip to content

Commit a35f997

Browse files
committed
merge main
2 parents b2c0b79 + 4ef53a7 commit a35f997

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

packages/svelte/knip.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
33
"entry": [
4-
"src/*/index.js",
5-
"src/index-client.ts",
6-
"src/index-server.ts",
7-
"src/index.d.ts",
84
"tests/**/*.js",
95
"tests/**/*.ts",
106
"!tests/**/*.svelte",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import { validate_identifier_name } from './2-analyze/visitors/shared/utils.js';
1818

1919
const UNKNOWN = Symbol('unknown');
2020
/** Includes `BigInt` */
21-
export const NUMBER = Symbol('number');
22-
export const STRING = Symbol('string');
23-
export const FUNCTION = Symbol('string');
21+
const NUMBER = Symbol('number');
22+
const STRING = Symbol('string');
23+
const FUNCTION = Symbol('string');
2424

2525
/** @type {Record<string, [type: NUMBER | STRING | UNKNOWN, fn?: Function]>} */
2626
const globals = {

packages/svelte/src/internal/server/abort-signal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { STALE_REACTION } from '#client/constants';
22

33
/** @type {AbortController | null} */
4-
export let controller = null;
4+
let controller = null;
55

66
export function abort() {
77
controller?.abort(STALE_REACTION);

packages/svelte/src/internal/shared/validate.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/** @import { TemplateNode } from '#client' */
2-
/** @import { Getters } from '#shared' */
31
import { is_void } from '../../utils.js';
42
import * as w from './warnings.js';
53
import * as e from './errors.js';

packages/svelte/src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export function is_mathml(name) {
428428
return MATHML_ELEMENTS.includes(name);
429429
}
430430

431-
export const STATE_CREATION_RUNES = /** @type {const} */ ([
431+
const STATE_CREATION_RUNES = /** @type {const} */ ([
432432
'$state',
433433
'$state.raw',
434434
'$derived',

0 commit comments

Comments
 (0)