@@ -48,10 +48,15 @@ exports[`validate options should throw an error on the "modules" option with "{"
4848 - options.modules.context should be a string."
4949` ;
5050
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+
5156exports [` validate options should throw an error on the "modules" option with "{ " getLocalIdent" :[]} " value 1` ] = `
5257"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
5358 - 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 ? }
5560 - > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
5661 Details :
5762 * options .modules .getLocalIdent should be one of these :
@@ -74,7 +79,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
7479exports [` validate options should throw an error on the "modules" option with "{ " localIdentRegExp" :true } " value 1` ] = `
7580"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
7681 - 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 ? }
7883 - > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
7984 Details :
8085 * options .modules .localIdentRegExp should be one of these :
@@ -111,53 +116,53 @@ exports[`validate options should throw an error on the "modules" option with "{"
111116exports [` validate options should throw an error on the "modules" option with "globals" value 1` ] = `
112117"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
113118 - 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 ? }
115120 - > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
116121 Details :
117122 * options .modules should be a boolean .
118123 * options .modules should be one of these :
119124 \\" local\\ " | \\" global\\ " | \\" pure\\ "
120125 * options .modules should be an object :
121- object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }"
126+ object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent?, exportGlobals? }"
122127`;
123128
124129exports [` validate options should throw an error on the "modules" option with "locals" value 1` ] = `
125130"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
126131 - 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 ? }
128133 - > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
129134 Details :
130135 * options .modules should be a boolean .
131136 * options .modules should be one of these :
132137 \\" local\\ " | \\" global\\ " | \\" pure\\ "
133138 * options .modules should be an object :
134- object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }"
139+ object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent?, exportGlobals? }"
135140`;
136141
137142exports [` validate options should throw an error on the "modules" option with "pures" value 1` ] = `
138143"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
139144 - 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 ? }
141146 - > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
142147 Details :
143148 * options .modules should be a boolean .
144149 * options .modules should be one of these :
145150 \\" local\\ " | \\" global\\ " | \\" pure\\ "
146151 * options .modules should be an object :
147- object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }"
152+ object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent?, exportGlobals? }"
148153`;
149154
150155exports [` validate options should throw an error on the "modules" option with "true" value 1` ] = `
151156"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
152157 - 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 ? }
154159 - > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
155160 Details :
156161 * options .modules should be a boolean .
157162 * options .modules should be one of these :
158163 \\" local\\ " | \\" global\\ " | \\" pure\\ "
159164 * options .modules should be an object :
160- object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? }"
165+ object { mode?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent?, exportGlobals? }"
161166`;
162167
163168exports [` validate options should throw an error on the "onlyLocals" option with "true" value 1` ] = `
0 commit comments