From d03ecadee800b7a53245b47f5ec060ff9ee3d663 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Wed, 3 Jan 2024 20:52:58 -0500 Subject: [PATCH] formatting --- src/jsx-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsx-loader.js b/src/jsx-loader.js index 4e3e6d8..196f81e 100644 --- a/src/jsx-loader.js +++ b/src/jsx-loader.js @@ -52,7 +52,7 @@ function applyDomDepthSubstitutions(tree, currentDepth = 1, hasShadowRoot = fals if (value.indexOf('__this__.') >= 0) { const root = hasShadowRoot ? '.getRootNode().host' : `${'.parentElement'.repeat(currentDepth)}`; - + node.attrs[attr].value = value.replace(/__this__/g, `this${root}`); } }