@@ -39,7 +39,7 @@ exports[`validate options should throw an error on the "importLoaders" option wi
39
39
exports [` validate options should throw an error on the "modules" option with "{ " auto" :" invalid" } " value 1` ] = `
40
40
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
41
41
- options.modules should be one of these:
42
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
42
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
43
43
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
44
44
Details :
45
45
* options .modules .auto should be one of these :
@@ -50,11 +50,6 @@ exports[`validate options should throw an error on the "modules" option with "{"
50
50
* options.modules.auto should be a boolean."
51
51
`;
52
52
53
- exports [` validate options should throw an error on the "modules" option with "{ " context" :true } " value 1` ] = `
54
- "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
55
- - options.modules.context should be a string."
56
- ` ;
57
-
58
53
exports [` validate options should throw an error on the "modules" option with "{ " exportGlobals" :" invalid" } " value 1` ] = `
59
54
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
60
55
- options.modules.exportGlobals should be a boolean."
@@ -69,7 +64,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
69
64
exports [` validate options should throw an error on the "modules" option with "{ " getLocalIdent" :[]} " value 1` ] = `
70
65
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
71
66
- options.modules should be one of these:
72
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
67
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
73
68
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
74
69
Details :
75
70
* options .modules .getLocalIdent should be one of these :
@@ -79,26 +74,31 @@ exports[`validate options should throw an error on the "modules" option with "{"
79
74
* options.modules.getLocalIdent should be an instance of function ."
80
75
`;
81
76
77
+ exports [` validate options should throw an error on the "modules" option with "{ " localIdentContext" :true } " value 1` ] = `
78
+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
79
+ - options.modules.localIdentContext should be a non-empty string."
80
+ ` ;
81
+
82
82
exports [` validate options should throw an error on the "modules" option with "{ " localIdentHashPrefix" :true } " value 1` ] = `
83
83
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
84
- - options.modules.localIdentHashPrefix should be a string."
84
+ - options.modules.localIdentHashPrefix should be a non-empty string."
85
85
` ;
86
86
87
87
exports [` validate options should throw an error on the "modules" option with "{ " localIdentName" :true } " value 1` ] = `
88
88
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
89
- - options.modules.localIdentName should be a string."
89
+ - options.modules.localIdentName should be a non-empty string."
90
90
` ;
91
91
92
92
exports [` validate options should throw an error on the "modules" option with "{ " localIdentRegExp" :true } " value 1` ] = `
93
93
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
94
94
- options.modules should be one of these:
95
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
95
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
96
96
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
97
97
Details :
98
98
* options .modules .localIdentRegExp should be one of these :
99
- string | RegExp
99
+ non - empty string | RegExp
100
100
Details :
101
- * options .modules .localIdentRegExp should be a string .
101
+ * options .modules .localIdentRegExp should be a non - empty string .
102
102
* options .modules .localIdentRegExp should be an instance of RegExp ."
103
103
`;
104
104
@@ -112,7 +112,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
112
112
exports [` validate options should throw an error on the "modules" option with "{ " mode" :" globals" } " value 1` ] = `
113
113
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
114
114
- options.modules should be one of these:
115
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
115
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
116
116
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
117
117
Details :
118
118
* options .modules .mode should be one of these :
@@ -126,7 +126,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
126
126
exports [` validate options should throw an error on the "modules" option with "{ " mode" :" locals" } " value 1` ] = `
127
127
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
128
128
- options.modules should be one of these:
129
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
129
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
130
130
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
131
131
Details :
132
132
* options .modules .mode should be one of these :
@@ -140,7 +140,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
140
140
exports [` validate options should throw an error on the "modules" option with "{ " mode" :" pures" } " value 1` ] = `
141
141
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
142
142
- options.modules should be one of these:
143
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
143
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
144
144
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
145
145
Details :
146
146
* options .modules .mode should be one of these :
@@ -154,7 +154,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
154
154
exports [` validate options should throw an error on the "modules" option with "{ " mode" :true } " value 1` ] = `
155
155
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
156
156
- options.modules should be one of these:
157
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
157
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
158
158
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
159
159
Details :
160
160
* options .modules .mode should be one of these :
@@ -174,53 +174,53 @@ exports[`validate options should throw an error on the "modules" option with "{"
174
174
exports [` validate options should throw an error on the "modules" option with "globals" value 1` ] = `
175
175
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
176
176
- options.modules should be one of these:
177
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
177
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
178
178
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
179
179
Details :
180
180
* options .modules should be a boolean .
181
181
* options .modules should be one of these :
182
182
\\" local\\ " | \\" global\\ " | \\" pure\\ "
183
183
* options .modules should be an object :
184
- object { auto?, mode?, exportGlobals?, localIdentName?, context ?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, localsConvention?, namedExport?, exportOnlyLocals? }"
184
+ object { auto?, mode?, exportGlobals?, localIdentName?, localIdentContext ?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, localsConvention?, namedExport?, exportOnlyLocals? }"
185
185
`;
186
186
187
187
exports [` validate options should throw an error on the "modules" option with "locals" value 1` ] = `
188
188
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
189
189
- options.modules should be one of these:
190
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
190
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
191
191
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
192
192
Details :
193
193
* options .modules should be a boolean .
194
194
* options .modules should be one of these :
195
195
\\" local\\ " | \\" global\\ " | \\" pure\\ "
196
196
* options .modules should be an object :
197
- object { auto?, mode?, exportGlobals?, localIdentName?, context ?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, localsConvention?, namedExport?, exportOnlyLocals? }"
197
+ object { auto?, mode?, exportGlobals?, localIdentName?, localIdentContext ?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, localsConvention?, namedExport?, exportOnlyLocals? }"
198
198
`;
199
199
200
200
exports [` validate options should throw an error on the "modules" option with "pures" value 1` ] = `
201
201
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
202
202
- options.modules should be one of these:
203
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
203
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
204
204
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
205
205
Details :
206
206
* options .modules should be a boolean .
207
207
* options .modules should be one of these :
208
208
\\" local\\ " | \\" global\\ " | \\" pure\\ "
209
209
* options .modules should be an object :
210
- object { auto?, mode?, exportGlobals?, localIdentName?, context ?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, localsConvention?, namedExport?, exportOnlyLocals? }"
210
+ object { auto?, mode?, exportGlobals?, localIdentName?, localIdentContext ?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, localsConvention?, namedExport?, exportOnlyLocals? }"
211
211
`;
212
212
213
213
exports [` validate options should throw an error on the "modules" option with "true" value 1` ] = `
214
214
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
215
215
- options.modules should be one of these:
216
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , context ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
216
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , localsConvention ? , namedExport ? , exportOnlyLocals ? }
217
217
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
218
218
Details :
219
219
* options .modules should be a boolean .
220
220
* options .modules should be one of these :
221
221
\\" local\\ " | \\" global\\ " | \\" pure\\ "
222
222
* options .modules should be an object :
223
- object { auto?, mode?, exportGlobals?, localIdentName?, context ?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, localsConvention?, namedExport?, exportOnlyLocals? }"
223
+ object { auto?, mode?, exportGlobals?, localIdentName?, localIdentContext ?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, localsConvention?, namedExport?, exportOnlyLocals? }"
224
224
`;
225
225
226
226
exports [` validate options should throw an error on the "sourceMap" option with "true" value 1` ] = `
0 commit comments