Skip to content

Commit 9b5a8fe

Browse files
authored
fix: html fragment (#22)
1 parent 17c8a3a commit 9b5a8fe

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

css-extract/cases/prefetch-preload/expected/main.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,6 @@ __webpack_require__.G = (chunkId) => {
250250
});
251251
}
252252
})();
253-
// webpack/runtime/rspack_version
254-
(() => {
255-
__webpack_require__.rv = () => ("2.0.0-beta.2")
256-
})();
257253
// webpack/runtime/auto_public_path
258254
(() => {
259255
var scriptUrl;
@@ -537,10 +533,6 @@ var chunkLoadingGlobal = self["rspackChunk"] = self["rspackChunk"] || [];
537533
chunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0));
538534
chunkLoadingGlobal.push = __rspack_jsonp.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
539535

540-
})();
541-
// webpack/runtime/rspack_unique_id
542-
(() => {
543-
__webpack_require__.ruid = "bundler=rspack@2.0.0-beta.2";
544536
})();
545537
// webpack/runtime/chunk_prefetch_startup
546538
(() => {

css-extract/cases/prefetch-preload/webpack.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { CssExtractRspackPlugin } from '@rspack/core';
33

44
export default {
55
entry: "./index.js",
6+
output: {
7+
bundlerInfo: false
8+
},
69
module: {
710
rules: [
811
{

html-plugin/basic.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3699,9 +3699,7 @@ describe("HtmlWebpackPlugin", () => {
36993699
}
37003700
})]
37013701
},
3702-
[`
3703-
<html>
3704-
<head></head><body><span>Rspack</span>&lt;span&gt;Rspack&lt;/span&gt;</body></html>`], null);
3702+
[`<span>Rspack</span>&lt;span&gt;Rspack&lt;/span&gt;`], null);
37053703
});
37063704
// TODO: html-webpack-plugin loader
37073705
// it("allows to set custom loader interpolation settings", (done) => {

0 commit comments

Comments
 (0)