Skip to content

Commit 473ff26

Browse files
author
alexander.bachmann
committed
improved scoped import test
1 parent d522edd commit 473ff26

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

src/Compiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ public function setBanner($strings): void
166166
}
167167

168168
/**
169-
* @param string $path
169+
* @param string|null $path
170170
*/
171-
public function setRelativePath(string $path): void
171+
public function setRelativePath(?string $path): void
172172
{
173173
$this->relativePath = $path;
174174
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$red: #AA0000;
2+
$blue: #0000FF;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<style>.foo[data-v-ebb65c10cf7f8655fefc2dd8f1dcbde2] { color: blue;}.foo__bar[data-v-ebb65c10cf7f8655fefc2dd8f1dcbde2] { color: #FF0000;}</style>
2-
<div data-v-ebb65c10cf7f8655fefc2dd8f1dcbde2 {{ dataScopedStyleAttribute|default('') }} class="{{ class|default('') }}" style="{{ style|default('') }}">
3-
<div class="foo__bar" data-v-ebb65c10cf7f8655fefc2dd8f1dcbde2>
4-
baz
1+
<style>.foo[data-v-9fa7240ea1aa9cadbe43399f0c2c935d] { color: blue;}.foo__bar[data-v-9fa7240ea1aa9cadbe43399f0c2c935d] { color: #AA0000;}</style>
2+
<div data-v-9fa7240ea1aa9cadbe43399f0c2c935d {{ dataScopedStyleAttribute|default('') }} class="{{ class|default('') }}" style="{{ style|default('') }}">
3+
<div class="foo__bar" data-v-9fa7240ea1aa9cadbe43399f0c2c935d>
4+
baz
55
</div>
66
</div>

tests/fixtures/style-block-scoped-import/style-block-scss-scoped-import.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
</template>
88

99
<style lang="scss" scoped>
10-
@import "import";
10+
@import "imports/import";
11+
@import "imports/subfolder/import2";
1112
.foo {
1213
color: blue;
1314
&__bar {

0 commit comments

Comments
 (0)