@@ -4414,6 +4414,126 @@ Object {
4414
4414
4415
4415
exports[`"modules" option should work js template with "namedExport" option: warnings 1`] = `Array []`;
4416
4416
4417
+ exports[`"modules" option should work when the "auto" is not specified, but specified other modules options: errors 1`] = `Array []`;
4418
+
4419
+ exports[`"modules" option should work when the "auto" is not specified, but specified other modules options: modules-module 1`] = `
4420
+ "// Imports
4421
+ import ___CSS_LOADER_API_IMPORT___ from \\"../../../../src/runtime/api.js\\";
4422
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
4423
+ // Module
4424
+ ___CSS_LOADER_EXPORT___.push([module.id, \\".modules-mode-style-modules__class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]);
4425
+ // Exports
4426
+ ___CSS_LOADER_EXPORT___.locals = {
4427
+ \\"class\\": \\"modules-mode-style-modules__class\\"
4428
+ };
4429
+ export default ___CSS_LOADER_EXPORT___;
4430
+ "
4431
+ `;
4432
+
4433
+ exports[`"modules" option should work when the "auto" is not specified, but specified other modules options: not-modules-module 1`] = `
4434
+ "// Imports
4435
+ import ___CSS_LOADER_API_IMPORT___ from \\"../../../../src/runtime/api.js\\";
4436
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
4437
+ // Module
4438
+ ___CSS_LOADER_EXPORT___.push([module.id, \\".modules-mode-no-modules__class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]);
4439
+ // Exports
4440
+ ___CSS_LOADER_EXPORT___.locals = {
4441
+ \\"class\\": \\"modules-mode-no-modules__class\\"
4442
+ };
4443
+ export default ___CSS_LOADER_EXPORT___;
4444
+ "
4445
+ `;
4446
+
4447
+ exports[`"modules" option should work when the "auto" is not specified, but specified other modules options: result 1`] = `
4448
+ ".modules-mode-style-modules__class {
4449
+ color: red;
4450
+ }
4451
+ .modules-mode-no-modules__class {
4452
+ color: red;
4453
+ }
4454
+ "
4455
+ `;
4456
+
4457
+ exports[`"modules" option should work when the "auto" is not specified, but specified other modules options: warnings 1`] = `Array []`;
4458
+
4459
+ exports[`"modules" option should work when the "auto" is not specified: errors 1`] = `Array []`;
4460
+
4461
+ exports[`"modules" option should work when the "auto" is not specified: modules-module 1`] = `
4462
+ "// Imports
4463
+ import ___CSS_LOADER_API_IMPORT___ from \\"../../../../src/runtime/api.js\\";
4464
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
4465
+ // Module
4466
+ ___CSS_LOADER_EXPORT___.push([module.id, \\"._BNmWUIwputjT_WFqpoZ {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]);
4467
+ // Exports
4468
+ ___CSS_LOADER_EXPORT___.locals = {
4469
+ \\"class\\": \\"_BNmWUIwputjT_WFqpoZ\\"
4470
+ };
4471
+ export default ___CSS_LOADER_EXPORT___;
4472
+ "
4473
+ `;
4474
+
4475
+ exports[`"modules" option should work when the "auto" is not specified: not-modules-module 1`] = `
4476
+ "// Imports
4477
+ import ___CSS_LOADER_API_IMPORT___ from \\"../../../../src/runtime/api.js\\";
4478
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
4479
+ // Module
4480
+ ___CSS_LOADER_EXPORT___.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]);
4481
+ // Exports
4482
+ export default ___CSS_LOADER_EXPORT___;
4483
+ "
4484
+ `;
4485
+
4486
+ exports[`"modules" option should work when the "auto" is not specified: result 1`] = `
4487
+ "._BNmWUIwputjT_WFqpoZ {
4488
+ color: red;
4489
+ }
4490
+ .class {
4491
+ color: red;
4492
+ }
4493
+ "
4494
+ `;
4495
+
4496
+ exports[`"modules" option should work when the "auto" is not specified: warnings 1`] = `Array []`;
4497
+
4498
+ exports[`"modules" option should work when the "auto" option is "true" with other options: errors 1`] = `Array []`;
4499
+
4500
+ exports[`"modules" option should work when the "auto" option is "true" with other options: modules-module 1`] = `
4501
+ "// Imports
4502
+ import ___CSS_LOADER_API_IMPORT___ from \\"../../../../src/runtime/api.js\\";
4503
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
4504
+ // Module
4505
+ ___CSS_LOADER_EXPORT___.push([module.id, \\".modules-mode-style-modules__class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]);
4506
+ // Exports
4507
+ ___CSS_LOADER_EXPORT___.locals = {
4508
+ \\"class\\": \\"modules-mode-style-modules__class\\"
4509
+ };
4510
+ export default ___CSS_LOADER_EXPORT___;
4511
+ "
4512
+ `;
4513
+
4514
+ exports[`"modules" option should work when the "auto" option is "true" with other options: not-modules-module 1`] = `
4515
+ "// Imports
4516
+ import ___CSS_LOADER_API_IMPORT___ from \\"../../../../src/runtime/api.js\\";
4517
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
4518
+ // Module
4519
+ ___CSS_LOADER_EXPORT___.push([module.id, \\".class {\\\\n color: red;\\\\n}\\\\n\\", \\"\\"]);
4520
+ // Exports
4521
+ export default ___CSS_LOADER_EXPORT___;
4522
+ "
4523
+ `;
4524
+
4525
+ exports[`"modules" option should work when the "auto" option is "true" with other options: result 1`] = `
4526
+ ".modules-mode-style-modules__class {
4527
+ color: red;
4528
+ }
4529
+ .class {
4530
+ color: red;
4531
+ }
4532
+ "
4533
+ `;
4534
+
4535
+ exports[`"modules" option should work when the "auto" option is "true" with other options: warnings 1`] = `Array []`;
4536
+
4417
4537
exports[`"modules" option should work when the "namedExport" is enabled and the "exportLocalsConvention" options has "dashesOnly" value: errors 1`] = `Array []`;
4418
4538
4419
4539
exports[`"modules" option should work when the "namedExport" is enabled and the "exportLocalsConvention" options has "dashesOnly" value: module 1`] = `
@@ -13743,9 +13863,48 @@ Array [
13743
13863
13744
13864
exports[`"modules" option should work with the "auto" by default: warnings 1`] = `Array []`;
13745
13865
13746
- exports[`"modules" option should work with the "auto" when it is "false": errors 1`] = `Array []`;
13866
+ exports[`"modules" option should work with the "auto" option in the "modules" option for icss: errors 1`] = `Array []`;
13867
+
13868
+ exports[`"modules" option should work with the "auto" option in the "modules" option for icss: module 1`] = `
13869
+ "// Imports
13870
+ import ___CSS_LOADER_API_IMPORT___ from \\"../../../../../src/runtime/api.js\\";
13871
+ import ___CSS_LOADER_ICSS_IMPORT_0___ from \\"-!../../../../../src/index.js??ruleSet[1].rules[0].use[0]!./vars.icss.css\\";
13872
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
13873
+ ___CSS_LOADER_EXPORT___.i(___CSS_LOADER_ICSS_IMPORT_0___, \\"\\", true);
13874
+ // Module
13875
+ ___CSS_LOADER_EXPORT___.push([module.id, \\".className {\\\\n color: \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\"primary-color\\"] + \\";\\\\n}\\\\n\\", \\"\\"]);
13876
+ // Exports
13877
+ ___CSS_LOADER_EXPORT___.locals = {
13878
+ \\"primary-color\\": \\"\\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\"primary-color\\"] + \\"\\"
13879
+ };
13880
+ export default ___CSS_LOADER_EXPORT___;
13881
+ "
13882
+ `;
13883
+
13884
+ exports[`"modules" option should work with the "auto" option in the "modules" option for icss: result 1`] = `
13885
+ Array [
13886
+ Array [
13887
+ "../../src/index.js??ruleSet[1].rules[0].use[0]!./modules/mode/icss/vars.icss.css",
13888
+ "
13889
+ ",
13890
+ "",
13891
+ ],
13892
+ Array [
13893
+ "./modules/mode/icss/relative.icss.css",
13894
+ ".className {
13895
+ color: red;
13896
+ }
13897
+ ",
13898
+ "",
13899
+ ],
13900
+ ]
13901
+ `;
13902
+
13903
+ exports[`"modules" option should work with the "auto" option in the "modules" option for icss: warnings 1`] = `Array []`;
13904
+
13905
+ exports[`"modules" option should work with the "auto" option is "false": errors 1`] = `Array []`;
13747
13906
13748
- exports[`"modules" option should work with the "auto" when it is "false": module 1`] = `
13907
+ exports[`"modules" option should work with the "auto" option is "false": module 1`] = `
13749
13908
"// Imports
13750
13909
import ___CSS_LOADER_API_IMPORT___ from \\"../../../../src/runtime/api.js\\";
13751
13910
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
@@ -13756,7 +13915,7 @@ export default ___CSS_LOADER_EXPORT___;
13756
13915
"
13757
13916
`;
13758
13917
13759
- exports[`"modules" option should work with the "auto" when it is "false": result 1`] = `
13918
+ exports[`"modules" option should work with the "auto" option is "false": result 1`] = `
13760
13919
Array [
13761
13920
Array [
13762
13921
"./modules/mode/relative.module.css",
@@ -13769,11 +13928,11 @@ Array [
13769
13928
]
13770
13929
`;
13771
13930
13772
- exports[`"modules" option should work with the "auto" when it is "false": warnings 1`] = `Array []`;
13931
+ exports[`"modules" option should work with the "auto" option is "false": warnings 1`] = `Array []`;
13773
13932
13774
- exports[`"modules" option should work with the "auto" when it is "true": errors 1`] = `Array []`;
13933
+ exports[`"modules" option should work with the "auto" option is "true": errors 1`] = `Array []`;
13775
13934
13776
- exports[`"modules" option should work with the "auto" when it is "true": module 1`] = `
13935
+ exports[`"modules" option should work with the "auto" option is "true": module 1`] = `
13777
13936
"// Imports
13778
13937
import ___CSS_LOADER_API_IMPORT___ from \\"../../../../src/runtime/api.js\\";
13779
13938
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]});
@@ -13787,7 +13946,7 @@ export default ___CSS_LOADER_EXPORT___;
13787
13946
"
13788
13947
`;
13789
13948
13790
- exports[`"modules" option should work with the "auto" when it is "true": result 1`] = `
13949
+ exports[`"modules" option should work with the "auto" option is "true": result 1`] = `
13791
13950
Array [
13792
13951
Array [
13793
13952
"./modules/mode/relative.module.css",
@@ -13800,7 +13959,7 @@ Array [
13800
13959
]
13801
13960
`;
13802
13961
13803
- exports[`"modules" option should work with the "auto" when it is "true": warnings 1`] = `Array []`;
13962
+ exports[`"modules" option should work with the "auto" option is "true": warnings 1`] = `Array []`;
13804
13963
13805
13964
exports[`"modules" option should work with the "namedExport" option with nested import: errors 1`] = `Array []`;
13806
13965
0 commit comments