From: Evan You Date: Tue, 4 Jan 2022 09:09:13 +0000 (+0800) Subject: chore: fix template exploerer boot with no storage X-Git-Tag: v3.2.27~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b506d7df6c9e2e03726e034c85e9be8c1324a13;p=thirdparty%2Fvuejs%2Fcore.git chore: fix template exploerer boot with no storage --- diff --git a/packages/template-explorer/src/index.ts b/packages/template-explorer/src/index.ts index 1e8efdb95d..5efe07eb83 100644 --- a/packages/template-explorer/src/index.ts +++ b/packages/template-explorer/src/index.ts @@ -42,7 +42,9 @@ window.init = () => { ) // functions are not persistable, so delete it in case we sometimes need // to debug with custom nodeTransforms - delete persistedState.options.nodeTransforms + if (persistedState.options) { + delete persistedState.options.nodeTransforms + } ssrMode.value = persistedState.ssr Object.assign(compilerOptions, persistedState.options)