@@ -5,7 +5,7 @@ exports[`'process' option should work with Async "preprocessor" Function option:
5
5
exports [` 'process' option should work with Async "preprocessor" Function option: module 1` ] = `
6
6
"// Imports
7
7
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\ "../../src/runtime/getUrl.js\\ ";
8
- import ___HTML_LOADER_IMPORT_0___ from \\ "./image.png\\ ";
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
11
var code = \\ "<div >\\\\n <p >Alexander Krasnoyarov</p >\\\\n <img src =\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\" alt =\\\\\\"alt\\\\\\" />\\\\n<div >\\\\n\\";
@@ -16,7 +16,7 @@ export default code;"
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 =\\"/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
`;
@@ -28,8 +28,8 @@ exports[`'process' option should work with the "preprocessor" option #2: errors
28
28
exports[`'process' option should work with the "preprocessor" option #2: module 1`] = `
29
29
"// Imports
30
30
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\";
31
- import ___HTML_LOADER_IMPORT_0___ from \\"./image.png.webp\\";
32
- import ___HTML_LOADER_IMPORT_1___ from \\"./image.png\\";
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___);
@@ -39,7 +39,7 @@ 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 =\\"/webpack/public/path/image.png.webp\\"><img src =\\"/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
@@ -50,7 +50,7 @@ exports[`'process' option should work with the "preprocessor" option: errors 1`]
50
50
exports[`'process' option should work with the " preprocessor" option: module 1`] = `
51
51
" // Imports
52
52
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\" ../../src/runtime/getUrl.js\\";
53
- import ___HTML_LOADER_IMPORT_0___ from \\"./image.png\\";
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
56
var code = \\"<div>\\\\n <p>Alexander Krasnoyarov</p>\\\\n <img src =\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\" alt =\\\\\\"alt\\\\\\" />\\\\n<div >\\\\n\\";
@@ -61,7 +61,7 @@ export default code;"
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 =\\"/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
`;
@@ -73,8 +73,8 @@ exports[`'process' option should work with the Async "preprocessor" Function opt
73
73
exports[`'process' option should work with the Async "preprocessor" Function option #2: module 1`] = `
74
74
"// Imports
75
75
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\";
76
- import ___HTML_LOADER_IMPORT_0___ from \\"./image.png.webp\\";
77
- import ___HTML_LOADER_IMPORT_1___ from \\"./image.png\\";
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___);
@@ -84,7 +84,7 @@ 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 =\\"/webpack/public/path/image.png.webp\\"><img src =\\"/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
0 commit comments