diff --git a/packages/svelte/scripts/process-messages/templates/shared-errors.js b/packages/svelte/scripts/process-messages/templates/shared-errors.js index b90994fd96..c72e9f9d5e 100644 --- a/packages/svelte/scripts/process-messages/templates/shared-errors.js +++ b/packages/svelte/scripts/process-messages/templates/shared-errors.js @@ -11,7 +11,6 @@ export function CODE(PARAMETER) { error.name = 'Svelte error'; throw error; } else { - // TODO print a link to the documentation throw new Error(`https://svelte.dev/e/${'CODE'}`); } } diff --git a/packages/svelte/scripts/process-messages/templates/shared-warnings.js b/packages/svelte/scripts/process-messages/templates/shared-warnings.js index 0814475a05..8a9b87b760 100644 --- a/packages/svelte/scripts/process-messages/templates/shared-warnings.js +++ b/packages/svelte/scripts/process-messages/templates/shared-warnings.js @@ -15,7 +15,6 @@ export function CODE(PARAMETER) { normal ); } else { - // TODO print a link to the documentation console.warn(`https://svelte.dev/e/${'CODE'}`); } } diff --git a/packages/svelte/src/internal/shared/errors.js b/packages/svelte/src/internal/shared/errors.js index 9d94667ec2..26d6822cdb 100644 --- a/packages/svelte/src/internal/shared/errors.js +++ b/packages/svelte/src/internal/shared/errors.js @@ -13,7 +13,6 @@ export function invalid_default_snippet() { error.name = 'Svelte error'; throw error; } else { - // TODO print a link to the documentation throw new Error(`https://svelte.dev/e/invalid_default_snippet`); } } @@ -30,7 +29,6 @@ export function lifecycle_outside_component(name) { error.name = 'Svelte error'; throw error; } else { - // TODO print a link to the documentation throw new Error(`https://svelte.dev/e/lifecycle_outside_component`); } } @@ -47,7 +45,6 @@ export function store_invalid_shape(name) { error.name = 'Svelte error'; throw error; } else { - // TODO print a link to the documentation throw new Error(`https://svelte.dev/e/store_invalid_shape`); } } @@ -63,7 +60,6 @@ export function svelte_element_invalid_this_value() { error.name = 'Svelte error'; throw error; } else { - // TODO print a link to the documentation throw new Error(`https://svelte.dev/e/svelte_element_invalid_this_value`); } } \ No newline at end of file diff --git a/packages/svelte/src/internal/shared/warnings.js b/packages/svelte/src/internal/shared/warnings.js index 573c5b1e73..83c58c9b14 100644 --- a/packages/svelte/src/internal/shared/warnings.js +++ b/packages/svelte/src/internal/shared/warnings.js @@ -13,7 +13,6 @@ export function dynamic_void_element_content(tag) { if (DEV) { console.warn(`%c[svelte] dynamic_void_element_content\n%c\`\` is a void element — it cannot have content\nhttps://svelte.dev/e/dynamic_void_element_content`, bold, normal); } else { - // TODO print a link to the documentation console.warn(`https://svelte.dev/e/dynamic_void_element_content`); } } @@ -32,7 +31,6 @@ export function state_snapshot_uncloneable(properties) { ${properties}` : "Value cannot be cloned with `$state.snapshot` — the original value was returned"}\nhttps://svelte.dev/e/state_snapshot_uncloneable`, bold, normal); } else { - // TODO print a link to the documentation console.warn(`https://svelte.dev/e/state_snapshot_uncloneable`); } } \ No newline at end of file