chore: fix template exploerer boot with no storage

This commit is contained in:
Evan You 2022-01-04 17:09:13 +08:00
parent 7007ffb2c7
commit 2b506d7df6

View File

@ -42,7 +42,9 @@ window.init = () => {
)
// functions are not persistable, so delete it in case we sometimes need
// to debug with custom nodeTransforms
if (persistedState.options) {
delete persistedState.options.nodeTransforms
}
ssrMode.value = persistedState.ssr
Object.assign(compilerOptions, persistedState.options)