feat(css): support css asset in bundle mode and esm/cjs #340
test.yml
on: pull_request
Matrix: changes
Matrix: integration-e2e
Matrix: ut
Matrix: benchmark
Test passed or skipped
0s
Annotations
19 errors and 4 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,12 @@
"dev": {
"progressBar": false,
},
"mode": "production",
"output": {
+ "assetPrefix": "auto",
+ "dataUriLimit": 0,
"distPath": {
"css": "./",
"cssAsync": "./",
"js": "./",
"jsAsync": "./",
@@ -243,10 +245,12 @@
"dev": {
"progressBar": false,
},
"mode": "production",
"output": {
+ "assetPrefix": "auto",
+ "dataUriLimit": 0,
"distPath": {
"css": "./",
"cssAsync": "./",
"js": "./",
"jsAsync": "./",
❯ tests/config.test.ts:203:35
|
ut (ubuntu-latest, 20)
Process completed with exit code 1.
|
ut (ubuntu-latest, 18)
The job was canceled because "ubuntu-latest_20" 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,12 @@
"dev": {
"progressBar": false,
},
"mode": "production",
"output": {
+ "assetPrefix": "auto",
+ "dataUriLimit": 0,
"distPath": {
"css": "./",
"cssAsync": "./",
"js": "./",
"jsAsync": "./",
@@ -243,10 +245,12 @@
"dev": {
"progressBar": false,
},
"mode": "production",
"output": {
+ "assetPrefix": "auto",
+ "dataUriLimit": 0,
"distPath": {
"css": "./",
"cssAsync": "./",
"js": "./",
"jsAsync": "./",
❯ tests/config.test.ts:203:35
|
ut (ubuntu-latest, 18)
Process completed with exit code 1.
|
ut (18, windows-latest)
The job was canceled because "ubuntu-latest_20" failed.
|
ut (18, windows-latest)
The operation was canceled.
|
ut (ubuntu-latest, 22)
The job was canceled because "ubuntu-latest_20" failed.
|
ut (ubuntu-latest, 22)
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__.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-e2e (ubuntu-latest, 20)
Process completed with exit code 1.
|
integration-e2e (18, windows-latest)
The job was canceled because "ubuntu-latest_20" failed.
|
integration-e2e (18, windows-latest)
The operation was canceled.
|
integration-e2e (ubuntu-latest, 22)
The job was canceled because "ubuntu-latest_20" 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__.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-e2e (ubuntu-latest, 22)
The operation was canceled.
|
integration-e2e (ubuntu-latest, 18)
The job was canceled because "ubuntu-latest_20" 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__.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-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
|
integration-e2e (ubuntu-latest, 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|