aboutsummaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-25 10:02:27 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-25 10:02:27 +0530
commit2f99128e354e5c5334094f072767164c8e4fbd2f (patch)
tree60d563381a9583b8c6f70728780132aa684bca98 /src/index.ts
parente5844314314709dfd2806019aa5d522189129497 (diff)
downloadcss-everything-2f99128e354e5c5334094f072767164c8e4fbd2f.tar.gz
css-everything-2f99128e354e5c5334094f072767164c8e4fbd2f.zip
feat: adds clock example
Diffstat (limited to '')
-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
},