Skip to content

Commit 2b506d7

Browse files
committed
chore: fix template exploerer boot with no storage
1 parent 7007ffb commit 2b506d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/template-explorer/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ window.init = () => {
4242
)
4343
// functions are not persistable, so delete it in case we sometimes need
4444
// to debug with custom nodeTransforms
45-
delete persistedState.options.nodeTransforms
45+
if (persistedState.options) {
46+
delete persistedState.options.nodeTransforms
47+
}
4648

4749
ssrMode.value = persistedState.ssr
4850
Object.assign(compilerOptions, persistedState.options)

0 commit comments

Comments
 (0)