diff --git a/css-extract/cases/chunkFilename-fullhash/expected/async.js b/css-extract/cases/chunkFilename-fullhash/expected/async.js index 3f542ce..a8540e0 100644 --- a/css-extract/cases/chunkFilename-fullhash/expected/async.js +++ b/css-extract/cases/chunkFilename-fullhash/expected/async.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["async"], { -"./async.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./async.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/dependOn-multiple-files-per-entry/expected/entry1.js b/css-extract/cases/dependOn-multiple-files-per-entry/expected/entry1.js index 9fa2c93..d70c3f5 100644 --- a/css-extract/cases/dependOn-multiple-files-per-entry/expected/entry1.js +++ b/css-extract/cases/dependOn-multiple-files-per-entry/expected/entry1.js @@ -1,31 +1,31 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["entry1"], { -"./entryA.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./entryA.js"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* import */ var _styleA_css__rspack_import_0 = __webpack_require__("./styleA.css"); -}), -"./entryB.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +}, +"./entryB.js"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* import */ var _styleB_css__rspack_import_0 = __webpack_require__("./styleB.css"); -}), -"./styleA.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +}, +"./styleA.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), -"./styleB.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +}, +"./styleB.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, },function(__webpack_require__) { var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) } diff --git a/css-extract/cases/dependOn-multiple-files-per-entry/test.js b/css-extract/cases/dependOn-multiple-files-per-entry/test.js index 3d45804..94fcc4a 100644 --- a/css-extract/cases/dependOn-multiple-files-per-entry/test.js +++ b/css-extract/cases/dependOn-multiple-files-per-entry/test.js @@ -2,6 +2,6 @@ const fs = require("fs"); const path = require("path"); module.exports = function (outputDirectory, _stats) { const mainContent = fs.readFileSync(path.resolve(outputDirectory, "common.js"), "utf8"); - expect(mainContent).toContain(`"./styleC.css": (function `); - expect(mainContent).toContain(`"./styleD.css": (function `); + expect(mainContent).toContain(`"./styleC.css"(`); + expect(mainContent).toContain(`"./styleD.css"(`); }; diff --git a/css-extract/cases/dependOn/expected/entry1.js b/css-extract/cases/dependOn/expected/entry1.js index 381629c..49966b8 100644 --- a/css-extract/cases/dependOn/expected/entry1.js +++ b/css-extract/cases/dependOn/expected/entry1.js @@ -1,18 +1,18 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["entry1"], { -"./entryA.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./entryA.js"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); /* import */ var _styleA_css__rspack_import_0 = __webpack_require__("./styleA.css"); -}), -"./styleA.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +}, +"./styleA.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, },function(__webpack_require__) { var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) } diff --git a/css-extract/cases/dependOn/test.js b/css-extract/cases/dependOn/test.js index 7410c0f..ef2b469 100644 --- a/css-extract/cases/dependOn/test.js +++ b/css-extract/cases/dependOn/test.js @@ -2,5 +2,5 @@ const fs = require("fs"); const path = require("path"); module.exports = function (outputDirectory, _stats) { const mainContent = fs.readFileSync(path.resolve(outputDirectory, "common.js"), "utf8"); - expect(mainContent).toContain(`"./styleB.css": (function `); + expect(mainContent).toContain(`"./styleB.css"(`); }; diff --git a/css-extract/cases/insert-function/expected/src_inject_css.js b/css-extract/cases/insert-function/expected/src_inject_css.js index 06cfd2d..d011622 100644 --- a/css-extract/cases/insert-function/expected/src_inject_css.js +++ b/css-extract/cases/insert-function/expected/src_inject_css.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["src_inject_css"], { -"./src/inject.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./src/inject.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/insert-string/expected/src_inject_css.js b/css-extract/cases/insert-string/expected/src_inject_css.js index 06cfd2d..d011622 100644 --- a/css-extract/cases/insert-string/expected/src_inject_css.js +++ b/css-extract/cases/insert-string/expected/src_inject_css.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["src_inject_css"], { -"./src/inject.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./src/inject.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/insert-undefined/expected/src_inject_css.js b/css-extract/cases/insert-undefined/expected/src_inject_css.js index 06cfd2d..d011622 100644 --- a/css-extract/cases/insert-undefined/expected/src_inject_css.js +++ b/css-extract/cases/insert-undefined/expected/src_inject_css.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["src_inject_css"], { -"./src/inject.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./src/inject.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/no-runtime/expected/async.js b/css-extract/cases/no-runtime/expected/async.js index 3f542ce..a8540e0 100644 --- a/css-extract/cases/no-runtime/expected/async.js +++ b/css-extract/cases/no-runtime/expected/async.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["async"], { -"./async.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./async.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/a.js b/css-extract/cases/prefetch-preload/expected/a.js index 56d8685..d37e43b 100644 --- a/css-extract/cases/prefetch-preload/expected/a.js +++ b/css-extract/cases/prefetch-preload/expected/a.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["a"], { -"./a.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./a.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/b.js b/css-extract/cases/prefetch-preload/expected/b.js index 6eb5d06..5a29ec5 100644 --- a/css-extract/cases/prefetch-preload/expected/b.js +++ b/css-extract/cases/prefetch-preload/expected/b.js @@ -1,10 +1,10 @@ (self["webpackChunk"] = self["webpackChunk"] || []).push([["b"], { -"./b.js": (function (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { +"./b.js"(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { __webpack_require__.e(/* import() | b1 */ "b1").then(__webpack_require__.bind(__webpack_require__, "./b1.css")); __webpack_require__.e(/* import() | b2 */ "b2").then(__webpack_require__.bind(__webpack_require__, "./b2.css")); __webpack_require__.e(/* import() | b3 */ "b3").then(__webpack_require__.t.bind(__webpack_require__, "./b3.js", 23)); -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/b1.js b/css-extract/cases/prefetch-preload/expected/b1.js index e0263c0..38dc51e 100644 --- a/css-extract/cases/prefetch-preload/expected/b1.js +++ b/css-extract/cases/prefetch-preload/expected/b1.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["b1"], { -"./b1.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./b1.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/b2.js b/css-extract/cases/prefetch-preload/expected/b2.js index c18cf96..d0d7c95 100644 --- a/css-extract/cases/prefetch-preload/expected/b2.js +++ b/css-extract/cases/prefetch-preload/expected/b2.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["b2"], { -"./b2.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./b2.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/b3.js b/css-extract/cases/prefetch-preload/expected/b3.js index 70b936e..27a8f52 100644 --- a/css-extract/cases/prefetch-preload/expected/b3.js +++ b/css-extract/cases/prefetch-preload/expected/b3.js @@ -1,7 +1,7 @@ (self["webpackChunk"] = self["webpackChunk"] || []).push([["b3"], { -"./b3.js": (function () { +"./b3.js"() { -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/c.js b/css-extract/cases/prefetch-preload/expected/c.js index d86ea7a..7b7f292 100644 --- a/css-extract/cases/prefetch-preload/expected/c.js +++ b/css-extract/cases/prefetch-preload/expected/c.js @@ -1,9 +1,9 @@ (self["webpackChunk"] = self["webpackChunk"] || []).push([["c"], { -"./c.js": (function (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { +"./c.js"(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { __webpack_require__.e(/* import() | c1 */ "c1").then(__webpack_require__.bind(__webpack_require__, "./c1.css")); __webpack_require__.e(/* import() | c2 */ "c2").then(__webpack_require__.bind(__webpack_require__, "./c2.css")); -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/c1.js b/css-extract/cases/prefetch-preload/expected/c1.js index f0256d8..73432bc 100644 --- a/css-extract/cases/prefetch-preload/expected/c1.js +++ b/css-extract/cases/prefetch-preload/expected/c1.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["c1"], { -"./c1.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./c1.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/c2.js b/css-extract/cases/prefetch-preload/expected/c2.js index 94235fa..19a4c2c 100644 --- a/css-extract/cases/prefetch-preload/expected/c2.js +++ b/css-extract/cases/prefetch-preload/expected/c2.js @@ -1,10 +1,10 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["c2"], { -"./c2.css": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"./c2.css"(__unused_webpack_module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); // extracted by css-extract-rspack-plugin -}), +}, }]); \ No newline at end of file diff --git a/css-extract/cases/prefetch-preload/expected/main.js b/css-extract/cases/prefetch-preload/expected/main.js index 51fc380..4ab4a50 100644 --- a/css-extract/cases/prefetch-preload/expected/main.js +++ b/css-extract/cases/prefetch-preload/expected/main.js @@ -494,7 +494,7 @@ link.href = __webpack_require__.p + __webpack_require__.u(chunkId); }; __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); // install a JSONP callback for chunk loading -var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +var __rspack_jsonp = (parentChunkLoadingFunction, data) => { var [chunkIds, moreModules, runtime] = data; // add "moreModules" to the modules object, // then flag all "chunkIds" as loaded and fire callback @@ -524,8 +524,8 @@ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { }; var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || []; -chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); -chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +chunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0)); +chunkLoadingGlobal.push = __rspack_jsonp.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); })(); // webpack/runtime/chunk_prefetch_startup diff --git a/package.json b/package.json index 6bcdca2..ed8d518 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "packageManager": "pnpm@9.15.5", "repository": "web-infra-dev/rspack-plugin-ci", "devDependencies": { - "@rspack/core": "npm:@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040", - "@rspack/cli": "npm:@rspack-canary/cli@1.6.5-canary-e23badc4-20251124174040", + "@rspack/core": "npm:@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444", + "@rspack/cli": "npm:@rspack-canary/cli@1.6.6-canary-7c3506a0-20251201173444", "@webdiscus/pug-loader": "^2.11.1", "@types/cross-spawn": "^6.0.6", "@types/tmp": "^0.2.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c20b563..77bf253 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,11 +15,11 @@ importers: specifier: 29.7.0 version: 29.7.0 '@rspack/cli': - specifier: npm:@rspack-canary/cli@1.6.5-canary-e23badc4-20251124174040 - version: '@rspack-canary/cli@1.6.5-canary-e23badc4-20251124174040(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(@types/express@4.17.21)(webpack-cli@5.1.4)(webpack@5.98.0)' + specifier: npm:@rspack-canary/cli@1.6.6-canary-7c3506a0-20251201173444 + version: '@rspack-canary/cli@1.6.6-canary-7c3506a0-20251201173444(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(@types/express@4.17.21)(webpack-cli@5.1.4)(webpack@5.98.0)' '@rspack/core': - specifier: npm:@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040 - version: '@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040' + specifier: npm:@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444 + version: '@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444' '@types/connect': specifier: ^3.4.38 version: 3.4.38 @@ -52,7 +52,7 @@ importers: version: 7.0.6 css-loader: specifier: ^7.1.2 - version: 7.1.2(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(webpack@5.98.0) + version: 7.1.2(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(webpack@5.98.0) del: specifier: ^6.1.1 version: 6.1.1 @@ -79,7 +79,7 @@ importers: version: 2.1.2(webpack@5.98.0) html-webpack-plugin: specifier: 5.6.3 - version: 5.6.3(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(webpack@5.98.0) + version: 5.6.3(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(webpack@5.98.0) jest: specifier: 29.7.0 version: 29.7.0(@types/node@14.18.63) @@ -115,7 +115,7 @@ importers: version: 1.85.0 sass-loader: specifier: ^16.0.5 - version: 16.0.5(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(sass-embedded@1.85.0)(webpack@5.98.0) + version: 16.0.5(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(sass-embedded@1.85.0)(webpack@5.98.0) tmp: specifier: ^0.2.3 version: 0.2.3 @@ -1246,38 +1246,38 @@ packages: '@module-federation/error-codes@0.15.0': resolution: {integrity: sha512-CFJSF+XKwTcy0PFZ2l/fSUpR4z247+Uwzp1sXVkdIfJ/ATsnqf0Q01f51qqSEA6MYdQi6FKos9FIcu3dCpQNdg==} - '@module-federation/error-codes@0.21.4': - resolution: {integrity: sha512-ClpL5MereWNXh+EgDjz7w4RrC1JlisQTvXDa1gLxpviHafzNDfdViVmuhi9xXVuj+EYo8KU70Y999KHhk9424Q==} + '@module-federation/error-codes@0.21.6': + resolution: {integrity: sha512-MLJUCQ05KnoVl8xd6xs9a5g2/8U+eWmVxg7xiBMeR0+7OjdWUbHwcwgVFatRIwSZvFgKHfWEiI7wsU1q1XbTRQ==} '@module-federation/runtime-core@0.15.0': resolution: {integrity: sha512-RYzI61fRDrhyhaEOXH3AgIGlHiot0wPFXu7F43cr+ZnTi+VlSYWLdlZ4NBuT9uV6JSmH54/c+tEZm5SXgKR2sQ==} - '@module-federation/runtime-core@0.21.4': - resolution: {integrity: sha512-SGpmoOLGNxZofpTOk6Lxb2ewaoz5wMi93AFYuuJB04HTVcngEK+baNeUZ2D/xewrqNIJoMY6f5maUjVfIIBPUA==} + '@module-federation/runtime-core@0.21.6': + resolution: {integrity: sha512-5Hd1Y5qp5lU/aTiK66lidMlM/4ji2gr3EXAtJdreJzkY+bKcI5+21GRcliZ4RAkICmvdxQU5PHPL71XmNc7Lsw==} '@module-federation/runtime-tools@0.15.0': resolution: {integrity: sha512-kzFn3ObUeBp5vaEtN1WMxhTYBuYEErxugu1RzFUERD21X3BZ+b4cWwdFJuBDlsmVjctIg/QSOoZoPXRKAO0foA==} - '@module-federation/runtime-tools@0.21.4': - resolution: {integrity: sha512-RzFKaL0DIjSmkn76KZRfzfB6dD07cvID84950jlNQgdyoQFUGkqD80L6rIpVCJTY/R7LzR3aQjHnoqmq4JPo3w==} + '@module-federation/runtime-tools@0.21.6': + resolution: {integrity: sha512-fnP+ZOZTFeBGiTAnxve+axGmiYn2D60h86nUISXjXClK3LUY1krUfPgf6MaD4YDJ4i51OGXZWPekeMe16pkd8Q==} '@module-federation/runtime@0.15.0': resolution: {integrity: sha512-dTPsCNum9Bhu3yPOcrPYq0YnM9eCMMMNB1wuiqf1+sFbQlNApF0vfZxooqz3ln0/MpgE0jerVvFsLVGfqvC9Ug==} - '@module-federation/runtime@0.21.4': - resolution: {integrity: sha512-wgvGqryurVEvkicufJmTG0ZehynCeNLklv8kIk5BLIsWYSddZAE+xe4xov1kgH5fIJQAoQNkRauFFjVNlHoAkA==} + '@module-federation/runtime@0.21.6': + resolution: {integrity: sha512-+caXwaQqwTNh+CQqyb4mZmXq7iEemRDrTZQGD+zyeH454JAYnJ3s/3oDFizdH6245pk+NiqDyOOkHzzFQorKhQ==} '@module-federation/sdk@0.15.0': resolution: {integrity: sha512-PWiYbGcJrKUD6JZiEPihrXhV3bgXdll4bV7rU+opV7tHaun+Z0CdcawjZ82Xnpb8MCPGmqHwa1MPFeUs66zksw==} - '@module-federation/sdk@0.21.4': - resolution: {integrity: sha512-tzvhOh/oAfX++6zCDDxuvioHY4Jurf8vcfoCbKFxusjmyKr32GPbwFDazUP+OPhYCc3dvaa9oWU6X/qpUBLfJw==} + '@module-federation/sdk@0.21.6': + resolution: {integrity: sha512-x6hARETb8iqHVhEsQBysuWpznNZViUh84qV2yE7AD+g7uIzHKiYdoWqj10posbo5XKf/147qgWDzKZoKoEP2dw==} '@module-federation/webpack-bundler-runtime@0.15.0': resolution: {integrity: sha512-i+3wu2Ljh2TmuUpsnjwZVupOVqV50jP0ndA8PSP4gwMKlgdGeaZ4VH5KkHAXGr2eiYUxYLMrJXz1+eILJqeGDg==} - '@module-federation/webpack-bundler-runtime@0.21.4': - resolution: {integrity: sha512-dusmR3uPnQh9u9ChQo3M+GLOuGFthfvnh7WitF/a1eoeTfRmXqnMFsXtZCUK+f/uXf+64874Zj/bhAgbBcVHZA==} + '@module-federation/webpack-bundler-runtime@0.21.6': + resolution: {integrity: sha512-7zIp3LrcWbhGuFDTUMLJ2FJvcwjlddqhWGxi/MW3ur1a+HaO8v5tF2nl+vElKmbG1DFLU/52l3PElVcWf/YcsQ==} '@napi-rs/wasm-runtime@0.2.11': resolution: {integrity: sha512-9DPkXtvHydrcOsopiYpUgPHpmj0HWZKMUnL2dZqpvC42lsratuBG06V5ipyno0fUek5VlFsNQ+AcFATSrJXgMA==} @@ -1309,66 +1309,66 @@ packages: engines: {node: '>=18'} hasBin: true - '@rspack-canary/binding-darwin-arm64@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-miKCbECqwfn4ipHPGNNom+Ao1J+1qYkfrQr1zQkyxx+7u7SNe+1AvhRAjeKm0u9zV9NMmXLukiktc7K9WOZjMQ==} + '@rspack-canary/binding-darwin-arm64@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-FfkQ0B2XlXOyTf3EXSTH/H95kh7IBm7mwp8Jneq64K0UatOB48ky1fQDDYQU+oFuQGqa1lOuTBpsdj7KXM+V1g==} cpu: [arm64] os: [darwin] - '@rspack-canary/binding-darwin-x64@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-w4XtCyevD7NO2N0Pzy8LEtZB0Dz0yTYaGOS4PQLCpbi+KxLZfzOYb4Y96jxhSmXpAlXfODeAVkUDeciGhuF6CQ==} + '@rspack-canary/binding-darwin-x64@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-7LutJyeVK0dSuict/WSyZxXXN93SWp9gJPpSR5nW9HUuRyuS4g03jO94KP95Wbd6OSTu+Ta/8+IhPl7VW/+1Hw==} cpu: [x64] os: [darwin] - '@rspack-canary/binding-linux-arm64-gnu@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-B8SZZDefM4gJNJgEbxbAGeMVcFuOIw0UipOkCtsFWT+w5EgyU0yQIlZcSE8mxI0oY2FPLNkV/76//nxDQMVL9A==} + '@rspack-canary/binding-linux-arm64-gnu@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-PVFjjGHSCpeYm+UO4HZUs9naFGxk66LDnLRUlPam+sYHsmLrXdrU6WPLoqgMcwV1mPaAJTpXEaRZfPWb8YYAmQ==} cpu: [arm64] os: [linux] - '@rspack-canary/binding-linux-arm64-musl@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-LIAsASoTYLNR0giVoHvl+8zX0hiB7qqKb+Wc8nLl366WMLZM0ckP+Cplfb4eATi0iP+AsIAgVV6cprwDzaKskQ==} + '@rspack-canary/binding-linux-arm64-musl@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-Ko2BXNlVvEIFXzff46tROZFx1BPzde+hjjc3Zcv4W46lGIjxAwQdf81C0WEClqL9+eaGfpsBw0JSEGS2s/Fndg==} cpu: [arm64] os: [linux] - '@rspack-canary/binding-linux-x64-gnu@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-cnEPDVLalkGRGcKCWPfWYjaOEX4E6ZXYoQhhj/1JILoxSLtNqqIZJE/POiijUMj+hAMobh8WLRO6tONd212wFg==} + '@rspack-canary/binding-linux-x64-gnu@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-sChK5kOOVrZlxXxtbRXrzDHFMMabnmaqMzWDiLLZtCLTZDpQvI4XQUjftewlb81Ko1TP51PW7LSa0xkfyJU6GQ==} cpu: [x64] os: [linux] - '@rspack-canary/binding-linux-x64-musl@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-yFOycKx1Sel+2rVZ32KOv41c8TPXN1nY9JMMsQYXcUlhxrP+k4jSWy2k2gGOfKdDOQdp59w69LBXif5I5SHX4A==} + '@rspack-canary/binding-linux-x64-musl@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-qo3XrZl4Lu51WvsxwYYve2pM47flUh+SBqKYY6a4NGSNzgoWW6vJj8K6wv2hFroSUNUz396FgiE96wLG8jTVfw==} cpu: [x64] os: [linux] - '@rspack-canary/binding-wasm32-wasi@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-g8vKwINAeZaha/vOiYD57G4Dz3WbtFfDXtrCLUFeKDeMRmRkLLjF7vtMPpUcEmp1lfLo1ladu5+p+MR1nHU2ww==} + '@rspack-canary/binding-wasm32-wasi@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-4/nO8/N/WLNdjsSieFCcfxwN7XMTR40ENremF69MwE3D5x6RNlhvcoLDbp5Nc5o0U8mlqExapYOdZvKXxJYr3A==} cpu: [wasm32] - '@rspack-canary/binding-win32-arm64-msvc@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-Ni5+lhlVfMtMzC11EfySOjhW+53I3dct9tb3uNJbzHM7gH5ICdQnAdx6b0O8AVUjdLXK0mk819K3aqx3vnLVkA==} + '@rspack-canary/binding-win32-arm64-msvc@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-an7MRyND7dkLm8JmhQhM/4Eep4tWO8lewyQ3WWengqy1ncxBX8BNuhU9MkxEUWtq7TPB8L3S9xwpycEtnu+a0A==} cpu: [arm64] os: [win32] - '@rspack-canary/binding-win32-ia32-msvc@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-C6DHwY20DVcX/ewHlUv24B0fCsA32x6WX1ba1hm4drAX2G5nnsMyd5Ntu9DlM1JjvZ50h35LM0j7JYa/g5GPhQ==} + '@rspack-canary/binding-win32-ia32-msvc@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-wIdv7CpPT+idGaIAjxBRgn0QtRQq6hmOBk8tZnESsH8qvO1AoeNiJgGczhavKV619sepxlKVTdzIA5oYEYH+WQ==} cpu: [ia32] os: [win32] - '@rspack-canary/binding-win32-x64-msvc@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-7V2HbFBxCgh5bBYUGriILNXYVEPJsl/ArSGd3sXwB7lDYHu6cICw4eOzwL/1B84FHUSg45QC+kUUWjdFwg2IuA==} + '@rspack-canary/binding-win32-x64-msvc@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-Ec/bx5ov4stOA1Xsn856yBWN5DxHeBROH6ccWob7nYoRGQyfLdvi9ScsDhMUqhBduZM0vdiSF0R0gvImrpsAig==} cpu: [x64] os: [win32] - '@rspack-canary/binding@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-ICKqqjAc6biEaE9a3Xi9AcdUDKnzAkHB1TYvuWIEybE1AcxNNbK6ghWHI9J+KpiGdNyVFDjEWvh56MNQwj1MdQ==} + '@rspack-canary/binding@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-zhtX6XUcIfM5hbrBCc0GHNcrjkSjjtcrtq90Aem93KVBasOX1eYRrglTUKlisKoLAsO9A3J7rLVP/dSavYCF+A==} - '@rspack-canary/cli@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-SYmE8LezCY2LV2OCFrannhhPxAH0MdS9/7XGBO8S9Zteza43Ne28mcTMWRrD21JP8p54w7CO1/uzLrLOW5FVkA==} + '@rspack-canary/cli@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-Cp0jkoLe3W+bUXyWQyF89CDAmMgwkxG5z48tf5JFVFWfDX9UVTZZ+0GvY5h6baDSaPCq5Lgf9gZy+ZxOXRghyA==} hasBin: true peerDependencies: '@rspack/core': ^1.0.0-alpha || ^1.x - '@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040': - resolution: {integrity: sha512-F4U4qWefajd/3AeZ64+4+/0gX9H7z+QU38/lTVr8B5dENuNs3hyTFEXWj83FBdUcYN6pQ1Op7NxjTZbYTFoyBw==} + '@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444': + resolution: {integrity: sha512-NL5m3MLNTMjqhqSdWIWef7KMei59tLa1nBbVFGEzFPOnGzASvHSjf5qeoLxhkjIDFRQ2Jjyy5c4Hnyq3Hgbo/A==} engines: {node: '>=18.12.0'} peerDependencies: '@swc/helpers': '>=0.5.1' @@ -5685,7 +5685,7 @@ snapshots: '@module-federation/error-codes@0.15.0': optional: true - '@module-federation/error-codes@0.21.4': {} + '@module-federation/error-codes@0.21.6': {} '@module-federation/runtime-core@0.15.0': dependencies: @@ -5693,10 +5693,10 @@ snapshots: '@module-federation/sdk': 0.15.0 optional: true - '@module-federation/runtime-core@0.21.4': + '@module-federation/runtime-core@0.21.6': dependencies: - '@module-federation/error-codes': 0.21.4 - '@module-federation/sdk': 0.21.4 + '@module-federation/error-codes': 0.21.6 + '@module-federation/sdk': 0.21.6 '@module-federation/runtime-tools@0.15.0': dependencies: @@ -5704,10 +5704,10 @@ snapshots: '@module-federation/webpack-bundler-runtime': 0.15.0 optional: true - '@module-federation/runtime-tools@0.21.4': + '@module-federation/runtime-tools@0.21.6': dependencies: - '@module-federation/runtime': 0.21.4 - '@module-federation/webpack-bundler-runtime': 0.21.4 + '@module-federation/runtime': 0.21.6 + '@module-federation/webpack-bundler-runtime': 0.21.6 '@module-federation/runtime@0.15.0': dependencies: @@ -5716,16 +5716,16 @@ snapshots: '@module-federation/sdk': 0.15.0 optional: true - '@module-federation/runtime@0.21.4': + '@module-federation/runtime@0.21.6': dependencies: - '@module-federation/error-codes': 0.21.4 - '@module-federation/runtime-core': 0.21.4 - '@module-federation/sdk': 0.21.4 + '@module-federation/error-codes': 0.21.6 + '@module-federation/runtime-core': 0.21.6 + '@module-federation/sdk': 0.21.6 '@module-federation/sdk@0.15.0': optional: true - '@module-federation/sdk@0.21.4': {} + '@module-federation/sdk@0.21.6': {} '@module-federation/webpack-bundler-runtime@0.15.0': dependencies: @@ -5733,10 +5733,10 @@ snapshots: '@module-federation/sdk': 0.15.0 optional: true - '@module-federation/webpack-bundler-runtime@0.21.4': + '@module-federation/webpack-bundler-runtime@0.21.6': dependencies: - '@module-federation/runtime': 0.21.4 - '@module-federation/sdk': 0.21.4 + '@module-federation/runtime': 0.21.6 + '@module-federation/sdk': 0.21.6 '@napi-rs/wasm-runtime@0.2.11': dependencies: @@ -5782,56 +5782,56 @@ snapshots: - bare-buffer - supports-color - '@rspack-canary/binding-darwin-arm64@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-darwin-arm64@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding-darwin-x64@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-darwin-x64@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding-linux-arm64-gnu@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-linux-arm64-gnu@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding-linux-arm64-musl@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-linux-arm64-musl@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding-linux-x64-gnu@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-linux-x64-gnu@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding-linux-x64-musl@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-linux-x64-musl@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding-wasm32-wasi@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-wasm32-wasi@1.6.6-canary-7c3506a0-20251201173444': dependencies: '@napi-rs/wasm-runtime': 1.0.7 optional: true - '@rspack-canary/binding-win32-arm64-msvc@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-win32-arm64-msvc@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding-win32-ia32-msvc@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-win32-ia32-msvc@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding-win32-x64-msvc@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding-win32-x64-msvc@1.6.6-canary-7c3506a0-20251201173444': optional: true - '@rspack-canary/binding@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/binding@1.6.6-canary-7c3506a0-20251201173444': optionalDependencies: - '@rspack/binding-darwin-arm64': '@rspack-canary/binding-darwin-arm64@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-darwin-x64': '@rspack-canary/binding-darwin-x64@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-linux-arm64-gnu': '@rspack-canary/binding-linux-arm64-gnu@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-linux-arm64-musl': '@rspack-canary/binding-linux-arm64-musl@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-linux-x64-gnu': '@rspack-canary/binding-linux-x64-gnu@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-linux-x64-musl': '@rspack-canary/binding-linux-x64-musl@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-wasm32-wasi': '@rspack-canary/binding-wasm32-wasi@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-win32-arm64-msvc': '@rspack-canary/binding-win32-arm64-msvc@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-win32-ia32-msvc': '@rspack-canary/binding-win32-ia32-msvc@1.6.5-canary-e23badc4-20251124174040' - '@rspack/binding-win32-x64-msvc': '@rspack-canary/binding-win32-x64-msvc@1.6.5-canary-e23badc4-20251124174040' - - '@rspack-canary/cli@1.6.5-canary-e23badc4-20251124174040(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(@types/express@4.17.21)(webpack-cli@5.1.4)(webpack@5.98.0)': + '@rspack/binding-darwin-arm64': '@rspack-canary/binding-darwin-arm64@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-darwin-x64': '@rspack-canary/binding-darwin-x64@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-linux-arm64-gnu': '@rspack-canary/binding-linux-arm64-gnu@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-linux-arm64-musl': '@rspack-canary/binding-linux-arm64-musl@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-linux-x64-gnu': '@rspack-canary/binding-linux-x64-gnu@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-linux-x64-musl': '@rspack-canary/binding-linux-x64-musl@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-wasm32-wasi': '@rspack-canary/binding-wasm32-wasi@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-win32-arm64-msvc': '@rspack-canary/binding-win32-arm64-msvc@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-win32-ia32-msvc': '@rspack-canary/binding-win32-ia32-msvc@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/binding-win32-x64-msvc': '@rspack-canary/binding-win32-x64-msvc@1.6.6-canary-7c3506a0-20251201173444' + + '@rspack-canary/cli@1.6.6-canary-7c3506a0-20251201173444(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(@types/express@4.17.21)(webpack-cli@5.1.4)(webpack@5.98.0)': dependencies: '@discoveryjs/json-ext': 0.5.7 - '@rspack/core': '@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040' - '@rspack/dev-server': 1.1.4(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(@types/express@4.17.21)(webpack-cli@5.1.4)(webpack@5.98.0) + '@rspack/core': '@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444' + '@rspack/dev-server': 1.1.4(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(@types/express@4.17.21)(webpack-cli@5.1.4)(webpack@5.98.0) exit-hook: 4.0.0 webpack-bundle-analyzer: 4.10.2 transitivePeerDependencies: @@ -5843,10 +5843,10 @@ snapshots: - webpack - webpack-cli - '@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040': + '@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444': dependencies: - '@module-federation/runtime-tools': 0.21.4 - '@rspack/binding': '@rspack-canary/binding@1.6.5-canary-e23badc4-20251124174040' + '@module-federation/runtime-tools': 0.21.6 + '@rspack/binding': '@rspack-canary/binding@1.6.6-canary-7c3506a0-20251201173444' '@rspack/lite-tapable': 1.1.0 '@rspack/binding-darwin-arm64@1.4.1': @@ -5902,9 +5902,9 @@ snapshots: '@rspack/lite-tapable': 1.0.1 optional: true - '@rspack/dev-server@1.1.4(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(@types/express@4.17.21)(webpack-cli@5.1.4)(webpack@5.98.0)': + '@rspack/dev-server@1.1.4(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(@types/express@4.17.21)(webpack-cli@5.1.4)(webpack@5.98.0)': dependencies: - '@rspack/core': '@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040' + '@rspack/core': '@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444' chokidar: 3.6.0 http-proxy-middleware: 2.0.9(@types/express@4.17.21) p-retry: 6.2.1 @@ -6260,7 +6260,7 @@ snapshots: agent-base@6.0.2: dependencies: - debug: 4.3.4 + debug: 4.4.0 transitivePeerDependencies: - supports-color @@ -6812,7 +6812,7 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - css-loader@7.1.2(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(webpack@5.98.0): + css-loader@7.1.2(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(webpack@5.98.0): dependencies: icss-utils: 5.1.0(postcss@8.5.3) postcss: 8.5.3 @@ -6823,7 +6823,7 @@ snapshots: postcss-value-parser: 4.2.0 semver: 7.7.1 optionalDependencies: - '@rspack/core': '@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040' + '@rspack/core': '@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444' webpack: 5.98.0(webpack-cli@5.1.4) css-loader@7.1.2(@rspack/core@1.4.1)(webpack@5.98.0): @@ -7635,7 +7635,7 @@ snapshots: minimatch: 3.1.2 slash: 2.0.0 - html-webpack-plugin@5.6.3(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(webpack@5.98.0): + html-webpack-plugin@5.6.3(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(webpack@5.98.0): dependencies: '@types/html-minifier-terser': 6.1.0 html-minifier-terser: 6.1.0 @@ -7643,7 +7643,7 @@ snapshots: pretty-error: 4.0.0 tapable: 2.2.1 optionalDependencies: - '@rspack/core': '@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040' + '@rspack/core': '@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444' webpack: 5.98.0(webpack-cli@5.1.4) html-webpack-plugin@5.6.3(@rspack/core@1.4.1)(webpack@5.98.0): @@ -9330,11 +9330,11 @@ snapshots: sass-embedded-win32-ia32: 1.85.0 sass-embedded-win32-x64: 1.85.0 - sass-loader@16.0.5(@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040)(sass-embedded@1.85.0)(webpack@5.98.0): + sass-loader@16.0.5(@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444)(sass-embedded@1.85.0)(webpack@5.98.0): dependencies: neo-async: 2.6.2 optionalDependencies: - '@rspack/core': '@rspack-canary/core@1.6.5-canary-e23badc4-20251124174040' + '@rspack/core': '@rspack-canary/core@1.6.6-canary-7c3506a0-20251201173444' sass-embedded: 1.85.0 webpack: 5.98.0(webpack-cli@5.1.4) diff --git a/sri-plugin/examples/dynamic-named-chunks/chunk.js b/sri-plugin/examples/dynamic-named-chunks/chunk.js index e69de29..6e94e71 100644 --- a/sri-plugin/examples/dynamic-named-chunks/chunk.js +++ b/sri-plugin/examples/dynamic-named-chunks/chunk.js @@ -0,0 +1 @@ +console.log("chunk"); \ No newline at end of file diff --git a/sri-plugin/examples/dynamic-named-chunks/webpack.config.js b/sri-plugin/examples/dynamic-named-chunks/webpack.config.js index 2c2a096..67be8a2 100644 --- a/sri-plugin/examples/dynamic-named-chunks/webpack.config.js +++ b/sri-plugin/examples/dynamic-named-chunks/webpack.config.js @@ -10,6 +10,7 @@ module.exports = { }, optimization: { chunkIds: "named", + minimize: false }, plugins: [ createIntegrityPlugin({