Skip to content

Commit

Permalink
workflow(template-explorer): handle debugging with nodeTransforms
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 6, 2021
1 parent 31d6a31 commit 4713578
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/template-explorer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4713578

Please sign in to comment.