@@ -313,6 +313,68 @@ Array [
313
313
314
314
exports [` "import" option should respect style field in package.json: warnings 1` ] = ` Array []` ;
315
315
316
+ exports [` "import" option should work resolve order: local -> node_modules -> alias: errors 1` ] = ` Array []` ;
317
+
318
+ exports [` "import" option should work resolve order: local -> node_modules -> alias: module 1` ] = `
319
+ "// Imports
320
+ import ___CSS_LOADER_API_IMPORT___ from \\ "../../../src/runtime/api.js\\ ";
321
+ import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\ "-!../../../src/index.js??[ident]!./test.css\\ ";
322
+ import ___CSS_LOADER_AT_RULE_IMPORT_1___ from \\ "-!../../../src/index.js??[ident]!./issue-683.css\\ ";
323
+ import ___CSS_LOADER_AT_RULE_IMPORT_2___ from \\ "-!../../../src/index.js??[ident]!./node_modules/package/tilde.css\\ ";
324
+ var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(false);
325
+ ___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_0___);
326
+ ___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_1___);
327
+ ___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_2___);
328
+ // Module
329
+ ___CSS_LOADER_EXPORT___.push([module.id, \\ "\\\\ n\\ ", \\ "\\ "]);
330
+ // Exports
331
+ export default ___CSS_LOADER_EXPORT___;
332
+ "
333
+ ` ;
334
+
335
+ exports [` "import" option should work resolve order: local -> node_modules -> alias: result 1` ] = `
336
+ Array [
337
+ Array [
338
+ "../../src/index.js?[ident]!./import/test.css",
339
+ ".test {
340
+ a : a ;
341
+ }
342
+ ",
343
+ "",
344
+ ],
345
+ Array [
346
+ "../../src/index.js?[ident]!./import/node_modules/issue-683/test.css",
347
+ ".test {
348
+ color : coral ;
349
+ }
350
+ ",
351
+ "",
352
+ ],
353
+ Array [
354
+ "../../src/index.js?[ident]!./import/issue-683.css",
355
+ "
356
+ ",
357
+ "",
358
+ ],
359
+ Array [
360
+ "../../src/index.js?[ident]!./import/node_modules/package/tilde.css",
361
+ ".tilde {
362
+ color : yellow ;
363
+ }
364
+ ",
365
+ "",
366
+ ],
367
+ Array [
368
+ "./import/import-order.css",
369
+ "
370
+ ",
371
+ "",
372
+ ],
373
+ ]
374
+ ` ;
375
+
376
+ exports [` "import" option should work resolve order: local -> node_modules -> alias: warnings 1` ] = ` Array []` ;
377
+
316
378
exports [` "import" option should work when "Function": errors 1` ] = ` Array []` ;
317
379
318
380
exports [` "import" option should work when "Function": module 1` ] = `
0 commit comments