Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions css-extract/cases/chunkFilename-fullhash/expected/async.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
Original file line number Diff line number Diff line change
@@ -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) }
Expand Down
4 changes: 2 additions & 2 deletions css-extract/cases/dependOn-multiple-files-per-entry/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"(`);
};
8 changes: 4 additions & 4 deletions css-extract/cases/dependOn/expected/entry1.js
Original file line number Diff line number Diff line change
@@ -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) }
Expand Down
2 changes: 1 addition & 1 deletion css-extract/cases/dependOn/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"(`);
};
4 changes: 2 additions & 2 deletions css-extract/cases/insert-function/expected/src_inject_css.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/insert-string/expected/src_inject_css.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/insert-undefined/expected/src_inject_css.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/no-runtime/expected/async.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/prefetch-preload/expected/a.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/prefetch-preload/expected/b.js
Original file line number Diff line number Diff line change
@@ -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));


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/prefetch-preload/expected/b1.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/prefetch-preload/expected/b2.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/prefetch-preload/expected/b3.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(self["webpackChunk"] = self["webpackChunk"] || []).push([["b3"], {
"./b3.js": (function () {
"./b3.js"() {


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/prefetch-preload/expected/c.js
Original file line number Diff line number Diff line change
@@ -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"));


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/prefetch-preload/expected/c1.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
4 changes: 2 additions & 2 deletions css-extract/cases/prefetch-preload/expected/c2.js
Original file line number Diff line number Diff line change
@@ -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


}),
},

}]);
6 changes: 3 additions & 3 deletions css-extract/cases/prefetch-preload/expected/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"packageManager": "[email protected]",
"repository": "web-infra-dev/rspack-plugin-ci",
"devDependencies": {
"@rspack/core": "npm:@rspack-canary/[email protected].5-canary-e23badc4-20251124174040",
"@rspack/cli": "npm:@rspack-canary/[email protected].5-canary-e23badc4-20251124174040",
"@rspack/core": "npm:@rspack-canary/[email protected].6-canary-7c3506a0-20251201173444",
"@rspack/cli": "npm:@rspack-canary/[email protected].6-canary-7c3506a0-20251201173444",
"@webdiscus/pug-loader": "^2.11.1",
"@types/cross-spawn": "^6.0.6",
"@types/tmp": "^0.2.6",
Expand Down
Loading