feat(css): support css asset in bundle mode and esm/cjs #343
Annotations
3 errors
|
Integration Test (Vitest):
tests/integration/asset/index.test.ts#L10
AssertionError: expected 'var __webpack_module_cache__ = {};\nf…' to contain 'const logo_namespaceObject = "data:im…'
- Expected
+ Received
- const logo_namespaceObject = "data:image/svg+xml;base64
+ var __webpack_module_cache__ = {};
+ function __webpack_require__(moduleId) {
+ var cachedModule = __webpack_module_cache__[moduleId];
+ if (void 0 !== cachedModule) return cachedModule.exports;
+ var module = __webpack_module_cache__[moduleId] = {
+ exports: {}
+ };
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
+ return module.exports;
+ }
+ (()=>{
+ __webpack_require__.g = function() {
+ if ('object' == typeof globalThis) return globalThis;
+ try {
+ return this || new Function('return this')();
+ } catch (e) {
+ if ('object' == typeof window) return window;
+ }
+ }();
+ })();
+ (()=>{
+ var scriptUrl;
+ if ("string" == typeof import.meta.url) scriptUrl = import.meta.url;
+ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
+ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
+ __webpack_require__.p = scriptUrl;
+ })();
+ const logo_namespaceObject = __webpack_require__.p + "static/svg/logo.svg";
+ const src_rslib_entry_ = logo_namespaceObject;
+ export { src_rslib_entry_ as default };
+
❯ integration/asset/index.test.ts:10:44
|
Integration Test (Vitest)
Process completed with exit code 1.
|
Loading