summaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index 97bd000..e5803d2 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -193,7 +193,9 @@ const getEvalActions = (
const result = await evalExprInScope(exprs, getEvalActions(node, ctx))
- node.parentNode?.removeChild(node)
+ if (!$element.hasAttribute('data-debug-stack')) {
+ node.parentNode?.removeChild(node)
+ }
return result
},