@@ -9,56 +9,60 @@ exports[`validate options should throw an error on the "esModule" option with "t
9
9
exports[`validate options should throw an error on the "import" option with "() => {}" value 1`] = `
10
10
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
11
11
- options.import should be one of these:
12
- boolean | object { filter? }
12
+ boolean | object { filter?, loaders? }
13
13
-> Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).
14
14
Details:
15
15
* options.import should be a boolean.
16
16
* options.import should be an object:
17
- object { filter? }"
17
+ object { filter?, loaders? }"
18
18
`;
19
19
20
20
exports[`validate options should throw an error on the "import" option with "[]" value 1`] = `
21
21
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
22
22
- options.import should be one of these:
23
- boolean | object { filter? }
23
+ boolean | object { filter?, loaders? }
24
24
-> Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).
25
25
Details:
26
26
* options.import should be a boolean.
27
27
* options.import should be an object:
28
- object { filter? }"
28
+ object { filter?, loaders? }"
29
29
`;
30
30
31
31
exports[`validate options should throw an error on the "import" option with "{"filter":true}" value 1`] = `
32
32
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
33
33
- options.import.filter should be an instance of function."
34
34
`;
35
35
36
+ exports[`validate options should throw an error on the "import" option with "{"loaders":2.5}" 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 should be one of these:
39
+ boolean | object { filter?, loaders? }
40
+ -> Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).
41
+ Details:
42
+ * options.import.loaders should be one of these:
43
+ boolean | string | integer
44
+ -> Enables/Disables or setups number of loaders applied before CSS loader (https://github.com/webpack-contrib/css-loader#importloaders).
45
+ Details:
46
+ * options.import.loaders should be a boolean.
47
+ * options.import.loaders should be a string.
48
+ * options.import.loaders should be a integer."
49
+ `;
50
+
36
51
exports[`validate options should throw an error on the "import" option with "{}" value 1`] = `
37
52
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
38
53
- options.import has an unknown property 'unknown'. These properties are valid:
39
- object { filter? }"
54
+ object { filter?, loaders? }"
40
55
`;
41
56
42
57
exports[`validate options should throw an error on the "import" option with "true" value 1`] = `
43
58
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
44
59
- options.import should be one of these:
45
- boolean | object { filter? }
60
+ boolean | object { filter?, loaders? }
46
61
-> Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).
47
62
Details:
48
63
* options.import should be a boolean.
49
64
* options.import should be an object:
50
- object { filter? }"
51
- `;
52
-
53
- exports[`validate options should throw an error on the "importLoaders" option with "2.5" value 1`] = `
54
- "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
55
- - options.importLoaders should be one of these:
56
- boolean | string | integer
57
- -> Enables/Disables or setups number of loaders applied before CSS loader (https://github.com/webpack-contrib/css-loader#importloaders).
58
- Details:
59
- * options.importLoaders should be a boolean.
60
- * options.importLoaders should be a string.
61
- * options.importLoaders should be a integer."
65
+ object { filter?, loaders? }"
62
66
`;
63
67
64
68
exports[`validate options should throw an error on the "modules" option with "{"auto":"invalid"}" value 1`] = `
@@ -267,49 +271,49 @@ exports[`validate options should throw an error on the "sourceMap" option with "
267
271
exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = `
268
272
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
269
273
- options has an unknown property 'unknown'. These properties are valid:
270
- object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
274
+ object { url?, import?, modules?, sourceMap?, esModule? }"
271
275
`;
272
276
273
277
exports[`validate options should throw an error on the "unknown" option with "[]" value 1`] = `
274
278
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
275
279
- options has an unknown property 'unknown'. These properties are valid:
276
- object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
280
+ object { url?, import?, modules?, sourceMap?, esModule? }"
277
281
`;
278
282
279
283
exports[`validate options should throw an error on the "unknown" option with "{"foo":"bar"}" value 1`] = `
280
284
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
281
285
- options has an unknown property 'unknown'. These properties are valid:
282
- object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
286
+ object { url?, import?, modules?, sourceMap?, esModule? }"
283
287
`;
284
288
285
289
exports[`validate options should throw an error on the "unknown" option with "{}" value 1`] = `
286
290
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
287
291
- options has an unknown property 'unknown'. These properties are valid:
288
- object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
292
+ object { url?, import?, modules?, sourceMap?, esModule? }"
289
293
`;
290
294
291
295
exports[`validate options should throw an error on the "unknown" option with "1" value 1`] = `
292
296
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
293
297
- options has an unknown property 'unknown'. These properties are valid:
294
- object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
298
+ object { url?, import?, modules?, sourceMap?, esModule? }"
295
299
`;
296
300
297
301
exports[`validate options should throw an error on the "unknown" option with "false" value 1`] = `
298
302
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
299
303
- options has an unknown property 'unknown'. These properties are valid:
300
- object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
304
+ object { url?, import?, modules?, sourceMap?, esModule? }"
301
305
`;
302
306
303
307
exports[`validate options should throw an error on the "unknown" option with "test" value 1`] = `
304
308
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
305
309
- options has an unknown property 'unknown'. These properties are valid:
306
- object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
310
+ object { url?, import?, modules?, sourceMap?, esModule? }"
307
311
`;
308
312
309
313
exports[`validate options should throw an error on the "unknown" option with "true" value 1`] = `
310
314
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
311
315
- options has an unknown property 'unknown'. These properties are valid:
312
- object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }"
316
+ object { url?, import?, modules?, sourceMap?, esModule? }"
313
317
`;
314
318
315
319
exports[`validate options should throw an error on the "url" option with "() => {}" value 1`] = `
0 commit comments