We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47da477 commit 3e45be1Copy full SHA for 3e45be1
src/store.ts
@@ -266,6 +266,7 @@ export function useStore(
266
}
267
268
if (vueVersion.value) files._version = vueVersion.value
269
+ if (typescriptVersion.value) files._tsVersion = typescriptVersion.value
270
return '#' + utoa(JSON.stringify(files))
271
272
const deserialize: ReplStore['deserialize'] = (serializedState: string) => {
@@ -282,7 +283,10 @@ export function useStore(
282
283
for (const filename in saved) {
284
if (filename === '_version') {
285
vueVersion.value = saved[filename]
- } else {
286
+ } else if (filename === '_tsVersion') {
287
+ typescriptVersion.value = saved[filename]
288
+ }
289
+ else {
290
setFile(files.value, filename, saved[filename])
291
292
0 commit comments