Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove some unused exports #15365

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/dom/task.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { run_all } from '../../shared/utils.js';

// Fallback for when requestIdleCallback is not available
export const request_idle_callback =
const request_idle_callback =
typeof requestIdleCallback === 'undefined'
? (/** @type {() => void} */ cb) => setTimeout(cb, 1)
: requestIdleCallback;
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/reactivity/deriveds.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function get_derived_parent_effect(derived) {
* @param {Derived} derived
* @returns {T}
*/
export function execute_derived(derived) {
function execute_derived(derived) {
var value;
var prev_active_effect = active_effect;

Expand Down
6 changes: 3 additions & 3 deletions packages/svelte/src/internal/client/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const FLUSH_SYNC = 1;
// Used for DEV time error handling
/** @param {WeakSet<Error>} value */
const handled_errors = new WeakSet();
export let is_throwing_error = false;
let is_throwing_error = false;

// Used for controlling the flush of effects.
let scheduler_mode = FLUSH_MICROTASK;
Expand Down Expand Up @@ -117,7 +117,7 @@ export function set_derived_sources(sources) {
* and until a new dependency is accessed — we track this via `skipped_deps`
* @type {null | Value[]}
*/
export let new_deps = null;
let new_deps = null;

let skipped_deps = 0;

Expand Down Expand Up @@ -994,7 +994,7 @@ export function safe_get(signal) {
* @template T
* @param {() => T} fn
*/
export function capture_signals(fn) {
function capture_signals(fn) {
var previous_captured_signals = captured_signals;
captured_signals = new Set();

Expand Down
3 changes: 0 additions & 3 deletions packages/svelte/tests/snapshot/_config.js

This file was deleted.