@@ -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 ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
42
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
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 :
@@ -63,7 +63,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
63
63
exports [` validate options should throw an error on the "modules" option with "{ " getLocalIdent" :[]} " value 1` ] = `
64
64
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
65
65
- options.modules should be one of these:
66
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
66
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
67
67
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
68
68
Details :
69
69
* options .modules .getLocalIdent should be one of these :
@@ -86,7 +86,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
86
86
exports [` validate options should throw an error on the "modules" option with "{ " localIdentRegExp" :true } " value 1` ] = `
87
87
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
88
88
- options.modules should be one of these:
89
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
89
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
90
90
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
91
91
Details :
92
92
* options .modules .localIdentRegExp should be one of these :
@@ -106,7 +106,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
106
106
exports [` validate options should throw an error on the "modules" option with "{ " mode" :" globals" } " value 1` ] = `
107
107
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
108
108
- options.modules should be one of these:
109
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
109
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
110
110
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
111
111
Details :
112
112
* options .modules .mode should be one of these :
@@ -120,7 +120,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
120
120
exports [` validate options should throw an error on the "modules" option with "{ " mode" :" locals" } " value 1` ] = `
121
121
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
122
122
- options.modules should be one of these:
123
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
123
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
124
124
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
125
125
Details :
126
126
* options .modules .mode should be one of these :
@@ -134,7 +134,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
134
134
exports [` validate options should throw an error on the "modules" option with "{ " mode" :" pures" } " value 1` ] = `
135
135
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
136
136
- options.modules should be one of these:
137
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
137
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
138
138
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
139
139
Details :
140
140
* options .modules .mode should be one of these :
@@ -148,7 +148,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
148
148
exports [` validate options should throw an error on the "modules" option with "{ " mode" :true } " value 1` ] = `
149
149
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
150
150
- options.modules should be one of these:
151
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
151
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
152
152
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
153
153
Details :
154
154
* options .modules .mode should be one of these :
@@ -159,56 +159,62 @@ exports[`validate options should throw an error on the "modules" option with "{"
159
159
* options.modules.mode should be an instance of function ."
160
160
`;
161
161
162
+ exports [` validate options should throw an error on the "modules" option with "{ " namedExport" :" invalid" } " value 1` ] = `
163
+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
164
+ - options.modules.namedExport should be a boolean.
165
+ -> Use the named export ES modules."
166
+ ` ;
167
+
162
168
exports [` validate options should throw an error on the "modules" option with "globals" value 1` ] = `
163
169
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
164
170
- options.modules should be one of these:
165
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
171
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
166
172
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
167
173
Details :
168
174
* options .modules should be a boolean .
169
175
* options .modules should be one of these :
170
176
\\" local\\ " | \\" global\\ " | \\" pure\\ "
171
177
* options .modules should be an object :
172
- object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, localsConvention?, context?, hashPrefix?, getLocalIdent? }"
178
+ object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, localsConvention?, context?, hashPrefix?, getLocalIdent?, namedExport? }"
173
179
`;
174
180
175
181
exports [` validate options should throw an error on the "modules" option with "locals" value 1` ] = `
176
182
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
177
183
- options.modules should be one of these:
178
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
184
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
179
185
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
180
186
Details :
181
187
* options .modules should be a boolean .
182
188
* options .modules should be one of these :
183
189
\\" local\\ " | \\" global\\ " | \\" pure\\ "
184
190
* options .modules should be an object :
185
- object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, localsConvention?, context?, hashPrefix?, getLocalIdent? }"
191
+ object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, localsConvention?, context?, hashPrefix?, getLocalIdent?, namedExport? }"
186
192
`;
187
193
188
194
exports [` validate options should throw an error on the "modules" option with "pures" value 1` ] = `
189
195
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
190
196
- options.modules should be one of these:
191
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
197
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
192
198
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
193
199
Details :
194
200
* options .modules should be a boolean .
195
201
* options .modules should be one of these :
196
202
\\" local\\ " | \\" global\\ " | \\" pure\\ "
197
203
* options .modules should be an object :
198
- object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, localsConvention?, context?, hashPrefix?, getLocalIdent? }"
204
+ object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, localsConvention?, context?, hashPrefix?, getLocalIdent?, namedExport? }"
199
205
`;
200
206
201
207
exports [` validate options should throw an error on the "modules" option with "true" value 1` ] = `
202
208
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
203
209
- options.modules should be one of these:
204
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? }
210
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentRegExp ? , localsConvention ? , context ? , hashPrefix ? , getLocalIdent ? , namedExport ? }
205
211
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
206
212
Details :
207
213
* options .modules should be a boolean .
208
214
* options .modules should be one of these :
209
215
\\" local\\ " | \\" global\\ " | \\" pure\\ "
210
216
* options .modules should be an object :
211
- object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, localsConvention?, context?, hashPrefix?, getLocalIdent? }"
217
+ object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, localsConvention?, context?, hashPrefix?, getLocalIdent?, namedExport? }"
212
218
`;
213
219
214
220
exports [` validate options should throw an error on the "onlyLocals" option with "true" value 1` ] = `
0 commit comments