@@ -36,13 +36,13 @@ test('set the size threshold to inline static assets', async () => {
3636 const { content : logoJs2 } = queryContent ( contents . esm2 ! , / a s s e t s \/ l o g o \. j s / ) ;
3737 expect ( indexJs2 ) . toMatchInlineSnapshot ( `
3838 "import * as __WEBPACK_EXTERNAL_MODULE__assets_logo_js_450929b7__ from "./assets/logo.js";
39- const src_rslib_entry_ = __WEBPACK_EXTERNAL_MODULE__assets_logo_js_450929b7__["default"];
40- export { src_rslib_entry_ as default };
39+ const src = __WEBPACK_EXTERNAL_MODULE__assets_logo_js_450929b7__["default"];
40+ export { src as default };
4141 "
4242 ` ) ;
4343 expect ( logoJs2 ) . toMatchInlineSnapshot ( `
44- "import logo_rslib_entry_namespaceObject from "../static/svg/logo.svg";
45- export { logo_rslib_entry_namespaceObject as default };
44+ "import logo_namespaceObject from "../static/svg/logo.svg";
45+ export { logo_namespaceObject as default };
4646 "
4747 ` ) ;
4848 // cjs
@@ -57,7 +57,7 @@ test('set the size threshold to inline static assets', async () => {
5757 expect ( logoCjs2 ) . toMatchInlineSnapshot ( `
5858 ""use strict";
5959 var __webpack_modules__ = {
60- "./src/assets/logo.svg?__rslib_entry__ ": function(module) {
60+ "./src/assets/logo.svg": function(module) {
6161 module.exports = require("../static/svg/logo.svg");
6262 }
6363 };
@@ -71,7 +71,7 @@ test('set the size threshold to inline static assets', async () => {
7171 __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
7272 return module.exports;
7373 }
74- var __webpack_exports__ = __webpack_require__("./src/assets/logo.svg?__rslib_entry__ ");
74+ var __webpack_exports__ = __webpack_require__("./src/assets/logo.svg");
7575 exports["default"] = __webpack_exports__["default"];
7676 for(var __webpack_i__ in __webpack_exports__)if (-1 === [
7777 "default"
@@ -105,8 +105,8 @@ test('set the assets filename with hash', async () => {
105105 / a s s e t s \/ i m a g e \. j s / ,
106106 ) ;
107107 expect ( imageJs1 ) . toMatchInlineSnapshot ( `
108- "import image_rslib_entry_namespaceObject from "../static/image/image.c74653c1.png";
109- export { image_rslib_entry_namespaceObject as default };
108+ "import image_namespaceObject from "../static/image/image.c74653c1.png";
109+ export { image_namespaceObject as default };
110110 "
111111 ` ) ;
112112 // cjs
@@ -117,7 +117,7 @@ test('set the assets filename with hash', async () => {
117117 expect ( imageCjs1 ) . toMatchInlineSnapshot ( `
118118 ""use strict";
119119 var __webpack_modules__ = {
120- "./src/assets/image.png?__rslib_entry__ ": function(module) {
120+ "./src/assets/image.png": function(module) {
121121 module.exports = require("../static/image/image.c74653c1.png");
122122 }
123123 };
@@ -131,7 +131,7 @@ test('set the assets filename with hash', async () => {
131131 __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
132132 return module.exports;
133133 }
134- var __webpack_exports__ = __webpack_require__("./src/assets/image.png?__rslib_entry__ ");
134+ var __webpack_exports__ = __webpack_require__("./src/assets/image.png");
135135 exports["default"] = __webpack_exports__["default"];
136136 for(var __webpack_i__ in __webpack_exports__)if (-1 === [
137137 "default"
@@ -165,8 +165,8 @@ test('set the assets output path', async () => {
165165 / a s s e t s \/ i m a g e \. j s / ,
166166 ) ;
167167 expect ( imageJs1 ) . toMatchInlineSnapshot ( `
168- "import image_rslib_entry_namespaceObject from "../assets/bundleless/image.png";
169- export { image_rslib_entry_namespaceObject as default };
168+ "import image_namespaceObject from "../assets/bundleless/image.png";
169+ export { image_namespaceObject as default };
170170 "
171171 ` ) ;
172172 // cjs
@@ -177,7 +177,7 @@ test('set the assets output path', async () => {
177177 expect ( imageCjs1 ) . toMatchInlineSnapshot ( `
178178 ""use strict";
179179 var __webpack_modules__ = {
180- "./src/assets/image.png?__rslib_entry__ ": function(module) {
180+ "./src/assets/image.png": function(module) {
181181 module.exports = require("../assets/bundleless/image.png");
182182 }
183183 };
@@ -191,7 +191,7 @@ test('set the assets output path', async () => {
191191 __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
192192 return module.exports;
193193 }
194- var __webpack_exports__ = __webpack_require__("./src/assets/image.png?__rslib_entry__ ");
194+ var __webpack_exports__ = __webpack_require__("./src/assets/image.png");
195195 exports["default"] = __webpack_exports__["default"];
196196 for(var __webpack_i__ in __webpack_exports__)if (-1 === [
197197 "default"
@@ -258,8 +258,8 @@ test('set the assets public path', async () => {
258258 (()=>{
259259 __webpack_require__.p = "/public/path/";
260260 })();
261- const image_rslib_entry_namespaceObject = __webpack_require__.p + "static/image/image.png";
262- export { image_rslib_entry_namespaceObject as default };
261+ const image_namespaceObject = __webpack_require__.p + "static/image/image.png";
262+ export { image_namespaceObject as default };
263263 "
264264 ` ) ;
265265} ) ;
0 commit comments