Skip to content

Commit 3806a8e

Browse files
authored
fix: treeshake internal storage.get helper (#13998)
1 parent 20eb3f0 commit 3806a8e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/heavy-ants-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: treeshake internal `storage.get` helper

packages/kit/src/runtime/client/session-storage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @param {string} key
44
* @param {(value: string) => any} parse
55
*/
6+
/*@__NO_SIDE_EFFECTS__*/
67
export function get(key, parse = JSON.parse) {
78
try {
89
return parse(sessionStorage[key]);

0 commit comments

Comments
 (0)