@rsbuild/webpack 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,4 +8,7 @@ export declare function createCompiler({
8
8
  context: Context;
9
9
  webpackConfigs: WebpackConfig[];
10
10
  }): Promise<Compiler | MultiCompiler>;
11
- export declare function createDevMiddleware(options: InitConfigsOptions, customCompiler?: Compiler | MultiCompiler): Promise<import("@rsbuild/shared").DevMiddleware>;
11
+ export declare function createDevMiddleware(options: InitConfigsOptions, customCompiler?: Compiler | MultiCompiler): Promise<{
12
+ devMiddleware: import("@rsbuild/shared").DevMiddleware;
13
+ compiler: Compiler | MultiCompiler;
14
+ }>;
@@ -76,7 +76,10 @@ async function createDevMiddleware(options, customCompiler) {
76
76
  webpackConfigs
77
77
  });
78
78
  }
79
- return (0, import_devMiddleware.getDevMiddleware)(compiler);
79
+ return {
80
+ devMiddleware: (0, import_devMiddleware.getDevMiddleware)(compiler),
81
+ compiler
82
+ };
80
83
  }
81
84
  // Annotate the CommonJS export names for ESM import in node:
82
85
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/webpack",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "homepage": "https://rsbuild.dev",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "fast-glob": "^3.3.1",
42
42
  "glob": "^9.3.5",
43
43
  "globby": "^11.1.0",
44
- "html-webpack-plugin": "npm:html-rspack-plugin@5.5.5",
44
+ "html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
45
45
  "lodash": "^4.17.21",
46
46
  "mini-css-extract-plugin": "2.7.6",
47
47
  "postcss": "8.4.31",
@@ -51,12 +51,12 @@
51
51
  "ts-loader": "9.4.4",
52
52
  "tsconfig-paths-webpack-plugin": "4.1.0",
53
53
  "webpack": "^5.89.0",
54
- "@rsbuild/babel-preset": "0.0.26",
55
- "@rsbuild/core": "0.0.26",
56
- "@rsbuild/plugin-babel": "0.0.26",
57
- "@rsbuild/plugin-react": "0.0.26",
58
- "@rsbuild/plugin-css-minimizer": "0.0.26",
59
- "@rsbuild/shared": "0.0.26"
54
+ "@rsbuild/babel-preset": "0.0.27",
55
+ "@rsbuild/plugin-babel": "0.0.27",
56
+ "@rsbuild/core": "0.0.27",
57
+ "@rsbuild/plugin-css-minimizer": "0.0.27",
58
+ "@rsbuild/shared": "0.0.27",
59
+ "@rsbuild/plugin-react": "0.0.27"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/lodash": "^4.14.200",
@@ -64,7 +64,7 @@
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0",
66
66
  "typescript": "^5.2.2",
67
- "@rsbuild/test-helper": "0.0.26"
67
+ "@rsbuild/test-helper": "0.0.27"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">=14.0.0"