@@ -48,10 +48,15 @@ exports[`validate options should throw an error on the "modules" option with "{"
48
48
- options.modules.context should be a string."
49
49
` ;
50
50
51
+ exports [` validate options should throw an error on the "modules" option with "{ " exportGlobals" :" invalid" } " value 1` ] = `
52
+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
53
+ - options.modules.exportGlobals should be a boolean."
54
+ ` ;
55
+
51
56
exports [` validate options should throw an error on the "modules" option with "{ " getLocalIdent" :[]} " value 1` ] = `
52
57
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
53
58
- options.modules should be one of these:
54
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? }
59
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? , exportGlobals ? }
55
60
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
56
61
Details :
57
62
* options .modules .getLocalIdent should be one of these :
@@ -74,7 +79,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
74
79
exports [` validate options should throw an error on the "modules" option with "{ " localIdentRegExp" :true } " value 1` ] = `
75
80
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
76
81
- options.modules should be one of these:
77
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? }
82
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? , exportGlobals ? }
78
83
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
79
84
Details :
80
85
* options .modules .localIdentRegExp should be one of these :
@@ -111,53 +116,53 @@ exports[`validate options should throw an error on the "modules" option with "{"
111
116
exports [` validate options should throw an error on the "modules" option with "globals" value 1` ] = `
112
117
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
113
118
- options.modules should be one of these:
114
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? }
119
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? , exportGlobals ? }
115
120
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
116
121
Details :
117
122
* options .modules should be a boolean .
118
123
* options .modules should be one of these :
119
124
\\" local\\ " | \\" global\\ " | \\" pure\\ "
120
125
* options .modules should be an object :
121
- object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }"
126
+ object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent?, exportGlobals? }"
122
127
`;
123
128
124
129
exports [` validate options should throw an error on the "modules" option with "locals" value 1` ] = `
125
130
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
126
131
- options.modules should be one of these:
127
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? }
132
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? , exportGlobals ? }
128
133
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
129
134
Details :
130
135
* options .modules should be a boolean .
131
136
* options .modules should be one of these :
132
137
\\" local\\ " | \\" global\\ " | \\" pure\\ "
133
138
* options .modules should be an object :
134
- object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }"
139
+ object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent?, exportGlobals? }"
135
140
`;
136
141
137
142
exports [` validate options should throw an error on the "modules" option with "pures" value 1` ] = `
138
143
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
139
144
- options.modules should be one of these:
140
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? }
145
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? , exportGlobals ? }
141
146
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
142
147
Details :
143
148
* options .modules should be a boolean .
144
149
* options .modules should be one of these :
145
150
\\" local\\ " | \\" global\\ " | \\" pure\\ "
146
151
* options .modules should be an object :
147
- object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }"
152
+ object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent?, exportGlobals? }"
148
153
`;
149
154
150
155
exports [` validate options should throw an error on the "modules" option with "true" value 1` ] = `
151
156
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
152
157
- options.modules should be one of these:
153
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? }
158
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { mode ? , localIdentName ? , localIdentRegExp ? , context ? , hashPrefix ? , getLocalIdent ? , exportGlobals ? }
154
159
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
155
160
Details :
156
161
* options .modules should be a boolean .
157
162
* options .modules should be one of these :
158
163
\\" local\\ " | \\" global\\ " | \\" pure\\ "
159
164
* options .modules should be an object :
160
- object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }"
165
+ object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent?, exportGlobals? }"
161
166
`;
162
167
163
168
exports [` validate options should throw an error on the "onlyLocals" option with "true" value 1` ] = `
0 commit comments