Skip to content

feat(css): support css asset in bundle mode and esm/cjs #339

feat(css): support css asset in bundle mode and esm/cjs

feat(css): support css asset in bundle mode and esm/cjs #339

Triggered via pull request December 18, 2024 04:36
Status Failure
Total duration 2m 48s
Artifacts

test.yml

on: pull_request
Matrix: changes
Matrix: integration-e2e
Matrix: ut
Matrix: benchmark
Test passed or skipped
0s
Test passed or skipped
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 5 warnings
tests/config.test.ts > Should compose create Rsbuild config correctly > Merge Rsbuild config: packages/core/tests/config.test.ts#L203
Error: Snapshot `Should compose create Rsbuild config correctly > Merge Rsbuild config 1` mismatched - Expected + Received @@ -4,10 +4,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -124,10 +125,11 @@ "source": { "entry": {}, "preEntry": "./b.js", }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { @@ -243,10 +245,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -366,10 +369,11 @@ "./c.js", "./d.js", ], }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { @@ -474,10 +478,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -589,10 +594,11 @@ "source": { "entry": {}, "preEntry": "./a.js", }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { ❯ tests/config.test.ts:203:35
ut (ubuntu-latest, 20)
Process completed with exit code 1.
tests/config.test.ts > Should compose create Rsbuild config correctly > Merge Rsbuild config: packages/core/tests/config.test.ts#L203
Error: Snapshot `Should compose create Rsbuild config correctly > Merge Rsbuild config 1` mismatched - Expected + Received @@ -4,10 +4,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -124,10 +125,11 @@ "source": { "entry": {}, "preEntry": "./b.js", }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { @@ -243,10 +245,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -366,10 +369,11 @@ "./c.js", "./d.js", ], }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { @@ -474,10 +478,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -589,10 +594,11 @@ "source": { "entry": {}, "preEntry": "./a.js", }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { ❯ tests/config.test.ts:203:35
ut (ubuntu-latest, 22)
Process completed with exit code 1.
ut (18, windows-latest)
The job was canceled because "ubuntu-latest_22" failed.
ut (18, windows-latest)
The operation was canceled.
ut (ubuntu-latest, 18)
The job was canceled because "ubuntu-latest_22" failed.
tests/config.test.ts > Should compose create Rsbuild config correctly > Merge Rsbuild config: packages/core/tests/config.test.ts#L203
Error: Snapshot `Should compose create Rsbuild config correctly > Merge Rsbuild config 1` mismatched - Expected + Received @@ -4,10 +4,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -124,10 +125,11 @@ "source": { "entry": {}, "preEntry": "./b.js", }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { @@ -243,10 +245,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -366,10 +369,11 @@ "./c.js", "./d.js", ], }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { @@ -474,10 +478,11 @@ "dev": { "progressBar": false, }, "mode": "production", "output": { + "dataUriLimit": 0, "distPath": { "css": "./", "cssAsync": "./", "js": "./", "jsAsync": "./", @@ -589,10 +594,11 @@ "source": { "entry": {}, "preEntry": "./a.js", }, "tools": { + "bundlerChain": [Function], "htmlPlugin": false, "rspack": [ { "experiments": { "rspackFuture": { ❯ tests/config.test.ts:203:35
ut (ubuntu-latest, 18)
The operation was canceled.
integration/asset/index.test.ts > set the size threshold to inline static assets: 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__.p = "/"; + })(); + 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-e2e (ubuntu-latest, 22)
Process completed with exit code 1.
integration-e2e (ubuntu-latest, 20)
The job was canceled because "ubuntu-latest_22" failed.
integration/asset/index.test.ts > set the size threshold to inline static assets: 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__.p = "/"; + })(); + 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-e2e (ubuntu-latest, 20)
The operation was canceled.
integration-e2e (18, windows-latest)
The job was canceled because "ubuntu-latest_22" failed.
integration-e2e (18, windows-latest)
The operation was canceled.
integration-e2e (ubuntu-latest, 18)
The job was canceled because "ubuntu-latest_22" failed.
integration/asset/index.test.ts > set the size threshold to inline static assets: 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__.p = "/"; + })(); + 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-e2e (ubuntu-latest, 18)
The operation was canceled.
changes (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
changes (18)
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
ut (ubuntu-latest, 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ut (ubuntu-latest, 22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
integration-e2e (ubuntu-latest, 22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636