@@ -668,6 +668,51 @@ Array [
668
668
669
669
exports [` "modules" option should keep order: warnings 1` ] = ` Array []` ;
670
670
671
+ exports [` "modules" option should resolve package from node_modules with and without tilde: errors 1` ] = ` Array []` ;
672
+
673
+ exports [` "modules" option should resolve package from node_modules with and without tilde: module 1` ] = `
674
+ "// Imports
675
+ var ___CSS_LOADER_API_IMPORT___ = require(\\ "../../../../src/runtime/api.js\\ ");
676
+ var ___CSS_LOADER_ICSS_IMPORT_0___ = require(\\ "-!../../../../src/index.js??[ident]!../node_modules/test/index.css\\ ");
677
+ var ___CSS_LOADER_ICSS_IMPORT_1___ = require(\\ "-!../../../../src/index.js??[ident]!../node_modules/test/index.css\\ ");
678
+ exports = ___CSS_LOADER_API_IMPORT___(false);
679
+ exports.i(___CSS_LOADER_ICSS_IMPORT_0___, \\ "\\ ", true);
680
+ exports.i(___CSS_LOADER_ICSS_IMPORT_1___, \\ "\\ ", true);
681
+ // Module
682
+ exports.push([module.id, \\ "._1AcMgd5TrMMVc761JDuYuc { \\\\n color : \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\ " foo \\" ] + \\ " ;\\\\n background : \\" + ___CSS_LOADER_ICSS_IMPORT_1___.locals[\\ " bar \\" ] + \\ " ;\\\\n } \\\\ n\\\\ n\\ ", \\ "\\ "]);
683
+ // Exports
684
+ exports.locals = {
685
+ \\" foo\\ " : \\" \\ " + ___CSS_LOADER_ICSS_IMPORT_0___ .locals [\\" foo\\ " ] + \\" \\ " ,
686
+ \\" bar\\ " : \\" \\ " + ___CSS_LOADER_ICSS_IMPORT_1___ .locals [\\" bar\\ " ] + \\" \\ " ,
687
+ \\" className\\ " : \\" _1AcMgd5TrMMVc761JDuYuc\\ "
688
+ } ;
689
+ module.exports = exports;
690
+ "
691
+ ` ;
692
+
693
+ exports [` "modules" option should resolve package from node_modules with and without tilde: result 1` ] = `
694
+ Array [
695
+ Array [
696
+ "../../src/index.js?[ident]!./modules/node_modules/test/index.css",
697
+ "
698
+ ",
699
+ "",
700
+ ],
701
+ Array [
702
+ "./modules/issue-914/source.css",
703
+ "._1AcMgd5TrMMVc761JDuYuc {
704
+ color : red ;
705
+ background : green ;
706
+ }
707
+
708
+ ",
709
+ "",
710
+ ],
711
+ ]
712
+ ` ;
713
+
714
+ exports [` "modules" option should resolve package from node_modules with and without tilde: warnings 1` ] = ` Array []` ;
715
+
671
716
exports [` "modules" option should should work with two leading hyphens: errors 1` ] = ` Array []` ;
672
717
673
718
exports [` "modules" option should should work with two leading hyphens: module 1` ] = `
@@ -1050,25 +1095,21 @@ var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../../src/runtime/api.js\\");
1050
1095
var ___CSS_LOADER_ICSS_IMPORT_0___ = require(\\ "-!../../../../src/index.js??[ident]!./values.css\\ ");
1051
1096
var ___CSS_LOADER_ICSS_IMPORT_1___ = require(\\ "-!../../../../src/index.js??[ident]!./less-file.less\\ ");
1052
1097
var ___CSS_LOADER_ICSS_IMPORT_2___ = require(\\ "-!../../../../src/index.js??[ident]!./scss-file.scss\\ ");
1053
- var ___CSS_LOADER_ICSS_IMPORT_3___ = require(\\ "-!../../../../src/index.js??[ident]!./sass-file.sass\\ ");
1054
1098
exports = ___CSS_LOADER_API_IMPORT___(false);
1055
1099
exports.i(___CSS_LOADER_ICSS_IMPORT_0___, \\ "\\ ", true);
1056
1100
exports.i(___CSS_LOADER_ICSS_IMPORT_1___, \\ "\\ ", true);
1057
1101
exports.i(___CSS_LOADER_ICSS_IMPORT_2___, \\ "\\ ", true);
1058
- exports.i(___CSS_LOADER_ICSS_IMPORT_3___, \\ "\\ ", true);
1059
1102
// Module
1060
- exports.push([module.id, \\ ".globalClassName { \\\\n color : orange ;\\\\n } \\\\ n\\\\ n._2vZioV5tEV-AlqaI8c_mtN { \\\\n color : \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\ " v - def \\" ] + \\ " ;\\\\n } \\\\ n\\\\ n.YX1POP6L7ESwR7pdtyRna { \\\\n color : \\" + ___CSS_LOADER_ICSS_IMPORT_1___.locals[\\ " v - foo \\" ] + \\ " ;\\\\n } \\\\ n\\\\ n._1578mz8iEiOG2qNa19R11c { \\\\n color : \\" + ___CSS_LOADER_ICSS_IMPORT_2___.locals[\\ " v - bar \\" ] + \\ " ;\\\\n } \\\\ n\\\\ n._1yWiOyfH6HuDl7TOzpnWkK { \\\\ n color : \\ " + ___CSS_LOADER_ICSS_IMPORT_3___.locals[ \\ " v - baz \\ " ] + \\ " ;\\\\ n } \\\\ n \\\\ n. OVj95yO5B9JEdIo3xDMtO { \\\\n background : #000 ;\\\\n } \\\\ n\\ ", \\ "\\ "]);
1103
+ exports.push([module.id, \\ ".globalClassName { \\\\n color : orange ;\\\\n } \\\\ n\\\\ n._2vZioV5tEV-AlqaI8c_mtN { \\\\n color : \\" + ___CSS_LOADER_ICSS_IMPORT_0___.locals[\\ " v - def \\" ] + \\ " ;\\\\n } \\\\ n\\\\ n.YX1POP6L7ESwR7pdtyRna { \\\\n color : \\" + ___CSS_LOADER_ICSS_IMPORT_1___.locals[\\ " v - foo \\" ] + \\ " ;\\\\n } \\\\ n\\\\ n._1578mz8iEiOG2qNa19R11c { \\\\n color : \\" + ___CSS_LOADER_ICSS_IMPORT_2___.locals[\\ " v - bar \\" ] + \\ " ;\\\\n } \\\\ n\\\\ n.OVj95yO5B9JEdIo3xDMtO { \\\\n background : #000 ;\\\\n } \\\\ n\\ ", \\ "\\ "]);
1061
1104
// Exports
1062
1105
exports.locals = {
1063
1106
\\" v-def\\ " : \\" \\ " + ___CSS_LOADER_ICSS_IMPORT_0___ .locals [\\" v-def\\ " ] + \\" \\ " ,
1064
1107
\\" v-foo\\ " : \\" \\ " + ___CSS_LOADER_ICSS_IMPORT_1___ .locals [\\" v-foo\\ " ] + \\" \\ " ,
1065
1108
\\" v-bar\\ " : \\" \\ " + ___CSS_LOADER_ICSS_IMPORT_2___ .locals [\\" v-bar\\ " ] + \\" \\ " ,
1066
- \\" v-baz\\ " : \\" \\ " + ___CSS_LOADER_ICSS_IMPORT_3___ .locals [\\" v-baz\\ " ] + \\" \\ " ,
1067
1109
\\" globalClassName\\ " : \\" globalClassName\\ " ,
1068
1110
\\" ghi\\ " : \\" _2vZioV5tEV-AlqaI8c_mtN\\ " ,
1069
1111
\\" class\\ " : \\" YX1POP6L7ESwR7pdtyRna \\ " + ___CSS_LOADER_ICSS_IMPORT_1___ .locals [\\" lessClass\\ " ] + \\" \\ " ,
1070
1112
\\" other\\ " : \\" _1578mz8iEiOG2qNa19R11c \\ " + ___CSS_LOADER_ICSS_IMPORT_2___ .locals [\\" scssClass\\ " ] + \\" \\ " ,
1071
- \\" last\\ " : \\" _1yWiOyfH6HuDl7TOzpnWkK \\ " + ___CSS_LOADER_ICSS_IMPORT_3___ .locals [\\" sassClass\\ " ] + \\" \\ " ,
1072
1113
\\" otherClassName\\ " : \\" OVj95yO5B9JEdIo3xDMtO globalClassName\\ "
1073
1114
} ;
1074
1115
module.exports = exports;
@@ -1096,13 +1137,6 @@ Array [
1096
1137
"._228B9eI0iy8oD-AJowJJdF {
1097
1138
padding : 15px ;
1098
1139
}
1099
- ",
1100
- "",
1101
- ],
1102
- Array [
1103
- "../../src/index.js?[ident]!./modules/composes/sass-file.sass",
1104
- "
1105
-
1106
1140
",
1107
1141
"",
1108
1142
],
@@ -1124,10 +1158,6 @@ Array [
1124
1158
color : white ;
1125
1159
}
1126
1160
1127
- ._1yWiOyfH6HuDl7TOzpnWkK {
1128
- color : undefined ;
1129
- }
1130
-
1131
1161
.OVj95yO5B9JEdIo3xDMtO {
1132
1162
background : #000 ;
1133
1163
}
@@ -1137,20 +1167,7 @@ Array [
1137
1167
]
1138
1168
` ;
1139
1169
1140
- exports [` "modules" option should support resolving in composes preprocessor files with extensions: warnings 1` ] = `
1141
- Array [
1142
- "ModuleWarning: Module Warning (from \` replaced original path\` ):
1143
- Warning
1144
-
1145
- Invalid value definition: v-def: red
1146
- @value v-foo: green
1147
- @value v-bar: white
1148
- @value v-baz: coral
1149
-
1150
- .sassClass
1151
- padding: 10px",
1152
- ]
1153
- ` ;
1170
+ exports [` "modules" option should support resolving in composes preprocessor files with extensions: warnings 1` ] = ` Array []` ;
1154
1171
1155
1172
exports [` "modules" option should support resolving in composes: errors 1` ] = ` Array []` ;
1156
1173
@@ -1163,7 +1180,7 @@ var ___CSS_LOADER_ICSS_IMPORT_2___ = require(\\"-!../../../../src/index.js??[ide
1163
1180
var ___CSS_LOADER_ICSS_IMPORT_3___ = require(\\ "-!../../../../src/index.js??[ident]!./relative.css\\ ");
1164
1181
var ___CSS_LOADER_ICSS_IMPORT_4___ = require(\\ "-!../../../../src/index.js??[ident]!./top-relative.css\\ ");
1165
1182
var ___CSS_LOADER_ICSS_IMPORT_5___ = require(\\ "-!../../../../src/index.js??[ident]!../issue-861/node_modules/package/style.css\\ ");
1166
- var ___CSS_LOADER_ICSS_IMPORT_6___ = require(\\ "-!../../../../src/index.js??[ident]!aliasesComposes /alias.css\\ ");
1183
+ var ___CSS_LOADER_ICSS_IMPORT_6___ = require(\\ "-!../../../../src/index.js??[ident]!. /alias.css\\ ");
1167
1184
var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\ "-!../../../../src/index.js??[ident]!./test-other.css\\ ");
1168
1185
var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\ "../../../../src/runtime/getUrl.js\\ ");
1169
1186
var ___CSS_LOADER_URL_IMPORT_0___ = require(\\ "../../url/img.png\\ ");
@@ -1413,6 +1430,15 @@ a {
1413
1430
1414
1431
exports[` " modules" option should support resolving in composes : warnings 1 ` ] = ` Array []` ;
1415
1432
1433
+ exports[` " modules" option should throw error when unresolved import : errors 1 ` ] = `
1434
+ Array [
1435
+ " ModuleBuildError: Module build failed (from \` replaced original path\` ):
1436
+ Error : Can ' t resolve ' // exammple.com/unresolved.css' in '/test/fixtures/modules/unresolved'",
1437
+ ]
1438
+ ` ;
1439
+
1440
+ exports[` " modules" option should throw error when unresolved import : warnings 1 ` ] = ` Array []` ;
1441
+
1416
1442
exports[` " modules" option should work and correctly replace escaped symbols : errors 1 ` ] = ` Array []` ;
1417
1443
1418
1444
exports[` " modules" option should work and correctly replace escaped symbols : module 1 ` ] = `
0 commit comments