workflow(template-explorer): handle debugging with nodeTransforms

This commit is contained in:
Evan You 2021-12-06 11:51:56 +08:00
parent 31d6a31d97
commit 4713578367

View File

@ -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)