1<===> README.md 2Most changes here should also be reflected in directives/use/with.hrx and 3directives/forward/with.hrx. 4 5<===> empty/input.scss 6@use "sass:meta"; 7@include meta.load-css("other", $with: ()); 8 9<===> empty/_other.scss 10a {b: c} 11 12<===> empty/output.css 13a { 14 b: c; 15} 16 17<===> 18================================================================================ 19<===> single/input.scss 20@use "sass:meta"; 21@include meta.load-css("other", $with: (a: configured)); 22 23<===> single/_other.scss 24$a: original !default; 25b {c: $a} 26 27<===> single/output.css 28b { 29 c: configured; 30} 31 32<===> 33================================================================================ 34<===> null/input.scss 35@use "sass:meta"; 36@include meta.load-css("other", $with: (a: null)); 37 38<===> null/_other.scss 39$a: original !default; 40b {c: $a} 41 42<===> null/output.css 43b { 44 c: original; 45} 46 47<===> 48================================================================================ 49<===> dash_insensitive/input.scss 50@use "sass:meta"; 51@include meta.load-css("other", $with: (a_b: configured)); 52 53<===> dash_insensitive/_other.scss 54$a-b: original !default; 55b {c: $a-b} 56 57<===> dash_insensitive/output.css 58b { 59 c: configured; 60} 61 62<===> 63================================================================================ 64<===> multiple/input.scss 65@use "sass:meta"; 66@include meta.load-css("other", $with: ( 67 a: configured a, 68 b: configured b, 69 c: configured c 70)); 71 72<===> multiple/_other.scss 73$a: original a !default; 74$b: original b !default; 75$c: original c !default; 76 77d { 78 a: $a; 79 b: $b; 80 c: $c; 81} 82 83<===> multiple/output.css 84d { 85 a: configured a; 86 b: configured b; 87 c: configured c; 88} 89 90<===> 91================================================================================ 92<===> some_unconfigured/input.scss 93@use "sass:meta"; 94@include meta.load-css("other", $with: (a: configured a)); 95 96<===> some_unconfigured/_other.scss 97$a: original a !default; 98$b: original b !default; 99 100c { 101 a: $a; 102 b: $b; 103} 104 105<===> some_unconfigured/output.css 106c { 107 a: configured a; 108 b: original b; 109} 110 111<===> 112================================================================================ 113<===> doesnt_run_default/input.scss 114@use "sass:meta"; 115@include meta.load-css("other", $with: (a: configured)); 116 117<===> doesnt_run_default/_other.scss 118// This will throw an error if it's evaluated, but it shouldn't be because `$a` 119// already has a value. 120$a: 1px + 1em !default; 121b {c: $a} 122 123<===> doesnt_run_default/output.css 124b { 125 c: configured; 126} 127 128<===> 129================================================================================ 130<===> variable_exists/input.scss 131@use "sass:meta"; 132@include meta.load-css("other", $with: (a: configured)); 133 134<===> variable_exists/_other.scss 135$before-declaration: variable-exists(a); 136$a: original !default; 137b { 138 before-declaration: $before-declaration; 139 after-declaration: variable-exists(a); 140} 141 142<===> variable_exists/output.css 143b { 144 before-declaration: false; 145 after-declaration: true; 146} 147 148<===> 149================================================================================ 150<===> through_import/direct/input.scss 151@use "sass:meta"; 152@include meta.load-css("loaded", $with: (a: configured)); 153 154<===> through_import/direct/_loaded.scss 155@import "imported"; 156 157<===> through_import/direct/_imported.scss 158$a: original !default; 159b {c: $a} 160 161<===> through_import/direct/output.css 162b { 163 c: configured; 164} 165 166<===> 167================================================================================ 168<===> through_import/transitive/input.scss 169@use "sass:meta"; 170@include meta.load-css("loaded", $with: (a: configured)); 171 172<===> through_import/transitive/_loaded.scss 173@import "midstream"; 174 175<===> through_import/transitive/_midstream.scss 176@import "upstream"; 177 178<===> through_import/transitive/_upstream.scss 179$a: original !default; 180b {c: $a} 181 182<===> through_import/transitive/output.css 183b { 184 c: configured; 185} 186 187<===> 188================================================================================ 189<===> through_forward/bare/input.scss 190@use "sass:meta"; 191@include meta.load-css("loaded", $with: (a: configured)); 192 193<===> through_forward/bare/_loaded.scss 194@forward "forwarded"; 195 196<===> through_forward/bare/_forwarded.scss 197$a: original !default; 198b {c: $a} 199 200<===> through_forward/bare/output.css 201b { 202 c: configured; 203} 204 205<===> 206================================================================================ 207<===> through_forward/transitive/input.scss 208@use "sass:meta"; 209@include meta.load-css("loaded", $with: (a: configured)); 210 211<===> through_forward/transitive/_loaded.scss 212@forward "midstream"; 213 214<===> through_forward/transitive/_midstream.scss 215@forward "upstream"; 216 217<===> through_forward/transitive/_upstream.scss 218$a: original !default; 219b {c: $a} 220 221<===> through_forward/transitive/output.css 222b { 223 c: configured; 224} 225 226<===> 227================================================================================ 228<===> through_forward/with/default/input.scss 229@use "sass:meta"; 230@include meta.load-css("loaded", $with: (a: from input)); 231 232<===> through_forward/with/default/_loaded.scss 233@forward "forwarded" with ($a: from loaded !default); 234 235<===> through_forward/with/default/_forwarded.scss 236$a: from forwarded !default; 237b {c: $a} 238 239<===> through_forward/with/default/output.css 240b { 241 c: from input; 242} 243 244<===> 245================================================================================ 246<===> through_forward/with/null/input.scss 247@use "sass:meta"; 248@include meta.load-css("loaded", $with: (a: null)); 249 250<===> through_forward/with/null/_loaded.scss 251@forward "forwarded" with ($a: from loaded !default); 252 253<===> through_forward/with/null/_forwarded.scss 254$a: from forwarded !default; 255b {c: $a} 256 257<===> through_forward/with/null/output.css 258b { 259 c: from loaded; 260} 261 262<===> 263================================================================================ 264<===> through_forward/with/unconfigured/input.scss 265@use "sass:meta"; 266@include meta.load-css("loaded", $with: (a: from input)); 267 268<===> through_forward/with/unconfigured/_loaded.scss 269@forward "forwarded" with ($b: from loaded); 270 271<===> through_forward/with/unconfigured/_forwarded.scss 272$a: from forwarded !default; 273$b: from forwarded !default; 274c { 275 a: $a; 276 b: $b; 277} 278 279<===> through_forward/with/unconfigured/output.css 280c { 281 a: from input; 282 b: from loaded; 283} 284 285<===> 286================================================================================ 287<===> through_forward/show/input.scss 288@use "sass:meta"; 289@include meta.load-css("loaded", $with: (a: configured)); 290 291<===> through_forward/show/_loaded.scss 292@forward "forwarded" show $a; 293 294<===> through_forward/show/_forwarded.scss 295$a: original !default; 296b {c: $a} 297 298<===> through_forward/show/output.css 299b { 300 c: configured; 301} 302 303<===> 304================================================================================ 305<===> through_forward/hide/input.scss 306@use "sass:meta"; 307@include meta.load-css("loaded", $with: (a: configured)); 308 309<===> through_forward/hide/_loaded.scss 310@forward "forwarded" hide $b; 311 312<===> through_forward/hide/_forwarded.scss 313$a: original !default; 314b {c: $a} 315 316<===> through_forward/hide/output.css 317b { 318 c: configured; 319} 320 321<===> 322================================================================================ 323<===> through_forward/as/input.scss 324@use "sass:meta"; 325@include meta.load-css("loaded", $with: (b-a: configured)); 326 327<===> through_forward/as/_loaded.scss 328@forward "forwarded" as b-*; 329 330<===> through_forward/as/_forwarded.scss 331$a: original !default; 332c {d: $a} 333 334<===> through_forward/as/output.css 335c { 336 d: configured; 337} 338 339<===> 340================================================================================ 341<===> core_module/indirect/input.scss 342// Regression test for sass/dart-sass#838. 343@use "sass:meta"; 344@include meta.load-css("other", $with: (c: e)); 345 346<===> core_module/indirect/_other.scss 347@use "sass:color"; 348 349$c: d !default; 350 351a {b: $c} 352 353<===> core_module/indirect/output.css 354a { 355 b: e; 356} 357 358<===> 359================================================================================ 360<===> multi_load/README.md 361If a module is first loaded with a configuration, future loads with no 362configuration will use the configured module. 363 364<===> 365================================================================================ 366<===> multi_load/use/input.scss 367@use "sass:meta"; 368@include meta.load-css("upstream", $with: (a: configured)); 369 370// We have to load this dynamically, because we can't have a `@use` after an 371// `@include`. 372@include meta.load-css("midstream"); 373 374<===> multi_load/use/_midstream.scss 375@use "upstream"; 376b {c: upstream.$a} 377 378<===> multi_load/use/_upstream.scss 379$a: original !default; 380 381<===> multi_load/use/output.css 382b { 383 c: configured; 384} 385 386<===> 387================================================================================ 388<===> multi_load/forward/input.scss 389// This indirection is necessary so that we can execute `meta.load-css()` before 390// we begin loading `used`. 391@use "loads"; 392@use "midstream"; 393 394b {c: midstream.$a} 395 396<===> multi_load/forward/_loads.scss 397@use "sass:meta"; 398@include meta.load-css("upstream", $with: (a: configured)); 399 400<===> multi_load/forward/_midstream.scss 401@forward "upstream"; 402 403<===> multi_load/forward/_upstream.scss 404$a: original !default; 405 406<===> multi_load/forward/output.css 407b { 408 c: configured; 409} 410 411<===> 412================================================================================ 413<===> multi_load/empty/input.scss 414@use "sass:meta"; 415@include meta.load-css("upstream", $with: (a: configured)); 416 417// An empty configuration map counts as no configuration. 418@include meta.load-css("midstream", $with: ()); 419 420<===> multi_load/empty/_midstream.scss 421@use "upstream"; 422b {c: upstream.$a} 423 424<===> multi_load/empty/_upstream.scss 425$a: original !default; 426 427<===> multi_load/empty/output.css 428b { 429 c: configured; 430} 431