Skip to content

Commit

Permalink
fix(customElementDependencyStyles): Recursively add styles from impor…
Browse files Browse the repository at this point in the history
…ted components. Missing feature, store available styles to avoid dupes. close vuejs#4662
  • Loading branch information
raffobaffo committed Sep 28, 2021
1 parent dd13620 commit 2ee4ec7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/runtime-dom/src/apiCustomElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ export class VueElement extends BaseClass {
...this._getChildrenComponentsStyles(nestedComponent)
]
}
// Should have a method that adds styles only if not existing
return nestedComponent.styles
? [...aggregatedStyles, ...nestedComponent.styles]
: aggregatedStyles
Expand Down

0 comments on commit 2ee4ec7

Please sign in to comment.