Skip to content

Commit b5d8fde

Browse files
authored
fix: host selector not removed when there is trailing whitespace (#780)
1 parent 0d7baa1 commit b5d8fde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/base/src/util/CSSTransformUtils.js

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const replaceSelectors = (str, selector, replacement) => {
4545
};
4646

4747
const adaptLinePart = (line, tag) => {
48+
line = line.trim();
4849
line = replaceSelectors(line, "::slotted", ``); // first remove all ::slotted() occurrences
4950

5051
// Host selector - replace it

0 commit comments

Comments
 (0)