Skip to content

Commit 3b25837

Browse files
committed
Add v-deep support
1 parent 36a93fa commit 3b25837

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Utils/StyleBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ public function compile(?DOMElement $styleElement, ?string $path = null): ?strin
8585
$this->scssCompiler = new ScssCompiler();
8686
}
8787
try {
88-
$style = str_replace('::v-deep', '__vue_to_twig_deep_placeholder__', $style);
89-
$style = $this->scssCompiler->compile($this->scssData . ' ' . $style, $path);
90-
$style = str_replace('__vue_to_twig_deep_placeholder__', '::v-deep', $style);
88+
$style = $this->scssCompiler->compileString($this->scssData . ' ' . $style, $path)->getCss();
9189
} catch (SassException $e) {
9290
$style = "\n/* Warning: " . $e->getMessage() . " */\n";
9391
}

0 commit comments

Comments
 (0)