Skip to content

Commit 037571a

Browse files
authored
Merge pull request #1475 from sass/configuration-builtin
Add specs for using core module in configured module
2 parents 2c28463 + 0bb1672 commit 037571a

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

spec/core_functions/meta/load_css/with.hrx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,25 @@ c {
261261
d: configured;
262262
}
263263

264+
<===>
265+
================================================================================
266+
<===> core_module/indirect/input.scss
267+
// Regression test for sass/dart-sass#838.
268+
@use "sass:meta";
269+
@include meta.load-css("other", $with: (c: e));
270+
271+
<===> core_module/indirect/_other.scss
272+
@use "sass:color";
273+
274+
$c: d !default;
275+
276+
a {b: $c}
277+
278+
<===> core_module/indirect/output.css
279+
a {
280+
b: e;
281+
}
282+
264283
<===>
265284
================================================================================
266285
<===> multi_load/README.md

spec/directives/use/with.hrx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,24 @@ a {
328328
b: e;
329329
}
330330

331+
<===>
332+
================================================================================
333+
<===> core_module/indirect/input.scss
334+
// Regression test for sass/dart-sass#838.
335+
@use "other" with ($c: e);
336+
337+
a {b: other.$c}
338+
339+
<===> core_module/indirect/_other.scss
340+
@use "sass:color";
341+
342+
$c: d !default;
343+
344+
<===> core_module/indirect/output.css
345+
a {
346+
b: e;
347+
}
348+
331349
<===>
332350
================================================================================
333351
<===> multi_load/README.md

0 commit comments

Comments
 (0)