Skip to content

Commit 4ef53a7

Browse files
authored
chore: tidy up some stuff (#16357)
* chore: tidy up some stuff * shut up dumbass
1 parent 61f7565 commit 4ef53a7

File tree

6 files changed

+6
-19
lines changed

6 files changed

+6
-19
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/client/context.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
/** @import { ComponentContext, DevStackEntry } from '#client' */
2-
32
import { DEV } from 'esm-env';
43
import * as e from './errors.js';
54
import { source } from './reactivity/sources.js';
6-
import {
7-
active_effect,
8-
active_reaction,
9-
set_active_effect,
10-
set_active_reaction
11-
} from './runtime.js';
12-
import { create_user_effect, teardown } from './reactivity/effects.js';
5+
import { create_user_effect } from './reactivity/effects.js';
136
import { legacy_mode_flag } from '../flags/index.js';
147
import { FILENAME } from '../../constants.js';
158

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)