|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`"esModule" option should work when not specified: errors 1`] = `Array []`; |
| 4 | + |
| 5 | +exports[`"esModule" option should work when not specified: module 1`] = ` |
| 6 | +"// Imports |
| 7 | +var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); |
| 8 | +var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./imported.css\\"); |
| 9 | +var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../../src/runtime/getUrl.js\\"); |
| 10 | +var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./img.png\\"); |
| 11 | +exports = ___CSS_LOADER_API_IMPORT___(false); |
| 12 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 13 | +var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
| 14 | +// Module |
| 15 | +exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); |
| 16 | +// Exports |
| 17 | +module.exports = exports; |
| 18 | +" |
| 19 | +`; |
| 20 | + |
| 21 | +exports[`"esModule" option should work when not specified: result 1`] = ` |
| 22 | +Array [ |
| 23 | + Array [ |
| 24 | + "../../src/index.js?[ident]!./es-module/imported.css", |
| 25 | + ".foo { |
| 26 | + color: red; |
| 27 | +} |
| 28 | +", |
| 29 | + "", |
| 30 | + ], |
| 31 | + Array [ |
| 32 | + "./es-module/source.css", |
| 33 | + "@charset \\"UTF-8\\"; |
| 34 | +
|
| 35 | +/* Comment */ |
| 36 | +
|
| 37 | +.class { |
| 38 | + color: red; |
| 39 | + background: url(/webpack/public/path/img.png); |
| 40 | +} |
| 41 | +", |
| 42 | + "", |
| 43 | + ], |
| 44 | +] |
| 45 | +`; |
| 46 | + |
| 47 | +exports[`"esModule" option should work when not specified: warnings 1`] = `Array []`; |
| 48 | + |
| 49 | +exports[`"esModule" option should work with a value equal to "false": errors 1`] = `Array []`; |
| 50 | + |
| 51 | +exports[`"esModule" option should work with a value equal to "false": module 1`] = ` |
| 52 | +"// Imports |
| 53 | +var ___CSS_LOADER_API_IMPORT___ = require(\\"../../../src/runtime/api.js\\"); |
| 54 | +var ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\\"-!../../../src/index.js??[ident]!./imported.css\\"); |
| 55 | +var ___CSS_LOADER_GET_URL_IMPORT___ = require(\\"../../../src/runtime/getUrl.js\\"); |
| 56 | +var ___CSS_LOADER_URL_IMPORT_0___ = require(\\"./img.png\\"); |
| 57 | +exports = ___CSS_LOADER_API_IMPORT___(false); |
| 58 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 59 | +var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
| 60 | +// Module |
| 61 | +exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); |
| 62 | +// Exports |
| 63 | +module.exports = exports; |
| 64 | +" |
| 65 | +`; |
| 66 | + |
| 67 | +exports[`"esModule" option should work with a value equal to "false": result 1`] = ` |
| 68 | +Array [ |
| 69 | + Array [ |
| 70 | + "../../src/index.js?[ident]!./es-module/imported.css", |
| 71 | + ".foo { |
| 72 | + color: red; |
| 73 | +} |
| 74 | +", |
| 75 | + "", |
| 76 | + ], |
| 77 | + Array [ |
| 78 | + "./es-module/source.css", |
| 79 | + "@charset \\"UTF-8\\"; |
| 80 | +
|
| 81 | +/* Comment */ |
| 82 | +
|
| 83 | +.class { |
| 84 | + color: red; |
| 85 | + background: url(/webpack/public/path/img.png); |
| 86 | +} |
| 87 | +", |
| 88 | + "", |
| 89 | + ], |
| 90 | +] |
| 91 | +`; |
| 92 | + |
| 93 | +exports[`"esModule" option should work with a value equal to "false": warnings 1`] = `Array []`; |
| 94 | + |
| 95 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "global": errors 1`] = `Array []`; |
| 96 | + |
| 97 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "global": module 1`] = ` |
| 98 | +"// Imports |
| 99 | +import ___CSS_LOADER_API_IMPORT___ from \\"../../../src/runtime/api.js\\"; |
| 100 | +import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\"-!../../../src/index.js??[ident]!./imported.css\\"; |
| 101 | +import ___CSS_LOADER_GET_URL_IMPORT___ from \\"../../../src/runtime/getUrl.js\\"; |
| 102 | +import ___CSS_LOADER_URL_IMPORT_0___ from \\"./img.png\\"; |
| 103 | +var exports = ___CSS_LOADER_API_IMPORT___(false); |
| 104 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 105 | +var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
| 106 | +// Module |
| 107 | +exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); |
| 108 | +// Exports |
| 109 | +export default exports; |
| 110 | +" |
| 111 | +`; |
| 112 | + |
| 113 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "global": result 1`] = ` |
| 114 | +Array [ |
| 115 | + Array [ |
| 116 | + "../../src/index.js?[ident]!./es-module/imported.css", |
| 117 | + ".foo { |
| 118 | + color: red; |
| 119 | +} |
| 120 | +", |
| 121 | + "", |
| 122 | + ], |
| 123 | + Array [ |
| 124 | + "./es-module/source.css", |
| 125 | + "@charset \\"UTF-8\\"; |
| 126 | +
|
| 127 | +/* Comment */ |
| 128 | +
|
| 129 | +.class { |
| 130 | + color: red; |
| 131 | + background: url(/webpack/public/path/img.png); |
| 132 | +} |
| 133 | +", |
| 134 | + "", |
| 135 | + ], |
| 136 | +] |
| 137 | +`; |
| 138 | + |
| 139 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "global": warnings 1`] = `Array []`; |
| 140 | + |
| 141 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "local": errors 1`] = `Array []`; |
| 142 | + |
| 143 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "local": module 1`] = ` |
| 144 | +"// Imports |
| 145 | +import ___CSS_LOADER_API_IMPORT___ from \\"../../../src/runtime/api.js\\"; |
| 146 | +import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\"-!../../../src/index.js??[ident]!./imported.css\\"; |
| 147 | +import ___CSS_LOADER_GET_URL_IMPORT___ from \\"../../../src/runtime/getUrl.js\\"; |
| 148 | +import ___CSS_LOADER_URL_IMPORT_0___ from \\"./img.png\\"; |
| 149 | +var exports = ___CSS_LOADER_API_IMPORT___(false); |
| 150 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 151 | +var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
| 152 | +// Module |
| 153 | +exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n._3S58jeCkC6SOPhVLbU-Bwn {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); |
| 154 | +// Exports |
| 155 | +exports.locals = { |
| 156 | + \\"class\\": \\"_3S58jeCkC6SOPhVLbU-Bwn\\" |
| 157 | +}; |
| 158 | +export default exports; |
| 159 | +" |
| 160 | +`; |
| 161 | + |
| 162 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "local": result 1`] = ` |
| 163 | +Array [ |
| 164 | + Array [ |
| 165 | + "../../src/index.js?[ident]!./es-module/imported.css", |
| 166 | + "._3xfjtZ03Dx7Cld7Debi-wl { |
| 167 | + color: red; |
| 168 | +} |
| 169 | +", |
| 170 | + "", |
| 171 | + ], |
| 172 | + Array [ |
| 173 | + "./es-module/source.css", |
| 174 | + "@charset \\"UTF-8\\"; |
| 175 | +
|
| 176 | +/* Comment */ |
| 177 | +
|
| 178 | +._3S58jeCkC6SOPhVLbU-Bwn { |
| 179 | + color: red; |
| 180 | + background: url(/webpack/public/path/img.png); |
| 181 | +} |
| 182 | +", |
| 183 | + "", |
| 184 | + ], |
| 185 | +] |
| 186 | +`; |
| 187 | + |
| 188 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "local": warnings 1`] = `Array []`; |
| 189 | + |
| 190 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "pure": errors 1`] = `Array []`; |
| 191 | + |
| 192 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "pure": module 1`] = ` |
| 193 | +"// Imports |
| 194 | +import ___CSS_LOADER_API_IMPORT___ from \\"../../../src/runtime/api.js\\"; |
| 195 | +import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\"-!../../../src/index.js??[ident]!./imported.css\\"; |
| 196 | +import ___CSS_LOADER_GET_URL_IMPORT___ from \\"../../../src/runtime/getUrl.js\\"; |
| 197 | +import ___CSS_LOADER_URL_IMPORT_0___ from \\"./img.png\\"; |
| 198 | +var exports = ___CSS_LOADER_API_IMPORT___(false); |
| 199 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 200 | +var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
| 201 | +// Module |
| 202 | +exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n._3S58jeCkC6SOPhVLbU-Bwn {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); |
| 203 | +// Exports |
| 204 | +exports.locals = { |
| 205 | + \\"class\\": \\"_3S58jeCkC6SOPhVLbU-Bwn\\" |
| 206 | +}; |
| 207 | +export default exports; |
| 208 | +" |
| 209 | +`; |
| 210 | + |
| 211 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "pure": result 1`] = ` |
| 212 | +Array [ |
| 213 | + Array [ |
| 214 | + "../../src/index.js?[ident]!./es-module/imported.css", |
| 215 | + "._3xfjtZ03Dx7Cld7Debi-wl { |
| 216 | + color: red; |
| 217 | +} |
| 218 | +", |
| 219 | + "", |
| 220 | + ], |
| 221 | + Array [ |
| 222 | + "./es-module/source.css", |
| 223 | + "@charset \\"UTF-8\\"; |
| 224 | +
|
| 225 | +/* Comment */ |
| 226 | +
|
| 227 | +._3S58jeCkC6SOPhVLbU-Bwn { |
| 228 | + color: red; |
| 229 | + background: url(/webpack/public/path/img.png); |
| 230 | +} |
| 231 | +", |
| 232 | + "", |
| 233 | + ], |
| 234 | +] |
| 235 | +`; |
| 236 | + |
| 237 | +exports[`"esModule" option should work with a value equal to "true" and the "mode" value equal to "pure": warnings 1`] = `Array []`; |
| 238 | + |
| 239 | +exports[`"esModule" option should work with a value equal to "true": errors 1`] = `Array []`; |
| 240 | + |
| 241 | +exports[`"esModule" option should work with a value equal to "true": module 1`] = ` |
| 242 | +"// Imports |
| 243 | +import ___CSS_LOADER_API_IMPORT___ from \\"../../../src/runtime/api.js\\"; |
| 244 | +import ___CSS_LOADER_AT_RULE_IMPORT_0___ from \\"-!../../../src/index.js??[ident]!./imported.css\\"; |
| 245 | +import ___CSS_LOADER_GET_URL_IMPORT___ from \\"../../../src/runtime/getUrl.js\\"; |
| 246 | +import ___CSS_LOADER_URL_IMPORT_0___ from \\"./img.png\\"; |
| 247 | +var exports = ___CSS_LOADER_API_IMPORT___(false); |
| 248 | +exports.i(___CSS_LOADER_AT_RULE_IMPORT_0___); |
| 249 | +var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
| 250 | +// Module |
| 251 | +exports.push([module.id, \\"@charset \\\\\\"UTF-8\\\\\\";\\\\n\\\\n/* Comment */\\\\n\\\\n.class {\\\\n color: red;\\\\n background: url(\\" + ___CSS_LOADER_URL_REPLACEMENT_0___ + \\");\\\\n}\\\\n\\", \\"\\"]); |
| 252 | +// Exports |
| 253 | +export default exports; |
| 254 | +" |
| 255 | +`; |
| 256 | + |
| 257 | +exports[`"esModule" option should work with a value equal to "true": result 1`] = ` |
| 258 | +Array [ |
| 259 | + Array [ |
| 260 | + "../../src/index.js?[ident]!./es-module/imported.css", |
| 261 | + ".foo { |
| 262 | + color: red; |
| 263 | +} |
| 264 | +", |
| 265 | + "", |
| 266 | + ], |
| 267 | + Array [ |
| 268 | + "./es-module/source.css", |
| 269 | + "@charset \\"UTF-8\\"; |
| 270 | +
|
| 271 | +/* Comment */ |
| 272 | +
|
| 273 | +.class { |
| 274 | + color: red; |
| 275 | + background: url(/webpack/public/path/img.png); |
| 276 | +} |
| 277 | +", |
| 278 | + "", |
| 279 | + ], |
| 280 | +] |
| 281 | +`; |
| 282 | + |
| 283 | +exports[`"esModule" option should work with a value equal to "true": warnings 1`] = `Array []`; |
0 commit comments