Skip to content

Commit

Permalink
don't use $ as a prefix in derived (#308)
Browse files Browse the repository at this point in the history
```
[vite-plugin-svelte] /home/damjan/projects/irclogs/svelte/node_modules/.pnpm/[email protected]/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/[email protected]/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
```
  • Loading branch information
gdamjan authored Nov 27, 2023
1 parent 45fc0cc commit f525f9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Router.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export const loc = readable(
*/
export const location = derived(
loc,
($loc) => $loc.location
(_loc) => _loc.location
)
/**
* Readable store that returns the current querystring
*/
export const querystring = derived(
loc,
($loc) => $loc.querystring
(_loc) => _loc.querystring
)
/**
Expand Down

0 comments on commit f525f9d

Please sign in to comment.