@rsbuild/core 0.7.0-beta.4 → 0.7.0-beta.5

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.
@@ -35,8 +35,9 @@ ${stats.stack}` : "";
35
35
  return message.trim();
36
36
  }
37
37
  function formatStatsMessages(stats) {
38
- const formattedErrors = stats.errors?.map(formatMessage) || [];
39
- const formattedWarnings = stats.warnings?.map(formatMessage) || [];
38
+ var _stats_errors, _stats_warnings;
39
+ const formattedErrors = ((_stats_errors = stats.errors) === null || _stats_errors === void 0 ? void 0 : _stats_errors.map(formatMessage)) || [];
40
+ const formattedWarnings = ((_stats_warnings = stats.warnings) === null || _stats_warnings === void 0 ? void 0 : _stats_warnings.map(formatMessage)) || [];
40
41
  return {
41
42
  errors: formattedErrors,
42
43
  warnings: formattedWarnings
@@ -157,9 +157,13 @@ var { HTMLElement = class {
157
157
  }, customElements } = typeof window !== "undefined" ? window : globalThis;
158
158
  var ErrorOverlay = class extends HTMLElement {
159
159
  constructor(message) {
160
+ var _root_querySelector;
160
161
  super();
161
162
  _define_property(this, "close", () => {
162
- const remove = () => this.parentNode?.removeChild(this);
163
+ const remove = () => {
164
+ var _this_parentNode;
165
+ return (_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.removeChild(this);
166
+ };
163
167
  if (this.animate) {
164
168
  this.animate([
165
169
  {
@@ -185,7 +189,7 @@ var ErrorOverlay = class extends HTMLElement {
185
189
  });
186
190
  root.innerHTML = overlayTemplate;
187
191
  linkedText(root, ".content", stripAnsi(message.join("/n")).trim());
188
- root.querySelector(".close")?.addEventListener("click", this.close);
192
+ (_root_querySelector = root.querySelector(".close")) === null || _root_querySelector === void 0 ? void 0 : _root_querySelector.addEventListener("click", this.close);
189
193
  this.addEventListener("click", this.close);
190
194
  root.querySelector(".container").addEventListener("click", (e) => {
191
195
  e.stopPropagation();
package/dist/index.cjs CHANGED
@@ -201,13 +201,7 @@ var init_helpers = __esm({
201
201
  }
202
202
  return true;
203
203
  };
204
- getCompiledPath = (packageName) => {
205
- const providerCompilerPath = import_node_path2.default.join(COMPILED_PATH, packageName);
206
- if (import_shared2.fse.existsSync(providerCompilerPath)) {
207
- return providerCompilerPath;
208
- }
209
- return (0, import_shared.getSharedPkgCompiledPath)(packageName);
210
- };
204
+ getCompiledPath = (packageName) => import_node_path2.default.join(COMPILED_PATH, packageName);
211
205
  addNodePolyfillTip = (message) => {
212
206
  if (!message.includes(`Can't resolve`)) {
213
207
  return message;
@@ -816,9 +810,7 @@ function createPluginManager() {
816
810
  };
817
811
  const isPluginExists = (pluginName) => Boolean(plugins2.find((plugin) => plugin.name === pluginName));
