|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`'process' option should work with Async "preprocessor" Function option: errors 1`] = `Array []`; |
| 3 | +exports[`'process' option should work with Async "preprocessor" Function option: errors 1`] = `[]`; |
4 | 4 |
|
5 | 5 | exports[`'process' option should work with Async "preprocessor" Function option: module 1`] = `
|
6 | 6 | "// Imports
|
7 |
| -import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; |
8 |
| -var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png\\", import.meta.url); |
| 7 | +import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js"; |
| 8 | +var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png", import.meta.url); |
9 | 9 | // Module
|
10 | 10 | var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
|
11 |
| -var code = \\"<div>\\\\n <p>Alexander Krasnoyarov</p>\\\\n <img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\" alt=\\\\\\"alt\\\\\\" />\\\\n<div>\\\\n\\"; |
| 11 | +var code = "<div>\\n <p>Alexander Krasnoyarov</p>\\n <img src=\\"" + ___HTML_LOADER_REPLACEMENT_0___ + "\\" alt=\\"alt\\" />\\n<div>\\n"; |
12 | 12 | // Exports
|
13 | 13 | export default code;"
|
14 | 14 | `;
|
15 | 15 |
|
16 | 16 | exports[`'process' option should work with Async "preprocessor" Function option: result 1`] = `
|
17 | 17 | "<div>
|
18 | 18 | <p>Alexander Krasnoyarov</p>
|
19 |
| - <img src=\\"replaced_file_protocol_/webpack/public/path/image.png\\" alt=\\"alt\\" /> |
| 19 | + <img src="replaced_file_protocol_/webpack/public/path/image.png" alt="alt" /> |
20 | 20 | <div>
|
21 | 21 | "
|
22 | 22 | `;
|
23 | 23 |
|
24 |
| -exports[`'process' option should work with Async "preprocessor" Function option: warnings 1`] = `Array []`; |
| 24 | +exports[`'process' option should work with Async "preprocessor" Function option: warnings 1`] = `[]`; |
25 | 25 |
|
26 |
| -exports[`'process' option should work with the "preprocessor" option #2: errors 1`] = `Array []`; |
| 26 | +exports[`'process' option should work with the "preprocessor" option #2: errors 1`] = `[]`; |
27 | 27 |
|
28 | 28 | exports[`'process' option should work with the "preprocessor" option #2: module 1`] = `
|
29 | 29 | "// Imports
|
30 |
| -import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; |
31 |
| -var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png.webp\\", import.meta.url); |
32 |
| -var ___HTML_LOADER_IMPORT_1___ = new URL(\\"./image.png\\", import.meta.url); |
| 30 | +import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js"; |
| 31 | +var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png.webp", import.meta.url); |
| 32 | +var ___HTML_LOADER_IMPORT_1___ = new URL("./image.png", import.meta.url); |
33 | 33 | // Module
|
34 | 34 | var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
|
35 | 35 | var ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);
|
36 |
| -var code = \\"<picture><source type=\\\\\\"image/webp\\\\\\" srcset=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\"><img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_1___ + \\"\\\\\\"></picture>\\\\n\\"; |
| 36 | +var code = "<picture><source type=\\"image/webp\\" srcset=\\"" + ___HTML_LOADER_REPLACEMENT_0___ + "\\"><img src=\\"" + ___HTML_LOADER_REPLACEMENT_1___ + "\\"></picture>\\n"; |
37 | 37 | // Exports
|
38 | 38 | export default code;"
|
39 | 39 | `;
|
40 | 40 |
|
41 | 41 | exports[`'process' option should work with the "preprocessor" option #2: result 1`] = `
|
42 |
| -"<picture><source type=\\"image/webp\\" srcset=\\"replaced_file_protocol_/webpack/public/path/image.png.webp\\"><img src=\\"replaced_file_protocol_/webpack/public/path/image.png\\"></picture> |
| 42 | +"<picture><source type="image/webp" srcset="replaced_file_protocol_/webpack/public/path/image.png.webp"><img src="replaced_file_protocol_/webpack/public/path/image.png"></picture> |
43 | 43 | "
|
44 | 44 | `;
|
45 | 45 |
|
46 |
| -exports[`'process' option should work with the "preprocessor" option #2: warnings 1`] = `Array []`; |
| 46 | +exports[`'process' option should work with the "preprocessor" option #2: warnings 1`] = `[]`; |
47 | 47 |
|
48 |
| -exports[`'process' option should work with the "preprocessor" option: errors 1`] = `Array []`; |
| 48 | +exports[`'process' option should work with the "preprocessor" option: errors 1`] = `[]`; |
49 | 49 |
|
50 | 50 | exports[`'process' option should work with the "preprocessor" option: module 1`] = `
|
51 | 51 | "// Imports
|
52 |
| -import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; |
53 |
| -var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png\\", import.meta.url); |
| 52 | +import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js"; |
| 53 | +var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png", import.meta.url); |
54 | 54 | // Module
|
55 | 55 | var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
|
56 |
| -var code = \\"<div>\\\\n <p>Alexander Krasnoyarov</p>\\\\n <img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\" alt=\\\\\\"alt\\\\\\" />\\\\n<div>\\\\n\\"; |
| 56 | +var code = "<div>\\n <p>Alexander Krasnoyarov</p>\\n <img src=\\"" + ___HTML_LOADER_REPLACEMENT_0___ + "\\" alt=\\"alt\\" />\\n<div>\\n"; |
57 | 57 | // Exports
|
58 | 58 | export default code;"
|
59 | 59 | `;
|
60 | 60 |
|
61 | 61 | exports[`'process' option should work with the "preprocessor" option: result 1`] = `
|
62 | 62 | "<div>
|
63 | 63 | <p>Alexander Krasnoyarov</p>
|
64 |
| - <img src=\\"replaced_file_protocol_/webpack/public/path/image.png\\" alt=\\"alt\\" /> |
| 64 | + <img src="replaced_file_protocol_/webpack/public/path/image.png" alt="alt" /> |
65 | 65 | <div>
|
66 | 66 | "
|
67 | 67 | `;
|
68 | 68 |
|
69 |
| -exports[`'process' option should work with the "preprocessor" option: warnings 1`] = `Array []`; |
| 69 | +exports[`'process' option should work with the "preprocessor" option: warnings 1`] = `[]`; |
70 | 70 |
|
71 |
| -exports[`'process' option should work with the Async "preprocessor" Function option #2: errors 1`] = `Array []`; |
| 71 | +exports[`'process' option should work with the Async "preprocessor" Function option #2: errors 1`] = `[]`; |
72 | 72 |
|
73 | 73 | exports[`'process' option should work with the Async "preprocessor" Function option #2: module 1`] = `
|
74 | 74 | "// Imports
|
75 |
| -import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; |
76 |
| -var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png.webp\\", import.meta.url); |
77 |
| -var ___HTML_LOADER_IMPORT_1___ = new URL(\\"./image.png\\", import.meta.url); |
| 75 | +import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js"; |
| 76 | +var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png.webp", import.meta.url); |
| 77 | +var ___HTML_LOADER_IMPORT_1___ = new URL("./image.png", import.meta.url); |
78 | 78 | // Module
|
79 | 79 | var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
|
80 | 80 | var ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);
|
81 |
| -var code = \\"<picture><source type=\\\\\\"image/webp\\\\\\" srcset=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\"><img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_1___ + \\"\\\\\\"></picture>\\\\n\\"; |
| 81 | +var code = "<picture><source type=\\"image/webp\\" srcset=\\"" + ___HTML_LOADER_REPLACEMENT_0___ + "\\"><img src=\\"" + ___HTML_LOADER_REPLACEMENT_1___ + "\\"></picture>\\n"; |
82 | 82 | // Exports
|
83 | 83 | export default code;"
|
84 | 84 | `;
|
85 | 85 |
|
86 | 86 | exports[`'process' option should work with the Async "preprocessor" Function option #2: result 1`] = `
|
87 |
| -"<picture><source type=\\"image/webp\\" srcset=\\"replaced_file_protocol_/webpack/public/path/image.png.webp\\"><img src=\\"replaced_file_protocol_/webpack/public/path/image.png\\"></picture> |
| 87 | +"<picture><source type="image/webp" srcset="replaced_file_protocol_/webpack/public/path/image.png.webp"><img src="replaced_file_protocol_/webpack/public/path/image.png"></picture> |
88 | 88 | "
|
89 | 89 | `;
|
90 | 90 |
|
91 |
| -exports[`'process' option should work with the Async "preprocessor" Function option #2: warnings 1`] = `Array []`; |
| 91 | +exports[`'process' option should work with the Async "preprocessor" Function option #2: warnings 1`] = `[]`; |
0 commit comments