You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/__snapshots__/loader.test.js.snap
+17-70Lines changed: 17 additions & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -243,7 +243,7 @@ exports[`loader should throw an error on invisible spaces: errors 1`] = `
243
243
244
244
SyntaxError
245
245
246
-
(1:8) /test/fixtures/invisible-space.css Unknown word color
246
+
(1:8) /test/fixtures/invisible-space.css Unknown word
247
247
248
248
> 1 | a {color: red; }
249
249
| ^
@@ -259,7 +259,7 @@ exports[`loader should throw error on invalid css syntax: errors 1`] = `
259
259
260
260
SyntaxError
261
261
262
-
(2:3) /test/fixtures/error.css Unknown word invalid
262
+
(2:3) /test/fixtures/error.css Unknown word
263
263
264
264
1 | .some {
265
265
>2|invalidcss;
@@ -276,11 +276,9 @@ exports[`loader should throws error when no loader(s) for assets: errors 1`] = `
276
276
277
277
exports[`loader should throws error when no loader(s) for assets: warnings 1`] =`[]`;
278
278
279
-
exports[`loader should work and nothing to do with built-in CSS support: errors 1`] =`[]`;
280
-
281
-
exports[`loader should work and nothing to do with built-in CSS support: errors 2`] =`[]`;
279
+
exports[`loader should work and nothing to do with built-in CSS support with futureDefaults: errors 1`] =`[]`;
282
280
283
-
exports[`loader should work and nothing to do with built-in CSS support: module 1`] =`
281
+
exports[`loader should work and nothing to do with built-in CSS support with futureDefaults: module 1`] =`
284
282
"@charset "UTF-8";
285
283
286
284
@@ -434,7 +432,16 @@ a[href="" i] {
434
432
"
435
433
`;
436
434
437
-
exports[`loader should work and nothing to do with built-in CSS support: module 2`] =`
435
+
exports[`loader should work and nothing to do with built-in CSS support with futureDefaults: warnings 1`] =`
436
+
[
437
+
"ModuleWarning: Module Warning (from \`replaced original path\`):
438
+
You can't use \`experiments.css\` (\`experiments.futureDefaults\` enable built-in CSS support by default) and \`css-loader\` together, please set \`experiments.css\` to \`false\` or set \`{type: "javascript/auto"}\` for rules with \`css-loader\` in your webpack config (now css-loader does nothing).",
439
+
]
440
+
`;
441
+
442
+
exports[`loader should work and nothing to do with built-in CSS support: errors 1`] =`[]`;
443
+
444
+
exports[`loader should work and nothing to do with built-in CSS support: module 1`] =`
438
445
"@charset "UTF-8";
439
446
440
447
@@ -595,13 +602,6 @@ You can't use \`experiments.css\` (\`experiments.futureDefaults\` enable built-i
595
602
]
596
603
`;
597
604
598
-
exports[`loader should work and nothing to do with built-in CSS support: warnings 2`] =`
599
-
[
600
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
601
-
You can't use \`experiments.css\` (\`experiments.futureDefaults\` enable built-in CSS support by default) and \`css-loader\` together, please set \`experiments.css\` to \`false\` or set \`{type: "javascript/auto"}\` for rules with \`css-loader\` in your webpack config (now css-loader does nothing).",
602
-
]
603
-
`;
604
-
605
605
exports[`loader should work in 'production' mode: errors 1`] =`[]`;
606
606
607
607
exports[`loader should work in 'production' mode: module 1`] =`
@@ -1294,14 +1294,7 @@ exports[`loader should work with "sass-loader": result 1`] = `
1294
1294
]
1295
1295
`;
1296
1296
1297
-
exports[`loader should work with "sass-loader": warnings 1`] =`
1298
-
[
1299
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
1300
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
1301
-
1302
-
More info: https://sass-lang.com/d/legacy-js-api",
1303
-
]
1304
-
`;
1297
+
exports[`loader should work with "sass-loader": warnings 1`] =`[]`;
1305
1298
1306
1299
exports[`loader should work with \`templateLiteral\` support: errors 1`] =`[]`;
1307
1300
@@ -2461,42 +2454,7 @@ exports[`loader should work with inline module syntax: result 1`] = `
2461
2454
]
2462
2455
`;
2463
2456
2464
-
exports[`loader should work with inline module syntax: warnings 1`] =`
2465
-
[
2466
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2467
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2468
-
2469
-
More info: https://sass-lang.com/d/legacy-js-api",
2470
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2471
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2472
-
2473
-
More info: https://sass-lang.com/d/legacy-js-api",
2474
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2475
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2476
-
2477
-
More info: https://sass-lang.com/d/legacy-js-api",
2478
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2479
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2480
-
2481
-
More info: https://sass-lang.com/d/legacy-js-api",
2482
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2483
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2484
-
2485
-
More info: https://sass-lang.com/d/legacy-js-api",
2486
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2487
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2488
-
2489
-
More info: https://sass-lang.com/d/legacy-js-api",
2490
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2491
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2492
-
2493
-
More info: https://sass-lang.com/d/legacy-js-api",
2494
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2495
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2496
-
2497
-
More info: https://sass-lang.com/d/legacy-js-api",
2498
-
]
2499
-
`;
2457
+
exports[`loader should work with inline module syntax: warnings 1`] =`[]`;
2500
2458
2501
2459
exports[`loader should work with none AST metadata: errors 1`] =`[]`;
2502
2460
@@ -2583,18 +2541,7 @@ exports[`loader should work with the "modules.auto" option and the "import.loade
2583
2541
"
2584
2542
`;
2585
2543
2586
-
exports[`loader should work with the "modules.auto" option and the "import.loaders" option: warnings 1`] =`
2587
-
[
2588
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2589
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2590
-
2591
-
More info: https://sass-lang.com/d/legacy-js-api",
2592
-
"ModuleWarning: Module Warning (from \`replaced original path\`):
2593
-
Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
2594
-
2595
-
More info: https://sass-lang.com/d/legacy-js-api",
2596
-
]
2597
-
`;
2544
+
exports[`loader should work with the "modules.auto" option and the "import.loaders" option: warnings 1`] =`[]`;
2598
2545
2599
2546
exports[`loader should work with webpackIgnore comment: errors 1`] =`[]`;
0 commit comments