818
812
  return {
819
- get plugins() {
820
- return plugins2;
821
- },
813
+ getPlugins: () => plugins2,
822
814
  addPlugins,
823
815
  removePlugins,
824
816
  isPluginExists
@@ -829,7 +821,7 @@ async function initPlugins({
829
821
  pluginManager
830
822
  }) {
831
823
  (0, import_shared7.debug)("init plugins");
832
- const plugins2 = pluginDagSort(pluginManager.plugins);
824
+ const plugins2 = pluginDagSort(pluginManager.getPlugins());
833
825
  const removedPlugins = plugins2.reduce((ret, plugin) => {
834
826
  if (plugin.remove) {
835
827
  return ret.concat(plugin.remove);
@@ -1044,7 +1036,7 @@ async function createContextByConfig(options, bundlerType, config = {}) {
1044
1036
  const context = {
1045
1037
  entry: getEntryObject(config, "web"),
1046
1038
  targets: config.output?.targets || [],
1047
- version: "0.7.0-beta.4",
1039
+ version: "0.7.0-beta.5",
1048
1040
  rootPath,
1049
1041
  distPath,
1050
1042
  cachePath,
@@ -4645,7 +4637,7 @@ async function inspectConfig({
4645
4637
  })).rspackConfigs;
4646
4638
  const rsbuildDebugConfig = {
4647
4639
  ...context.normalizedConfig,
4648
- pluginNames: pluginManager.plugins.map((p) => p.name)
4640
+ pluginNames: pluginManager.getPlugins().map((p) => p.name)
4649
4641
  };
4650
4642
  const rawRsbuildConfig = await (0, import_shared41.stringifyConfig)(
4651
4643
  rsbuildDebugConfig,
@@ -4758,7 +4750,6 @@ function getChainUtils(target) {
4758
4750
  isServer: target === "node",
4759
4751
  isWebWorker: target === "web-worker",
4760
4752
  isServiceWorker: target === "service-worker",
4761
- getCompiledPath,
4762
4753
  CHAIN_ID: import_shared42.CHAIN_ID,
4763
4754
  HtmlPlugin: getHTMLPlugin()
4764
4755
  };
@@ -4799,7 +4790,6 @@ var init_rspackConfig = __esm({
4799
4790
  "use strict";
4800
4791
  import_shared42 = require("@rsbuild/shared");
4801
4792
  import_core5 = require("@rspack/core");
4802
- init_helpers();
4803
4793
  init_pluginHelper();
4804
4794
  }
4805
4795
  });
@@ -4900,12 +4890,11 @@ function applyHMREntry({
4900
4890
  }).apply(compiler);
4901
4891
  }
4902
4892
  }
4903
- var import_shared44, import_webpack_dev_middleware, setupServerHooks, getDevMiddleware;
4893
+ var import_shared44, setupServerHooks, getDevMiddleware;
4904
4894
  var init_devMiddleware = __esm({
4905
4895
  "src/server/devMiddleware.ts"() {
4906
4896
  "use strict";
4907
4897
  import_shared44 = require("@rsbuild/shared");
4908
- import_webpack_dev_middleware = __toESM(require("../compiled/webpack-dev-middleware/index.js"));
4909
4898
  setupServerHooks = (compiler, hookCallbacks) => {
4910
4899
  if ((0, import_shared44.isNodeCompiler)(compiler)) {
4911
4900
  return;
@@ -4915,21 +4904,24 @@ var init_devMiddleware = __esm({
4915
4904
  invalid.tap("rsbuild-dev-server", hookCallbacks.onInvalid);
4916
4905
  done.tap("rsbuild-dev-server", hookCallbacks.onDone);
4917
4906
  };
4918
- getDevMiddleware = (multiCompiler) => (options) => {
4919
- const { clientPaths, clientConfig, callbacks, liveReload, ...restOptions } = options;
4920
- const setupCompiler = (compiler) => {
4921
- if (clientPaths) {
4922
- applyHMREntry({
4923
- compiler,
4924
- clientPaths,
4925
- clientConfig,
4926
- liveReload
4927
- });
4928
- }
4929
- setupServerHooks(compiler, callbacks);
4907
+ getDevMiddleware = async (multiCompiler) => {
4908
+ const { default: webpackDevMiddleware } = await import("../compiled/webpack-dev-middleware/index.js");
4909
+ return (options) => {
4910
+ const { clientPaths, clientConfig, callbacks, liveReload, ...restOptions } = options;
4911
+ const setupCompiler = (compiler) => {
4912
+ if (clientPaths) {
4913
+ applyHMREntry({
4914
+ compiler,
4915
+ clientPaths,
4916
+ clientConfig,
4917
+ liveReload
4918
+ });
4919
+ }
4920
+ setupServerHooks(compiler, callbacks);
4921
+ };
4922
+ (0, import_shared44.applyToCompiler)(multiCompiler, setupCompiler);
4923
+ return webpackDevMiddleware(multiCompiler, restOptions);
4930
4924
  };
4931
- (0, import_shared44.applyToCompiler)(multiCompiler, setupCompiler);
4932
- return (0, import_webpack_dev_middleware.default)(multiCompiler, restOptions);
4933
4925
  };
4934
4926
  }
4935
4927
  });
@@ -5036,7 +5028,7 @@ async function createDevMiddleware(options, customCompiler) {
5036
5028
  }
5037
5029
  const { getDevMiddleware: getDevMiddleware2 } = await Promise.resolve().then(() => (init_devMiddleware(), devMiddleware_exports));
5038
5030
  return {
5039
- devMiddleware: getDevMiddleware2(compiler),
5031
+ devMiddleware: await getDevMiddleware2(compiler),
5040
5032
  compiler
5041
5033
  };
5042
5034
  }
@@ -6817,7 +6809,12 @@ async function createRsbuild(options = {}) {
6817
6809
  await applyDefaultPlugins(pluginManager);
6818
6810
  (0, import_shared59.debug)("add default plugins done");
6819
6811
  const rsbuild = {
6820
- ...(0, import_shared59.pick)(pluginManager, ["addPlugins", "removePlugins", "isPluginExists"]),
6812
+ ...(0, import_shared59.pick)(pluginManager, [
6813
+ "addPlugins",
6814
+ "getPlugins",
6815
+ "removePlugins",
6816
+ "isPluginExists"
6817
+ ]),
6821
6818
  ...(0, import_shared59.pick)(pluginAPI, [
6822
6819
  "onBeforeBuild",
6823
6820
  "onBeforeCreateCompiler",
@@ -6974,10 +6971,8 @@ __export(internal_exports, {
6974
6971
  initHooks: () => initHooks,
6975
6972
  initPlugins: () => initPlugins,
6976
6973
  initRsbuildConfig: () => initRsbuildConfig,
6977
- parseMinifyOptions: () => parseMinifyOptions,
6978
6974
  plugins: () => plugins,
6979
6975
  prepareCli: () => prepareCli,
6980
- rspackProvider: () => rspackProvider,
6981
6976
  runCli: () => runCli,
6982
6977
  setCssExtractPlugin: () => setCssExtractPlugin,
6983
6978
  setHTMLPlugin: () => setHTMLPlugin,
@@ -7003,7 +6998,7 @@ var applyServerOptions = (command) => {
7003
6998
  command.option("-o --open [url]", "open the page in browser on startup").option("--port <port>", "specify a port number for server to listen").option("--host <host>", "specify the host that the server listens to");
7004
6999
  };
7005
7000
  function runCli() {
7006
- import_commander.program.name("rsbuild").usage("<command> [options]").version("0.7.0-beta.4");
7001
+ import_commander.program.name("rsbuild").usage("<command> [options]").version("0.7.0-beta.5");
7007
7002
  const devCommand = import_commander.program.command("dev");
7008
7003
  const buildCommand = import_commander.program.command("build");
7009
7004
  const previewCommand = import_commander.program.command("preview");
@@ -7083,12 +7078,11 @@ function prepareCli() {
7083
7078
  if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
7084
7079
  console.log();
7085
7080
  }
7086
- import_shared62.logger.greet(` ${`Rsbuild v${"0.7.0-beta.4"}`}
7081
+ import_shared62.logger.greet(` ${`Rsbuild v${"0.7.0-beta.5"}`}
7087
7082
  `);
7088
7083
  }
7089
7084
 
7090
7085
  // src/internal.ts
7091
- init_provider();
7092
7086
  init_createContext();
7093
7087
  init_pluginManager();
7094
7088
  init_initHooks();
@@ -7116,7 +7110,7 @@ init_config();
7116
7110
  var import_shared63 = require("@rsbuild/shared");
7117
7111
  init_mergeConfig();
7118
7112
  init_constants();
7119
- var version = "0.7.0-beta.4";
7113
+ var version = "0.7.0-beta.5";
7120
7114
  // Annotate the CommonJS export names for ESM import in node:
7121
7115
  0 && (module.exports = {
7122
7116
  PLUGIN_CSS_NAME,
package/dist/index.js CHANGED
@@ -114,7 +114,6 @@ import {
114
114
  DEFAULT_ASSET_PREFIX,
115
115
  addTrailingSlash,
116
116
  color,
117
- getSharedPkgCompiledPath,
118
117
  isMultiCompiler,
119
118
  removeTailingSlash
120
119
  } from "@rsbuild/shared";
@@ -213,13 +212,7 @@ var init_helpers = __esm({
213
212
  }
214
213
  return true;
215
214
  };
216
- getCompiledPath = (packageName) => {
217
- const providerCompilerPath = path2.join(COMPILED_PATH, packageName);
218
- if (fse.existsSync(providerCompilerPath)) {
219
- return providerCompilerPath;
220
- }
221
- return getSharedPkgCompiledPath(packageName);
222
- };
215
+ getCompiledPath = (packageName) => path2.join(COMPILED_PATH, packageName);
223
216
  addNodePolyfillTip = (message) => {
224
217
  if (!message.includes(`Can't resolve`)) {
225
218
  return message;
@@ -859,9 +852,7 @@ function createPluginManager() {
859
852
  };
860
853
  const isPluginExists = (pluginName) => Boolean(plugins2.find((plugin) => plugin.name === pluginName));
861
854
  return {
862
- get plugins() {
863
- return plugins2;
864
- },
855
+ getPlugins: () => plugins2,
865
856
  addPlugins,
866
857
  removePlugins,
867
858
  isPluginExists
@@ -872,7 +863,7 @@ async function initPlugins({
872
863
  pluginManager
873
864
  }) {
874
865
  debug("init plugins");
875
- const plugins2 = pluginDagSort(pluginManager.plugins);
866
+ const plugins2 = pluginDagSort(pluginManager.getPlugins());
876
867
  const removedPlugins = plugins2.reduce((ret, plugin) => {
877
868
  if (plugin.remove) {
878
869
  return ret.concat(plugin.remove);
@@ -1098,7 +1089,7 @@ async function createContextByConfig(options, bundlerType, config = {}) {
1098
1089
  const context = {
1099
1090
  entry: getEntryObject(config, "web"),
1100
1091
  targets: config.output?.targets || [],
1101
- version: "0.7.0-beta.4",
1092
+ version: "0.7.0-beta.5",
1102
1093
  rootPath,
1103
1094
  distPath,
1104
1095
  cachePath,
@@ -4275,7 +4266,7 @@ import {
4275
4266
  LESS_REGEX,
4276
4267
  castArray as castArray6,
4277
4268
  deepmerge as deepmerge4,
4278
- getSharedPkgCompiledPath as getSharedPkgCompiledPath2,
4269
+ getSharedPkgCompiledPath,
4279
4270
  mergeChainedOptions as mergeChainedOptions6
4280
4271
  } from "@rsbuild/shared";
4281
4272
  function pluginLess() {
@@ -4325,7 +4316,7 @@ var init_less = __esm({
4325
4316
  paths: [path11.join(rootPath, "node_modules")]
4326
4317
  },
4327
4318
  sourceMap: isUseCssSourceMap,
4328
- implementation: getSharedPkgCompiledPath2("less")
4319
+ implementation: getSharedPkgCompiledPath("less")
4329
4320
  };
4330
4321
  const mergeFn = (defaults, userOptions) => {
4331
4322
  const getLessOptions = () => {
@@ -4366,7 +4357,7 @@ import {
4366
4357
  SASS_REGEX,
4367
4358
  castArray as castArray7,
4368
4359
  deepmerge as deepmerge5,
4369
- getSharedPkgCompiledPath as getSharedPkgCompiledPath3,
4360
+ getSharedPkgCompiledPath as getSharedPkgCompiledPath2,
4370
4361
  mergeChainedOptions as mergeChainedOptions7
4371
4362
  } from "@rsbuild/shared";
4372
4363
  function patchGlobalLocation() {
@@ -4421,7 +4412,7 @@ function pluginSass() {
4421
4412
  // it has performance regression issues in some scenarios,
4422
4413
  // so we need to disable the sourceMap option.
4423
4414
  sourceMap: false
4424
- }).end().use(utils.CHAIN_ID.USE.SASS).loader(getSharedPkgCompiledPath3("sass-loader")).options(options);
4415
+ }).end().use(utils.CHAIN_ID.USE.SASS).loader(getSharedPkgCompiledPath2("sass-loader")).options(options);
4425
4416
  });
4426
4417
  }
4427
4418
  };
@@ -4457,7 +4448,7 @@ var init_sass = __esm({
4457
4448
  const mergedOptions = mergeChainedOptions7({
4458
4449
  defaults: {
4459
4450
  sourceMap: isUseCssSourceMap,
4460
- implementation: getSharedPkgCompiledPath3("sass")
4451
+ implementation: getSharedPkgCompiledPath2("sass")
4461
4452
  },
4462
4453
  options: rsbuildSassConfig,
4463
4454
  utils: { addExcludes },
@@ -4830,7 +4821,7 @@ async function inspectConfig({
4830
4821
  })).rspackConfigs;
4831
4822
  const rsbuildDebugConfig = {
4832
4823
  ...context.normalizedConfig,
4833
- pluginNames: pluginManager.plugins.map((p) => p.name)
4824
+ pluginNames: pluginManager.getPlugins().map((p) => p.name)
4834
4825
  };
4835
4826
  const rawRsbuildConfig = await stringifyConfig(
4836
4827
  rsbuildDebugConfig,
@@ -4951,7 +4942,6 @@ function getChainUtils(target) {
4951
4942
  isServer: target === "node",
4952
4943
  isWebWorker: target === "web-worker",
4953
4944
  isServiceWorker: target === "service-worker",
4954
- getCompiledPath,
4955
4945
  CHAIN_ID: CHAIN_ID2,
4956
4946
  HtmlPlugin: getHTMLPlugin()
4957
4947
  };
@@ -4990,7 +4980,6 @@ var init_rspackConfig = __esm({
4990
4980
  "src/provider/rspackConfig.ts"() {
4991
4981
  "use strict";
4992
4982
  init_esm();
4993
- init_helpers();
4994
4983
  init_pluginHelper();
4995
4984
  }
4996
4985
  });
@@ -5080,7 +5069,6 @@ import {
5080
5069
  isClientCompiler,
5081
5070
  isNodeCompiler
5082
5071
  } from "@rsbuild/shared";
5083
- import webpackDevMiddleware from "../compiled/webpack-dev-middleware/index.js";
5084
5072
  function applyHMREntry({
5085
5073
  compiler,
5086
5074
  clientPaths,
@@ -5114,21 +5102,24 @@ var init_devMiddleware = __esm({
5114
5102
  invalid.tap("rsbuild-dev-server", hookCallbacks.onInvalid);
5115
5103
  done.tap("rsbuild-dev-server", hookCallbacks.onDone);
5116
5104
  };
5117
- getDevMiddleware = (multiCompiler) => (options) => {
5118
- const { clientPaths, clientConfig, callbacks, liveReload, ...restOptions } = options;
5119
- const setupCompiler = (compiler) => {
5120
- if (clientPaths) {
5121
- applyHMREntry({
5122
- compiler,
5123
- clientPaths,
5124
- clientConfig,
5125
- liveReload
5126
- });
5127
- }
5128
- setupServerHooks(compiler, callbacks);
5105
+ getDevMiddleware = async (multiCompiler) => {
5106
+ const { default: webpackDevMiddleware } = await import("../compiled/webpack-dev-middleware/index.js");
5107
+ return (options) => {
5108
+ const { clientPaths, clientConfig, callbacks, liveReload, ...restOptions } = options;
5109
+ const setupCompiler = (compiler) => {
5110
+ if (clientPaths) {
5111
+ applyHMREntry({
5112
+ compiler,
5113
+ clientPaths,
5114
+ clientConfig,
5115
+ liveReload
5116
+ });
5117
+ }
5118
+ setupServerHooks(compiler, callbacks);
5119
+ };
5120
+ applyToCompiler2(multiCompiler, setupCompiler);
5121
+ return webpackDevMiddleware(multiCompiler, restOptions);
5129
5122
  };
5130
- applyToCompiler2(multiCompiler, setupCompiler);
5131
- return webpackDevMiddleware(multiCompiler, restOptions);
5132
5123
  };
5133
5124
  }
5134
5125
  });
@@ -5246,7 +5237,7 @@ async function createDevMiddleware(options, customCompiler) {
5246
5237
  }
5247
5238
  const { getDevMiddleware: getDevMiddleware2 } = await Promise.resolve().then(() => (init_devMiddleware(), devMiddleware_exports));
5248
5239
  return {
5249
- devMiddleware: getDevMiddleware2(compiler),
5240
+ devMiddleware: await getDevMiddleware2(compiler),
5250
5241
  compiler
5251
5242
  };
5252
5243
  }
@@ -7083,7 +7074,12 @@ async function createRsbuild(options = {}) {
7083
7074
  await applyDefaultPlugins(pluginManager);
7084
7075
  debug8("add default plugins done");
7085
7076
  const rsbuild = {
7086
- ...pick2(pluginManager, ["addPlugins", "removePlugins", "isPluginExists"]),
7077
+ ...pick2(pluginManager, [
7078
+ "addPlugins",
7079
+ "getPlugins",
7080
+ "removePlugins",
7081
+ "isPluginExists"
7082
+ ]),
7087
7083
  ...pick2(pluginAPI, [
7088
7084
  "onBeforeBuild",
7089
7085
  "onBeforeCreateCompiler",
@@ -7224,10 +7220,8 @@ __export(internal_exports, {
7224
7220
  initHooks: () => initHooks,
7225
7221
  initPlugins: () => initPlugins,
7226
7222
  initRsbuildConfig: () => initRsbuildConfig,
7227
- parseMinifyOptions: () => parseMinifyOptions,
7228
7223
  plugins: () => plugins,
7229
7224
  prepareCli: () => prepareCli,
7230
- rspackProvider: () => rspackProvider,
7231
7225
  runCli: () => runCli,
7232
7226
  setCssExtractPlugin: () => setCssExtractPlugin,
7233
7227
  setHTMLPlugin: () => setHTMLPlugin,
@@ -7255,7 +7249,7 @@ var applyServerOptions = (command) => {
7255
7249
  command.option("-o --open [url]", "open the page in browser on startup").option("--port <port>", "specify a port number for server to listen").option("--host <host>", "specify the host that the server listens to");
7256
7250
  };
7257
7251
  function runCli() {
7258
- program.name("rsbuild").usage("<command> [options]").version("0.7.0-beta.4");
7252
+ program.name("rsbuild").usage("<command> [options]").version("0.7.0-beta.5");
7259
7253
  const devCommand = program.command("dev");
7260
7254
  const buildCommand = program.command("build");
7261
7255
  const previewCommand = program.command("preview");
@@ -7336,12 +7330,11 @@ function prepareCli() {
7336
7330
  if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
7337
7331
  console.log();
7338
7332
  }
7339
- logger18.greet(` ${`Rsbuild v${"0.7.0-beta.4"}`}
7333
+ logger18.greet(` ${`Rsbuild v${"0.7.0-beta.5"}`}
7340
7334
  `);
7341
7335
  }
7342
7336
 
7343
7337
  // src/internal.ts
7344
- init_provider();
7345
7338
  init_createContext();
7346
7339
  init_pluginManager();
7347
7340
  init_initHooks();
@@ -7370,7 +7363,7 @@ init_config();
7370
7363
  init_mergeConfig();
7371
7364
  init_constants();
7372
7365
  import { logger as logger19 } from "@rsbuild/shared";
7373
- var version = "0.7.0-beta.4";
7366
+ var version = "0.7.0-beta.5";
7374
7367
  export {
7375
7368
  PLUGIN_CSS_NAME,
7376
7369
  PLUGIN_LESS_NAME,
@@ -5,7 +5,6 @@
5
5
  */
6
6
  export { runCli } from './cli/commands';
7
7
  export { prepareCli } from './cli/prepare';
8
- export { rspackProvider } from './provider/provider';
9
8
  export { createContext, createPublicContext } from './createContext';
10
9
  export { initPlugins, createPluginManager } from './pluginManager';
11
10
  export { initHooks, type Hooks } from './initHooks';
@@ -17,7 +16,7 @@ export { setHTMLPlugin, getHTMLPlugin, setCssExtractPlugin, } from './pluginHelp
17
16
  export { formatStats, getStatsOptions } from './helpers';
18
17
  export { getChainUtils } from './provider/rspackConfig';
19
18
  export { applySwcDecoratorConfig } from './plugins/swc';
20
- export { getSwcMinimizerOptions, parseMinifyOptions } from './plugins/minimize';
19
+ export { getSwcMinimizerOptions } from './plugins/minimize';
21
20
  export { getDevMiddleware } from './server/devMiddleware';
22
21
  export { createDevServer, startProdServer } from './server';
23
22
  export { plugins } from './plugins';
@@ -14,5 +14,5 @@ export declare const setupServerHooks: (compiler: {
14
14
  done: CompilerTapFn<ServerCallbacks['onDone']>;
15
15
  };
16
16
  }, hookCallbacks: ServerCallbacks) => void;
17
- export declare const getDevMiddleware: (multiCompiler: Compiler | MultiCompiler) => NonNullable<DevMiddleware>;
17
+ export declare const getDevMiddleware: (multiCompiler: Compiler | MultiCompiler) => Promise<NonNullable<DevMiddleware>>;
18
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "0.7.0-beta.4",
3
+ "version": "0.7.0-beta.5",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -51,7 +51,7 @@
51
51
  "core-js": "~3.36.0",
52
52
  "html-webpack-plugin": "npm:html-rspack-plugin@5.7.2",
53
53
  "postcss": "^8.4.38",
54
- "@rsbuild/shared": "0.7.0-beta.4"
54
+ "@rsbuild/shared": "0.7.0-beta.5"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/fs-extra": "^11.0.4",