Skip to content

Commit d3ee13d

Browse files
committed
fix: save version only when serialize
1 parent 9fd15ba commit d3ee13d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ export function useStore(
255255
delete files[importMapFile]
256256
}
257257
}
258+
if (vueVersion.value) files._version = vueVersion.value
258259
return '#' + utoa(JSON.stringify(files))
259260
}
260261
const deserialize: ReplStore['deserialize'] = (serializedState: string) => {
@@ -275,7 +276,6 @@ export function useStore(
275276
const normalized = stripSrcPrefix(filename)
276277
exported[normalized] = file.code
277278
}
278-
if (vueVersion.value) exported._version = vueVersion.value
279279
return exported
280280
}
281281
const setFiles: ReplStore['setFiles'] = async (

0 commit comments

Comments
 (0)