From f525f9d0dd51d22265a30459b4f27679b5c1d61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Mon, 27 Nov 2023 17:48:06 +0100 Subject: [PATCH] don't use $ as a prefix in derived (#308) ``` [vite-plugin-svelte] /home/damjan/projects/irclogs/svelte/node_modules/.pnpm/svelte-spa-router@3.3.0/node_modules/svelte-spa-router/Router.svelte:77:5 The $ prefix is reserved, and cannot be used for variables and imports file: /home/damjan/projects/irclogs/svelte/node_modules/.pnpm/svelte-spa-router@3.3.0/node_modules/svelte-spa-router/Router.svelte:77:5 error during build: CompileError: The $ prefix is reserved, and cannot be used for variables and imports ``` --- Router.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Router.svelte b/Router.svelte index 92341a2..62c2b57 100644 --- a/Router.svelte +++ b/Router.svelte @@ -74,7 +74,7 @@ export const loc = readable( */ export const location = derived( loc, - ($loc) => $loc.location + (_loc) => _loc.location ) /** @@ -82,7 +82,7 @@ export const location = derived( */ export const querystring = derived( loc, - ($loc) => $loc.querystring + (_loc) => _loc.querystring ) /**