@rsbuild/core 1.4.4 → 1.4.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.
@@ -1,19 +1,19 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 6768: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 5860: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(3806);
5
+ const loader = __nccwpck_require__(6218);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(7455).defaultGetLocalIdent;
8
+ __nccwpck_require__(6091).defaultGetLocalIdent;
9
9
  },
10
- 3806: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 6218: (__unused_webpack_module, exports, __nccwpck_require__) => {
11
11
  "use strict";
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports["default"] = loader;
14
14
  var _postcss = _interopRequireDefault(__nccwpck_require__(9409));
15
- var _plugins = __nccwpck_require__(469);
16
- var _utils = __nccwpck_require__(7455);
15
+ var _plugins = __nccwpck_require__(9609);
16
+ var _utils = __nccwpck_require__(6091);
17
17
  function _interopRequireDefault(obj) {
18
18
  return obj && obj.__esModule ? obj : { default: obj };
19
19
  }
@@ -236,7 +236,7 @@
236
236
  callback(null, `${importCode}${moduleCode}${exportCode}`);
237
237
  }
238
238
  },
239
- 469: (__unused_webpack_module, exports, __nccwpck_require__) => {
239
+ 9609: (__unused_webpack_module, exports, __nccwpck_require__) => {
240
240
  "use strict";
241
241
  Object.defineProperty(exports, "__esModule", { value: true });
242
242
  Object.defineProperty(exports, "icssParser", {
@@ -258,22 +258,22 @@
258
258
  },
259
259
  });
260
260
  var _postcssImportParser = _interopRequireDefault(
261
- __nccwpck_require__(7494),
261
+ __nccwpck_require__(8034),
262
262
  );
263
263
  var _postcssIcssParser = _interopRequireDefault(
264
- __nccwpck_require__(1159),
264
+ __nccwpck_require__(7323),
265
265
  );
266
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(834));
266
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(3294));
267
267
  function _interopRequireDefault(obj) {
268
268
  return obj && obj.__esModule ? obj : { default: obj };
269
269
  }
270
270
  },
