From 47135783678db0a5a9c62f3f51da378b3f0ea675 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 6 Dec 2021 11:51:56 +0800 Subject: [PATCH] workflow(template-explorer): handle debugging with nodeTransforms --- packages/template-explorer/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/template-explorer/src/index.ts b/packages/template-explorer/src/index.ts index d083d35ca4e..1e8efdb95d6 100644 --- a/packages/template-explorer/src/index.ts +++ b/packages/template-explorer/src/index.ts @@ -40,6 +40,9 @@ window.init = () => { localStorage.getItem('state') || `{}` ) + // functions are not persistable, so delete it in case we sometimes need + // to debug with custom nodeTransforms + delete persistedState.options.nodeTransforms ssrMode.value = persistedState.ssr Object.assign(compilerOptions, persistedState.options)