@@ -6,14 +6,48 @@ exports[`validate options should throw an error on the "esModule" option with "t
66 -> Use the ES modules syntax (https://github.com/webpack-contrib/css-loader#esmodule)."
77`;
88
9+ exports[`validate options should throw an error on the "import" option with "() => {}" value 1`] = `
10+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
11+ - options.import should be one of these:
12+ boolean | object { filter? }
13+ -> Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).
14+ Details:
15+ * options.import should be a boolean.
16+ * options.import should be an object:
17+ object { filter? }"
18+ `;
19+
20+ exports[`validate options should throw an error on the "import" option with "[]" value 1`] = `
21+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
22+ - options.import should be one of these:
23+ boolean | object { filter? }
24+ -> Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).
25+ Details:
26+ * options.import should be a boolean.
27+ * options.import should be an object:
28+ object { filter? }"
29+ `;
30+
31+ exports[`validate options should throw an error on the "import" option with "{"filter":true}" value 1`] = `
32+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
33+ - options.import.filter should be an instance of function."
34+ `;
35+
36+ exports[`validate options should throw an error on the "import" option with "{}" value 1`] = `
37+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
38+ - options.import has an unknown property 'unknown'. These properties are valid:
39+ object { filter? }"
40+ `;
41+
942exports[`validate options should throw an error on the "import" option with "true" value 1`] = `
1043"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
1144 - options.import should be one of these:
12- boolean | function
45+ boolean | object { filter? }
1346 -> Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).
1447 Details:
1548 * options.import should be a boolean.
16- * options.import should be an instance of function."
49+ * options.import should be an object:
50+ object { filter? }"
1751`;
1852
1953exports[`validate options should throw an error on the "importLoaders" option with "2.5" value 1`] = `
@@ -278,12 +312,46 @@ exports[`validate options should throw an error on the "unknown" option with "tr
278312 object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
279313`;
280314
315+ exports[`validate options should throw an error on the "url" option with "() => {}" value 1`] = `
316+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
317+ - options.url should be one of these:
318+ boolean | object { filter? }
319+ -> Enables/Disables 'url'/'image-set' functions handling (https://github.com/webpack-contrib/css-loader#url).
320+ Details:
321+ * options.url should be a boolean.
322+ * options.url should be an object:
323+ object { filter? }"
324+ `;
325+
326+ exports[`validate options should throw an error on the "url" option with "[]" value 1`] = `
327+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
328+ - options.url should be one of these:
329+ boolean | object { filter? }
330+ -> Enables/Disables 'url'/'image-set' functions handling (https://github.com/webpack-contrib/css-loader#url).
331+ Details:
332+ * options.url should be a boolean.
333+ * options.url should be an object:
334+ object { filter? }"
335+ `;
336+
337+ exports[`validate options should throw an error on the "url" option with "{"filter":true}" value 1`] = `
338+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
339+ - options.url.filter should be an instance of function."
340+ `;
341+
342+ exports[`validate options should throw an error on the "url" option with "{}" value 1`] = `
343+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
344+ - options.url has an unknown property 'unknown'. These properties are valid:
345+ object { filter? }"
346+ `;
347+
281348exports[`validate options should throw an error on the "url" option with "true" value 1`] = `
282349"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
283350 - options.url should be one of these:
284- boolean | function
351+ boolean | object { filter? }
285352 -> Enables/Disables 'url'/'image-set' functions handling (https://github.com/webpack-contrib/css-loader#url).
286353 Details:
287354 * options.url should be a boolean.
288- * options.url should be an instance of function."
355+ * options.url should be an object:
356+ object { filter? }"
289357`;
0 commit comments