@@ -5,7 +5,7 @@ exports[`'process' option should work with Async "preprocessor" Function option:
55exports [` 'process' option should work with Async "preprocessor" Function option: module 1` ] = `
66"// Imports
77import ___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) ;
99// Module
1010var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
1111var 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;"
1616exports[`'process' option should work with Async "preprocessor" Function option: result 1`] = `
1717"<div >
1818 <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\\" />
2020<div >
2121"
2222`;
@@ -28,8 +28,8 @@ exports[`'process' option should work with the "preprocessor" option #2: errors
2828exports[`'process' option should work with the "preprocessor" option #2: module 1`] = `
2929"// Imports
3030import ___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) ;
3333// Module
3434var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
3535var ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);
@@ -39,7 +39,7 @@ export default code;"
3939`;
4040
4141exports[`'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>
4343"
4444`;
4545
@@ -50,7 +50,7 @@ exports[`'process' option should work with the "preprocessor" option: errors 1`]
5050exports[`'process' option should work with the " preprocessor" option: module 1`] = `
5151" // Imports
5252import ___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) ;
5454// Module
5555var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
5656var 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;"
6161exports[`'process' option should work with the "preprocessor" option: result 1`] = `
6262"<div >
6363 <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\\" />
6565<div >
6666"
6767`;
@@ -73,8 +73,8 @@ exports[`'process' option should work with the Async "preprocessor" Function opt
7373exports[`'process' option should work with the Async "preprocessor" Function option #2: module 1`] = `
7474"// Imports
7575import ___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) ;
7878// Module
7979var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
8080var ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);
@@ -84,7 +84,7 @@ export default code;"
8484`;
8585
8686exports[`'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>
8888"
8989`;
9090
0 commit comments