@torpor/view 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/compile.js CHANGED
@@ -3640,6 +3640,11 @@ function parseStyleAttribute(status) {
3640
3640
  };
3641
3641
  }
3642
3642
 
3643
+ // src/compile/types/nodes/isComponentNode.ts
3644
+ function isComponentNode(node) {
3645
+ return node.type === "component";
3646
+ }
3647
+
3643
3648
  // src/compile/types/nodes/isParentNode.ts
3644
3649
  function isParentNode(node) {
3645
3650
  return "children" in node;
@@ -3658,7 +3663,7 @@ function scopeStyles(status) {
3658
3663
  }
3659
3664
  }
3660
3665
  function scopeStylesOnNode(node, selectors) {
3661
- if (isElementNode(node)) {
3666
+ if (isElementNode(node) || isComponentNode(node)) {
3662
3667
  let scopeStyles2 = selectors.includes(node.tagName);
3663
3668
  if (!scopeStyles2) {
3664
3669
  for (let a of node.attributes) {