271
- 1159: (__unused_webpack_module, exports, __nccwpck_require__) => {
271
+ 7323: (__unused_webpack_module, exports, __nccwpck_require__) => {
272
272
  "use strict";
273
273
  Object.defineProperty(exports, "__esModule", { value: true });
274
274
  exports["default"] = void 0;
275
275
  var _icssUtils = __nccwpck_require__(9028);
276
- var _utils = __nccwpck_require__(7455);
276
+ var _utils = __nccwpck_require__(6091);
277
277
  const plugin = (options = {}) => ({
278
278
  postcssPlugin: "postcss-icss-parser",
279
279
  async OnceExit(root) {
@@ -372,14 +372,14 @@
372
372
  plugin.postcss = true;
373
373
  var _default = (exports["default"] = plugin);
374
374
  },
375
- 7494: (__unused_webpack_module, exports, __nccwpck_require__) => {
375
+ 8034: (__unused_webpack_module, exports, __nccwpck_require__) => {
376
376
  "use strict";
377
377
  Object.defineProperty(exports, "__esModule", { value: true });
378
378
  exports["default"] = void 0;
379
379
  var _postcssValueParser = _interopRequireDefault(
380
380
  __nccwpck_require__(2948),
381
381
  );
382
- var _utils = __nccwpck_require__(7455);
382
+ var _utils = __nccwpck_require__(6091);
383
383
  function _interopRequireDefault(obj) {
384
384
  return obj && obj.__esModule ? obj : { default: obj };
385
385
  }
@@ -684,14 +684,14 @@
684
684
  plugin.postcss = true;
685
685
  var _default = (exports["default"] = plugin);
686
686
  },
687
- 834: (__unused_webpack_module, exports, __nccwpck_require__) => {
687
+ 3294: (__unused_webpack_module, exports, __nccwpck_require__) => {
688
688
  "use strict";
689
689
  Object.defineProperty(exports, "__esModule", { value: true });
690
690
  exports["default"] = void 0;
691
691
  var _postcssValueParser = _interopRequireDefault(
692
692
  __nccwpck_require__(2948),
693
693
  );
694
- var _utils = __nccwpck_require__(7455);
694
+ var _utils = __nccwpck_require__(6091);
695
695
  function _interopRequireDefault(obj) {
696
696
  return obj && obj.__esModule ? obj : { default: obj };
697
697
  }
@@ -1034,7 +1034,7 @@
1034
1034
  plugin.postcss = true;
1035
1035
  var _default = (exports["default"] = plugin);
1036
1036
  },
1037
- 7455: (__unused_webpack_module, exports, __nccwpck_require__) => {
1037
+ 6091: (__unused_webpack_module, exports, __nccwpck_require__) => {
1038
1038
  "use strict";
1039
1039
  Object.defineProperty(exports, "__esModule", { value: true });
1040
1040
  exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
@@ -8098,6 +8098,6 @@
8098
8098
  }
8099
8099
  if (typeof __nccwpck_require__ !== "undefined")
8100
8100
  __nccwpck_require__.ab = __dirname + "/";
8101
- var __webpack_exports__ = __nccwpck_require__(6768);
8101
+ var __webpack_exports__ = __nccwpck_require__(5860);
8102
8102
  module.exports = __webpack_exports__;
8103
8103
  })();
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 26: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 1: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(955);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(34);
6
6
  const compilerMap = new WeakMap();
7
7
  class CachedChildCompilation {
8
8
  constructor(compiler) {
@@ -311,7 +311,7 @@
311
311
  }
312
312
  module.exports = { CachedChildCompilation };
313
313
  },
314
- 955: (module) => {
314
+ 34: (module) => {
315
315
  "use strict";
316
316
  class HtmlWebpackChildCompiler {
317
317
  constructor(templates) {
@@ -480,7 +480,7 @@
480
480
  }
481
481
  module.exports = { HtmlWebpackChildCompiler };
482
482
  },
483
- 281: (module) => {
483
+ 578: (module) => {
484
484
  "use strict";
485
485
  module.exports = {};
486
486
  module.exports.none = (chunks) => chunks;
@@ -499,7 +499,7 @@
499
499
  };
500
500
  module.exports.auto = module.exports.none;
501
501
  },
502
- 24: (module) => {
502
+ 909: (module) => {
503
503
  "use strict";
504
504
  module.exports = function (err) {
505
505
  return {
@@ -520,7 +520,7 @@
520
520
  };
521
521
  };
522
522
  },
523
- 87: (module, __unused_webpack_exports, __nccwpck_require__) => {
523
+ 468: (module, __unused_webpack_exports, __nccwpck_require__) => {
524
524
  "use strict";
525
525
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(408);
526
526
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -546,7 +546,7 @@
546
546
  }
547
547
  module.exports = { getHtmlRspackPluginHooks };
548
548
  },
549
- 334: (module) => {
549
+ 113: (module) => {
550
550
  const voidTags = [
551
551
  "area",
552
552
  "base",
@@ -614,19 +614,19 @@
614
614
  htmlTagObjectToString,
615
615
  };
616
616
  },
617
- 647: (module, __unused_webpack_exports, __nccwpck_require__) => {
617
+ 404: (module, __unused_webpack_exports, __nccwpck_require__) => {
618
618
  "use strict";
619
619
  const promisify = __nccwpck_require__(23).promisify;
620
620
  const vm = __nccwpck_require__(154);
621
621
  const fs = __nccwpck_require__(896);
622
622
  const path = __nccwpck_require__(928);
623
- const { CachedChildCompilation } = __nccwpck_require__(26);
623
+ const { CachedChildCompilation } = __nccwpck_require__(1);
624
624
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
625
- __nccwpck_require__(334);
626
- const prettyError = __nccwpck_require__(24);
627
- const chunkSorter = __nccwpck_require__(281);
625
+ __nccwpck_require__(113);
626
+ const prettyError = __nccwpck_require__(909);
627
+ const chunkSorter = __nccwpck_require__(578);
628
628
  const getHtmlRspackPluginHooks =
629
- __nccwpck_require__(87).getHtmlRspackPluginHooks;
629
+ __nccwpck_require__(468).getHtmlRspackPluginHooks;
630
630
  const WITH_PLACEHOLDER = "function __with_placeholder__";
631
631
  class HtmlRspackPlugin {
632
632
  constructor(userOptions = {}) {
@@ -1597,6 +1597,6 @@
1597
1597
  }
1598
1598
  if (typeof __nccwpck_require__ !== "undefined")
1599
1599
  __nccwpck_require__.ab = __dirname + "/";
1600
- var __webpack_exports__ = __nccwpck_require__(647);
1600
+ var __webpack_exports__ = __nccwpck_require__(404);
1601
1601
  module.exports = __webpack_exports__;
1602
1602
  })();
@@ -1,15 +1,15 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 435: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(421)["default"];
4
+ 490: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(440)["default"];
6
6
  },
7
- 421: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 440: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
8
  var __webpack_unused_export__;
9
9
  __webpack_unused_export__ = { value: true };
10
10
  exports["default"] = loader;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(928));
12
- var _utils = __nccwpck_require__(768);
12
+ var _utils = __nccwpck_require__(457);
13
13
  function _interopRequireDefault(obj) {
14
14
  return obj && obj.__esModule ? obj : { default: obj };
15
15
  }
@@ -179,7 +179,7 @@
179
179
  callback(null, result.css, map, { ast });
180
180
  }
181
181
  },
182
- 768: (module, exports, __nccwpck_require__) => {
182
+ 457: (module, exports, __nccwpck_require__) => {
183
183
  module = __nccwpck_require__.nmd(module);
184
184
  Object.defineProperty(exports, "__esModule", { value: true });
185
185
  exports.exec = exec;
@@ -716,6 +716,6 @@
716
716
  })();
717
717
  if (typeof __nccwpck_require__ !== "undefined")
718
718
  __nccwpck_require__.ab = __dirname + "/";
719
- var __webpack_exports__ = __nccwpck_require__(435);
719
+ var __webpack_exports__ = __nccwpck_require__(490);
720
720
  module.exports = __webpack_exports__;
721
721
  })();
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 438: (__unused_webpack_module, exports, __nccwpck_require__) => {
4
+ 139: (__unused_webpack_module, exports, __nccwpck_require__) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.transformFiles =
7
7
  exports.reduceChunk =
@@ -120,7 +120,7 @@
120
120
  .map(standardizeFilePaths);
121
121
  exports.transformFiles = transformFiles;
122
122
  },
123
- 823: (__unused_webpack_module, exports, __nccwpck_require__) => {
123
+ 782: (__unused_webpack_module, exports, __nccwpck_require__) => {
124
124
  Object.defineProperty(exports, "__esModule", { value: true });
125
125
  exports.normalModuleLoaderHook =
126
126
  exports.getCompilerHooks =
@@ -130,7 +130,7 @@
130
130
  const fs_1 = __nccwpck_require__(896);
131
131
  const path_1 = __nccwpck_require__(928);
132
132
  const lite_tapable_1 = __nccwpck_require__(408);
133
- const helpers_1 = __nccwpck_require__(438);
133
+ const helpers_1 = __nccwpck_require__(139);
134
134
  const compilerHookMap = new WeakMap();
135
135
  const getCompilerHooks = (compiler) => {
136
136
  let hooks = compilerHookMap.get(compiler);
@@ -312,7 +312,7 @@
312
312
  exports.getCompilerHooks =
313
313
  void 0;
314
314
  const path_1 = __nccwpck_require__(928);
315
- const hooks_1 = __nccwpck_require__(823);
315
+ const hooks_1 = __nccwpck_require__(782);
316
316
  Object.defineProperty(exports, "getCompilerHooks", {
317
317
  enumerable: true,
318
318
  get: function () {
package/dist/index.cjs CHANGED
@@ -1274,8 +1274,10 @@ for(var __webpack_i__ in (()=>{
1274
1274
  return `${format(seconds.toFixed(digits))} s`;
1275
1275
  }
1276
1276
  if (seconds < 60) return `${format(seconds.toFixed(1))} s`;
1277
- let minutes = seconds / 60;
1278
- return `${format(minutes.toFixed(2))} m`;
1277
+ let minutes = Math.floor(seconds / 60), minutesLabel = `${format(minutes.toFixed(0))} m`, remainingSeconds = seconds % 60;
1278
+ if (0 === remainingSeconds) return minutesLabel;
1279
+ let secondsLabel = `${format(remainingSeconds.toFixed(+(remainingSeconds % 1 != 0)))} s`;
1280
+ return `${minutesLabel} ${secondsLabel}`;
1279
1281
  }, isTTY = (type = 'stdout')=>('stdin' === type ? process.stdin.isTTY : process.stdout.isTTY) && !process.env.CI, addCompilationError = (compilation, message)=>{
1280
1282
  compilation.errors.push(new compilation.compiler.webpack.WebpackError(message));
1281
1283
  };
@@ -2248,7 +2250,7 @@ ${section.body}` : section.body).join("\n\n"));
2248
2250
  async function createContext(options, userConfig) {
2249
2251
  let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, external_node_path_namespaceObject.join)(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, bundlerType = userConfig.provider ? 'webpack' : 'rspack';
2250
2252
  return {
2251
- version: "1.4.4",
2253
+ version: "1.4.5",
2252
2254
  rootPath,
2253
2255
  distPath: '',
2254
2256
  cachePath,
@@ -2824,7 +2826,7 @@ ${section.body}` : section.body).join("\n\n"));
2824
2826
  }
2825
2827
  index_js_namespaceObject.logger.start('build started...');
2826
2828
  }(compiler, context), isCompiling = !0;
2827
- }), 'build' === context.action && compiler.hooks.run.tap('rsbuild:run', ()=>{
2829
+ }), 'build' === context.action && (isMultiCompiler ? compiler.compilers[0] : compiler).hooks.run.tap('rsbuild:run', ()=>{
2828
2830
  index_js_namespaceObject.logger.info('build started...'), logRspackVersion();
2829
2831
  }), compiler.hooks.done.tap('rsbuild:done', (stats)=>{
2830
2832
  ((stats)=>{
@@ -3835,8 +3837,8 @@ ${section.body}` : section.body).join("\n\n"));
3835
3837
  return isIPv6(host) ? '::' === host ? '[::1]' : `[${host}]` : host;
3836
3838
  }, concatUrl = ({ host, port, protocol })=>`${protocol}://${host}:${port}`, LOCAL_LABEL = 'Local: ', NETWORK_LABEL = 'Network: ', getUrlLabel = (url)=>{
3837
3839
  try {
3838
- let { host } = new URL(url);
3839
- return isLoopbackHost(host) ? LOCAL_LABEL : NETWORK_LABEL;
3840
+ let { hostname } = new URL(url);
3841
+ return isLoopbackHost(hostname) ? LOCAL_LABEL : NETWORK_LABEL;
3840
3842
  } catch {
3841
3843
  return NETWORK_LABEL;
3842
3844
  }
@@ -7862,11 +7864,11 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
7862
7864
  ].includes(level) && (index_js_namespaceObject.logger.level = level);
7863
7865
  }
7864
7866
  let { npm_execpath } = process.env;
7865
- (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && index_js_namespaceObject.logger.log(), index_js_namespaceObject.logger.greet(` Rsbuild v1.4.4\n`);
7867
+ (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && index_js_namespaceObject.logger.log(), index_js_namespaceObject.logger.greet(` Rsbuild v1.4.5\n`);
7866
7868
  try {
7867
7869
  !function() {
7868
7870
  let cli = ((name = "")=>new CAC(name))('rsbuild');
7869
- cli.help(), cli.version("1.4.4"), cli.option('--base <base>', 'specify the base path of the server').option('-c, --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--config-loader <loader>', 'specify the loader to load the config file, can be `jiti` or `native`', {
7871
+ cli.help(), cli.version("1.4.5"), cli.option('--base <base>', 'specify the base path of the server').option('-c, --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--config-loader <loader>', 'specify the loader to load the config file, can be `jiti` or `native`', {
7870
7872
  default: 'jiti'
7871
7873
  }).option('-r, --root <root>', 'specify the project root directory, can be an absolute path or a path relative to cwd').option('-m, --mode <mode>', 'specify the build mode, can be `development`, `production` or `none`').option('--log-level <level>', 'specify the log level, can be `info`, `warn`, `error` or `silent`').option('--env-mode <mode>', 'specify the env mode to load the `.env.[mode]` file').option('--environment <name>', 'specify the name of environment to build', {
7872
7874
  type: [
@@ -7924,7 +7926,7 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
7924
7926
  index_js_namespaceObject.logger.error('Failed to start Rsbuild CLI.'), index_js_namespaceObject.logger.error(err);
7925
7927
  }
7926
7928
  }
7927
- let src_version = "1.4.4";
7929
+ let src_version = "1.4.5";
7928
7930
  })(), exports.PLUGIN_CSS_NAME = __webpack_exports__.PLUGIN_CSS_NAME, exports.PLUGIN_SWC_NAME = __webpack_exports__.PLUGIN_SWC_NAME, exports.createRsbuild = __webpack_exports__.createRsbuild, exports.defaultAllowedOrigins = __webpack_exports__.defaultAllowedOrigins, exports.defineConfig = __webpack_exports__.defineConfig, exports.ensureAssetPrefix = __webpack_exports__.ensureAssetPrefix, exports.loadConfig = __webpack_exports__.loadConfig, exports.loadEnv = __webpack_exports__.loadEnv, exports.logger = __webpack_exports__.logger, exports.mergeRsbuildConfig = __webpack_exports__.mergeRsbuildConfig, exports.rspack = __webpack_exports__.rspack, exports.runCLI = __webpack_exports__.runCLI, exports.version = __webpack_exports__.version, __webpack_exports__)-1 === [
7929
7931
  "PLUGIN_CSS_NAME",
7930
7932
  "PLUGIN_SWC_NAME",
package/dist/index.js CHANGED
@@ -1096,8 +1096,10 @@ let prettyTime = (seconds)=>{
1096
1096
  return `${format(seconds.toFixed(digits))} s`;
1097
1097
  }
1098
1098
  if (seconds < 60) return `${format(seconds.toFixed(1))} s`;
1099
- let minutes = seconds / 60;
1100
- return `${format(minutes.toFixed(2))} m`;
1099
+ let minutes = Math.floor(seconds / 60), minutesLabel = `${format(minutes.toFixed(0))} m`, remainingSeconds = seconds % 60;
1100
+ if (0 === remainingSeconds) return minutesLabel;
1101
+ let secondsLabel = `${format(remainingSeconds.toFixed(+(remainingSeconds % 1 != 0)))} s`;
1102
+ return `${minutesLabel} ${secondsLabel}`;
1101
1103
  }, isTTY = (type = 'stdout')=>('stdin' === type ? process.stdin.isTTY : process.stdout.isTTY) && !process.env.CI, addCompilationError = (compilation, message)=>{
1102
1104
  compilation.errors.push(new compilation.compiler.webpack.WebpackError(message));
1103
1105
  };
@@ -2063,7 +2065,7 @@ async function updateEnvironmentContext(context, configs) {
2063
2065
  async function createContext(options, userConfig) {
2064
2066
  let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = join(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, bundlerType = userConfig.provider ? 'webpack' : 'rspack';
2065
2067
  return {
2066
- version: "1.4.4",
2068
+ version: "1.4.5",
2067
2069
  rootPath,
2068
2070
  distPath: '',
2069
2071
  cachePath,
@@ -2631,7 +2633,7 @@ async function createCompiler_createCompiler(options) {
2631
2633
  }
2632
2634
  logger.start('build started...');
2633
2635
  }(compiler, context), isCompiling = !0;
2634
- }), 'build' === context.action && compiler.hooks.run.tap('rsbuild:run', ()=>{
2636
+ }), 'build' === context.action && (isMultiCompiler ? compiler.compilers[0] : compiler).hooks.run.tap('rsbuild:run', ()=>{
2635
2637
  logger.info('build started...'), logRspackVersion();
2636
2638
  }), compiler.hooks.done.tap('rsbuild:done', (stats)=>{
2637
2639
  ((stats)=>{
@@ -3640,8 +3642,8 @@ let getPort = async ({ host, port, strictPort, tryLimits = 20 })=>{
3640
3642
  return isIPv6(host) ? '::' === host ? '[::1]' : `[${host}]` : host;
3641
3643
  }, concatUrl = ({ host, port, protocol })=>`${protocol}://${host}:${port}`, LOCAL_LABEL = 'Local: ', NETWORK_LABEL = 'Network: ', getUrlLabel = (url)=>{
3642
3644
  try {
3643
- let { host } = new URL(url);
3644
- return isLoopbackHost(host) ? LOCAL_LABEL : NETWORK_LABEL;
3645
+ let { hostname } = new URL(url);
3646
+ return isLoopbackHost(hostname) ? LOCAL_LABEL : NETWORK_LABEL;
3645
3647
  } catch {
3646
3648
  return NETWORK_LABEL;
3647
3649
  }
@@ -7645,11 +7647,11 @@ async function runCLI() {
7645
7647
  ].includes(level) && (logger.level = level);
7646
7648
  }
7647
7649
  let { npm_execpath } = process.env;
7648
- (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && logger.log(), logger.greet(` Rsbuild v1.4.4\n`);
7650
+ (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && logger.log(), logger.greet(` Rsbuild v1.4.5\n`);
7649
7651
  try {
7650
7652
  !function() {
7651
7653
  let cli = ((name = "")=>new CAC(name))('rsbuild');
7652
- cli.help(), cli.version("1.4.4"), cli.option('--base <base>', 'specify the base path of the server').option('-c, --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--config-loader <loader>', 'specify the loader to load the config file, can be `jiti` or `native`', {
7654
+ cli.help(), cli.version("1.4.5"), cli.option('--base <base>', 'specify the base path of the server').option('-c, --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--config-loader <loader>', 'specify the loader to load the config file, can be `jiti` or `native`', {
7653
7655
  default: 'jiti'
7654
7656
  }).option('-r, --root <root>', 'specify the project root directory, can be an absolute path or a path relative to cwd').option('-m, --mode <mode>', 'specify the build mode, can be `development`, `production` or `none`').option('--log-level <level>', 'specify the log level, can be `info`, `warn`, `error` or `silent`').option('--env-mode <mode>', 'specify the env mode to load the `.env.[mode]` file').option('--environment <name>', 'specify the name of environment to build', {
7655
7657
  type: [
@@ -7707,5 +7709,5 @@ async function runCLI() {
7707
7709
  logger.error('Failed to start Rsbuild CLI.'), logger.error(err);
7708
7710
  }
7709
7711
  }
7710
- let src_version = "1.4.4";
7712
+ let src_version = "1.4.5";
7711
7713
  export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig_loadConfig as loadConfig, loadEnv, logger, mergeRsbuildConfig, rspack, runCLI, src_version as version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "bugs": {
@@ -46,10 +46,10 @@
46
46
  "types.d.ts"
47
47
  ],
48
48
  "dependencies": {
49
- "@rspack/core": "1.4.2",
49
+ "@rspack/core": "1.4.5",
50
50
  "@rspack/lite-tapable": "~1.0.1",
51
51
  "@swc/helpers": "^0.5.17",
52
- "core-js": "~3.43.0",
52
+ "core-js": "~3.44.0",
53
53
  "jiti": "^2.4.2"
54
54
  },
55
55
  "devDependencies": {