@rsbuild/core 1.3.16 → 1.3.17

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
- 9377: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 4278: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(1667);
5
+ const loader = __nccwpck_require__(2284);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(9230).defaultGetLocalIdent;
8
+ __nccwpck_require__(8453).defaultGetLocalIdent;
9
9
  },
10
- 1667: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 2284: (__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__(6800);
16
- var _utils = __nccwpck_require__(9230);
15
+ var _plugins = __nccwpck_require__(1539);
16
+ var _utils = __nccwpck_require__(8453);
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
- 6800: (__unused_webpack_module, exports, __nccwpck_require__) => {
239
+ 1539: (__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,20 +258,20 @@
258
258
  },
259
259
  });
260
260
  var _postcssImportParser = _interopRequireDefault(
261
- __nccwpck_require__(5715),
261
+ __nccwpck_require__(2984),
262
262
  );
263
- var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(126));
264
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(3737));
263
+ var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(893));
264
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(1500));
265
265
  function _interopRequireDefault(obj) {
266
266
  return obj && obj.__esModule ? obj : { default: obj };
267
267
  }
268
268
  },
269
- 126: (__unused_webpack_module, exports, __nccwpck_require__) => {
269
+ 893: (__unused_webpack_module, exports, __nccwpck_require__) => {
270
270
  "use strict";
271
271
  Object.defineProperty(exports, "__esModule", { value: true });
272
272
  exports["default"] = void 0;
273
273
  var _icssUtils = __nccwpck_require__(4531);
274
- var _utils = __nccwpck_require__(9230);
274
+ var _utils = __nccwpck_require__(8453);
275
275
  const plugin = (options = {}) => ({
276
276
  postcssPlugin: "postcss-icss-parser",
277
277
  async OnceExit(root) {
@@ -370,14 +370,14 @@
370
370
  plugin.postcss = true;
371
371
  var _default = (exports["default"] = plugin);
372
372
  },
373
- 5715: (__unused_webpack_module, exports, __nccwpck_require__) => {
373
+ 2984: (__unused_webpack_module, exports, __nccwpck_require__) => {
374
374
  "use strict";
375
375
  Object.defineProperty(exports, "__esModule", { value: true });
376
376
  exports["default"] = void 0;
377
377
  var _postcssValueParser = _interopRequireDefault(
378
378
  __nccwpck_require__(2948),
379
379
  );
380
- var _utils = __nccwpck_require__(9230);
380
+ var _utils = __nccwpck_require__(8453);
381
381
  function _interopRequireDefault(obj) {
382
382
  return obj && obj.__esModule ? obj : { default: obj };
383
383
  }
@@ -682,14 +682,14 @@
682
682
  plugin.postcss = true;
683
683
  var _default = (exports["default"] = plugin);
684
684
  },
685
- 3737: (__unused_webpack_module, exports, __nccwpck_require__) => {
685
+ 1500: (__unused_webpack_module, exports, __nccwpck_require__) => {
686
686
  "use strict";
687
687
  Object.defineProperty(exports, "__esModule", { value: true });
688
688
  exports["default"] = void 0;
689
689
  var _postcssValueParser = _interopRequireDefault(
690
690
  __nccwpck_require__(2948),
691
691
  );
692
- var _utils = __nccwpck_require__(9230);
692
+ var _utils = __nccwpck_require__(8453);
693
693
  function _interopRequireDefault(obj) {
694
694
  return obj && obj.__esModule ? obj : { default: obj };
695
695
  }
@@ -1032,7 +1032,7 @@
1032
1032
  plugin.postcss = true;
1033
1033
  var _default = (exports["default"] = plugin);
1034
1034
  },
1035
- 9230: (__unused_webpack_module, exports, __nccwpck_require__) => {
1035
+ 8453: (__unused_webpack_module, exports, __nccwpck_require__) => {
1036
1036
  "use strict";
1037
1037
  Object.defineProperty(exports, "__esModule", { value: true });
1038
1038
  exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
@@ -3731,7 +3731,7 @@
3731
3731
  var _selector = _interopRequireDefault(__nccwpck_require__(5297));
3732
3732
  var _className = _interopRequireDefault(__nccwpck_require__(173));
3733
3733
  var _comment = _interopRequireDefault(__nccwpck_require__(8983));
3734
- var _id = _interopRequireDefault(__nccwpck_require__(8453));
3734
+ var _id = _interopRequireDefault(__nccwpck_require__(834));
3735
3735
  var _tag = _interopRequireDefault(__nccwpck_require__(5526));
3736
3736
  var _string = _interopRequireDefault(__nccwpck_require__(4349));
3737
3737
  var _pseudo = _interopRequireDefault(__nccwpck_require__(7250));
@@ -5707,7 +5707,7 @@
5707
5707
  var _className = _interopRequireDefault(__nccwpck_require__(173));
5708
5708
  var _combinator = _interopRequireDefault(__nccwpck_require__(3998));
5709
5709
  var _comment = _interopRequireDefault(__nccwpck_require__(8983));
5710
- var _id = _interopRequireDefault(__nccwpck_require__(8453));
5710
+ var _id = _interopRequireDefault(__nccwpck_require__(834));
5711
5711
  var _nesting = _interopRequireDefault(__nccwpck_require__(8568));
5712
5712
  var _pseudo = _interopRequireDefault(__nccwpck_require__(7250));
5713
5713
  var _root = _interopRequireDefault(__nccwpck_require__(9608));
@@ -6289,7 +6289,7 @@
6289
6289
  return isAttribute(node) || isTag(node);
6290
6290
  }
6291
6291
  },
6292
- 8453: (module, exports, __nccwpck_require__) => {
6292
+ 834: (module, exports, __nccwpck_require__) => {
6293
6293
  "use strict";
6294
6294
  exports.__esModule = true;
6295
6295
  exports["default"] = void 0;
@@ -8096,6 +8096,6 @@
8096
8096
  }
8097
8097
  if (typeof __nccwpck_require__ !== "undefined")
8098
8098
  __nccwpck_require__.ab = __dirname + "/";
8099
- var __webpack_exports__ = __nccwpck_require__(9377);
8099
+ var __webpack_exports__ = __nccwpck_require__(4278);
8100
8100
  module.exports = __webpack_exports__;
8101
8101
  })();
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 725: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 722: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(318);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(907);
6
6
  const compilerMap = new WeakMap();
7
7
  class CachedChildCompilation {
8
8
  constructor(compiler) {
@@ -52,35 +52,43 @@
52
52
  }
53
53
  }
54
54
  class PersistentChildCompilerSingletonPlugin {
55
- static createSnapshot(fileDependencies, mainCompilation, startTime) {
56
- return new Promise((resolve, reject) => {
57
- mainCompilation.fileSystemInfo.createSnapshot(
58
- startTime,
59
- fileDependencies.fileDependencies,
60
- fileDependencies.contextDependencies,
61
- fileDependencies.missingDependencies,
62
- null,
63
- (err, snapshot) => {
64
- if (err) {
65
- return reject(err);
66
- }
67
- resolve(snapshot);
68
- },
69
- );
70
- });
55
+ static createSnapshot(fileDependencies, mainCompilation) {
56
+ const timestamps = {};
57
+ const fs = mainCompilation.inputFileSystem;
58
+ return Promise.all(
59
+ fileDependencies.map(
60
+ (file) =>
61
+ new Promise((resolve) => {
62
+ fs.stat(file, (err, stat) => {
63
+ if (!err && stat) {
64
+ timestamps[file] = stat.mtime.getTime();
65
+ } else {
66
+ timestamps[file] = null;
67
+ }
68
+ resolve();
69
+ });
70
+ }),
71
+ ),
72
+ ).then(() => timestamps);
71
73
  }
72
74
  static isSnapshotValid(snapshot, mainCompilation) {
73
- return new Promise((resolve, reject) => {
74
- mainCompilation.fileSystemInfo.checkSnapshotValid(
75
- snapshot,
76
- (err, isValid) => {
77
- if (err) {
78
- reject(err);
79
- }
80
- resolve(isValid);
81
- },
82
- );
83
- });
75
+ const fs = mainCompilation.inputFileSystem;
76
+ return Promise.all(
77
+ Object.keys(snapshot).map(
78
+ (file) =>
79
+ new Promise((resolve) => {
80
+ fs.stat(file, (err, stat) => {
81
+ if (!err && stat && snapshot[file] !== null) {
82
+ resolve(stat.mtime.getTime() === snapshot[file]);
83
+ } else if (err && snapshot[file] === null) {
84
+ resolve(true);
85
+ } else {
86
+ resolve(false);
87
+ }
88
+ });
89
+ }),
90
+ ),
91
+ ).then((results) => !results.includes(false));
84
92
  }
85
93
  static watchFiles(mainCompilation, fileDependencies) {
86
94
  Object.keys(fileDependencies).forEach((depencyTypes) => {
@@ -154,9 +162,8 @@
154
162
  compiledEntriesPromise
155
163
  .then((childCompilationResult) =>
156
164
  PersistentChildCompilerSingletonPlugin.createSnapshot(
157
- childCompilationResult.dependencies,
165
+ childCompilationResult.dependencies.fileDependencies,
158
166
  mainCompilation,
159
- compilationStartTime,
160
167
  ),
161
168
  )
162
169
  .then((snapshot) => {
@@ -304,7 +311,7 @@
304
311
  }
305
312
  module.exports = { CachedChildCompilation };
306
313
  },
307
- 318: (module) => {
314
+ 907: (module) => {
308
315
  "use strict";
309
316
  class HtmlWebpackChildCompiler {
310
317
  constructor(templates) {
@@ -473,7 +480,7 @@
473
480
  }
474
481
  module.exports = { HtmlWebpackChildCompiler };
475
482
  },
476
- 910: (module) => {
483
+ 297: (module) => {
477
484
  "use strict";
478
485
  module.exports = {};
479
486
  module.exports.none = (chunks) => chunks;
@@ -492,7 +499,7 @@
492
499
  };
493
500
  module.exports.auto = module.exports.none;
494
501
  },
495
- 185: (module) => {
502
+ 184: (module) => {
496
503
  "use strict";
497
504
  module.exports = function (err) {
498
505
  return {
@@ -513,7 +520,7 @@
513
520
  };
514
521
  };
515
522
  },
516
- 312: (module, __unused_webpack_exports, __nccwpck_require__) => {
523
+ 55: (module, __unused_webpack_exports, __nccwpck_require__) => {
517
524
  "use strict";
518
525
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(408);
519
526
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -539,7 +546,7 @@
539
546
  }
540
547
  module.exports = { getHtmlRspackPluginHooks };
541
548
  },
542
- 333: (module) => {
549
+ 502: (module) => {
543
550
  const voidTags = [
544
551
  "area",
545
552
  "base",
@@ -607,19 +614,20 @@
607
614
  htmlTagObjectToString,
608
615
  };
609
616
  },
610
- 192: (module, __unused_webpack_exports, __nccwpck_require__) => {
617
+ 759: (module, __unused_webpack_exports, __nccwpck_require__) => {
611
618
  "use strict";
612
619
  const promisify = __nccwpck_require__(23).promisify;
613
620
  const vm = __nccwpck_require__(154);
614
621
  const fs = __nccwpck_require__(896);
615
622
  const path = __nccwpck_require__(928);
616
- const { CachedChildCompilation } = __nccwpck_require__(725);
623
+ const { CachedChildCompilation } = __nccwpck_require__(722);
617
624
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
618
- __nccwpck_require__(333);
619
- const prettyError = __nccwpck_require__(185);
620
- const chunkSorter = __nccwpck_require__(910);
625
+ __nccwpck_require__(502);
626
+ const prettyError = __nccwpck_require__(184);
627
+ const chunkSorter = __nccwpck_require__(297);
621
628
  const getHtmlRspackPluginHooks =
622
- __nccwpck_require__(312).getHtmlRspackPluginHooks;
629
+ __nccwpck_require__(55).getHtmlRspackPluginHooks;
630
+ const WITH_PLACEHOLDER = "function __with_placeholder__";
623
631
  class HtmlRspackPlugin {
624
632
  constructor(userOptions = {}) {
625
633
  this.version = HtmlRspackPlugin.version;
@@ -887,6 +895,9 @@
887
895
  new Error("The child compilation didn't provide a result"),
888
896
  );
889
897
  }
898
+ if (source.indexOf(WITH_PLACEHOLDER) >= 0) {
899
+ source = source.replace(WITH_PLACEHOLDER, "with");
900
+ }
890
901
  if (source.indexOf("HTML_WEBPACK_PLUGIN_RESULT") >= 0) {
891
902
  source += ";\nHTML_WEBPACK_PLUGIN_RESULT";
892
903
  }
@@ -1586,6 +1597,6 @@
1586
1597
  }
1587
1598
  if (typeof __nccwpck_require__ !== "undefined")
1588
1599
  __nccwpck_require__.ab = __dirname + "/";
1589
- var __webpack_exports__ = __nccwpck_require__(192);
1600
+ var __webpack_exports__ = __nccwpck_require__(759);
1590
1601
  module.exports = __webpack_exports__;
1591
1602
  })();
@@ -30,6 +30,7 @@ const stringEscapes = {
30
30
  '\u2029': 'u2029',
31
31
  };
32
32
 
33
+ const WITH_PLACEHOLDER = 'function __with_placeholder__';
33
34
  const escapeStringChar = (chr) => '\\' + stringEscapes[chr];
34
35
 
35
36
  function template(string) {
@@ -150,11 +151,11 @@ function lodashEscape(string) {
150
151
  };`;
151
152
 
152
153
  // The following part renders the template with lodash as a minimalistic loader
154
+ // The WITH_PLACEHOLDER will be replaced with `with` in the next step
155
+ // to make the code compatible with SWC strict mode
153
156
  const { compiled, isEscaping } = template(source);
154
- // Use `eval("require")("lodash")` to enforce using the native nodejs require
155
- // during template execution
156
157
  return `
157
- module.exports = function (templateParams) { with(templateParams) {
158
+ module.exports = function (templateParams) { ${WITH_PLACEHOLDER}(templateParams) {
158
159
  ${isEscaping ? escapeCode : ''}
159
160
  // Execute the lodash template
160
161
  return (${compiled})();
@@ -1 +1 @@
1
- {"name":"html-rspack-plugin","author":"Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)","version":"6.0.5","funding":{"type":"opencollective","url":"https://opencollective.com/html-webpack-plugin"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"html-rspack-plugin","author":"Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)","version":"6.1.2","funding":{"type":"opencollective","url":"https://opencollective.com/html-webpack-plugin"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -1,15 +1,15 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 631: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(513)["default"];
4
+ 866: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(184)["default"];
6
6
  },
7
- 513: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 184: (__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__(876);
12
+ var _utils = __nccwpck_require__(201);
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
- 876: (module, exports, __nccwpck_require__) => {
182
+ 201: (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__(631);
719
+ var __webpack_exports__ = __nccwpck_require__(866);
720
720
  module.exports = __webpack_exports__;
721
721
  })();
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 685: (__unused_webpack_module, exports, __nccwpck_require__) => {
4
+ 14: (__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
- 440: (__unused_webpack_module, exports, __nccwpck_require__) => {
123
+ 207: (__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__(685);
133
+ const helpers_1 = __nccwpck_require__(14);
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__(440);
315
+ const hooks_1 = __nccwpck_require__(207);
316
316
  Object.defineProperty(exports, "getCompilerHooks", {
317
317
  enumerable: true,
318
318
  get: function () {
package/dist/index.cjs CHANGED
@@ -2258,7 +2258,7 @@ for(var __webpack_i__ in (()=>{
2258
2258
  async function createContext(options, userConfig) {
2259
2259
  let { cwd } = options, rootPath = userConfig.root ? getAbsolutePath(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;
2260
2260
  return {
2261
- version: "1.3.16",
2261
+ version: "1.3.17",
2262
2262
  rootPath,
2263
2263
  distPath: '',
2264
2264
  cachePath,
@@ -2571,7 +2571,7 @@ for(var __webpack_i__ in (()=>{
2571
2571
  javascript: {
2572
2572
  exportsPresence: 'error'
2573
2573
  }
2574
- }), isDev && config.dev.hmr && 'web' === target && chain.plugin(CHAIN_ID.PLUGIN.HMR).use(bundler.HotModuleReplacementPlugin), 'development' === env && chain.output.devtoolModuleFilenameTemplate((info)=>toPosixPath(info.absoluteResourcePath)), process.env.RSPACK_CONFIG_VALIDATE ||= 'loose-unrecognized-keys', process.env.WATCHPACK_WATCHER_LIMIT ||= '20', 'rspack' === api.context.bundlerType && chain.experiments({
2574
+ }), isDev && config.dev.hmr && 'web' === target && chain.plugin(CHAIN_ID.PLUGIN.HMR).use(bundler.HotModuleReplacementPlugin), 'development' === env && chain.output.devtoolModuleFilenameTemplate((info)=>toPosixPath(info.absoluteResourcePath)), process.env.RSPACK_CONFIG_VALIDATE ||= 'loose-unrecognized-keys', 'rspack' === api.context.bundlerType && chain.experiments({
2575
2575
  ...chain.get('experiments'),
2576
2576
  incremental: !0
2577
2577
  });
@@ -7527,11 +7527,11 @@ ${section.body}` : section.body).join("\n\n"));
7527
7527
  }
7528
7528
  process.title = 'rsbuild-node';
7529
7529
  let { npm_execpath } = process.env;
7530
- (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.3.16\n`);
7530
+ (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.3.17\n`);
7531
7531
  try {
7532
7532
  !function() {
7533
7533
  let cli = cac_dist('rsbuild');
7534
- cli.help(), cli.version("1.3.16"), applyCommonOptions(cli);
7534
+ cli.help(), cli.version("1.3.17"), applyCommonOptions(cli);
7535
7535
  let devCommand = cli.command('', 'starting the dev server').alias('dev'), buildCommand = cli.command('build', 'build the app for production'), previewCommand = cli.command('preview', 'preview the production build locally'), inspectCommand = cli.command('inspect', 'inspect the Rspack and Rsbuild configs');
7536
7536
  applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
7537
7537
  try {
@@ -7582,7 +7582,7 @@ ${section.body}` : section.body).join("\n\n"));
7582
7582
  rslog_index_js_namespaceObject.logger.error('Failed to start Rsbuild CLI.'), rslog_index_js_namespaceObject.logger.error(err);
7583
7583
  }
7584
7584
  }
7585
- let src_version = "1.3.16";
7585
+ let src_version = "1.3.17";
7586
7586
  })(), exports.PLUGIN_CSS_NAME = __webpack_exports__.PLUGIN_CSS_NAME, exports.PLUGIN_SWC_NAME = __webpack_exports__.PLUGIN_SWC_NAME, exports.createRsbuild = __webpack_exports__.createRsbuild, 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 === [
7587
7587
  "PLUGIN_CSS_NAME",
7588
7588
  "PLUGIN_SWC_NAME",
package/dist/index.js CHANGED
@@ -2117,7 +2117,7 @@ async function updateEnvironmentContext(context, configs) {
2117
2117
  async function createContext(options, userConfig) {
2118
2118
  let { cwd } = options, rootPath = userConfig.root ? getAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0;
2119
2119
  return {
2120
- version: "1.3.16",
2120
+ version: "1.3.17",
2121
2121
  rootPath,
2122
2122
  distPath: '',
2123
2123
  cachePath,
@@ -2430,7 +2430,7 @@ let configChain_CHAIN_ID = {
2430
2430
  javascript: {
2431
2431
  exportsPresence: 'error'
2432
2432
  }
2433
- }), isDev && config.dev.hmr && 'web' === target && chain.plugin(CHAIN_ID.PLUGIN.HMR).use(bundler.HotModuleReplacementPlugin), 'development' === env && chain.output.devtoolModuleFilenameTemplate((info)=>toPosixPath(info.absoluteResourcePath)), process.env.RSPACK_CONFIG_VALIDATE ||= 'loose-unrecognized-keys', process.env.WATCHPACK_WATCHER_LIMIT ||= '20', 'rspack' === api.context.bundlerType && chain.experiments({
2433
+ }), isDev && config.dev.hmr && 'web' === target && chain.plugin(CHAIN_ID.PLUGIN.HMR).use(bundler.HotModuleReplacementPlugin), 'development' === env && chain.output.devtoolModuleFilenameTemplate((info)=>toPosixPath(info.absoluteResourcePath)), process.env.RSPACK_CONFIG_VALIDATE ||= 'loose-unrecognized-keys', 'rspack' === api.context.bundlerType && chain.experiments({
2434
2434
  ...chain.get('experiments'),
2435
2435
  incremental: !0
2436
2436
  });
@@ -7362,11 +7362,11 @@ async function runCLI() {
7362
7362
  }
7363
7363
  process.title = 'rsbuild-node';
7364
7364
  let { npm_execpath } = process.env;
7365
- (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.greet(` Rsbuild v1.3.16\n`);
7365
+ (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.greet(` Rsbuild v1.3.17\n`);
7366
7366
  try {
7367
7367
  !function() {
7368
7368
  let cli = cac_dist('rsbuild');
7369
- cli.help(), cli.version("1.3.16"), applyCommonOptions(cli);
7369
+ cli.help(), cli.version("1.3.17"), applyCommonOptions(cli);
7370
7370
  let devCommand = cli.command('', 'starting the dev server').alias('dev'), buildCommand = cli.command('build', 'build the app for production'), previewCommand = cli.command('preview', 'preview the production build locally'), inspectCommand = cli.command('inspect', 'inspect the Rspack and Rsbuild configs');
7371
7371
  applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
7372
7372
  try {
@@ -7417,6 +7417,6 @@ async function runCLI() {
7417
7417
  __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.error('Failed to start Rsbuild CLI.'), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.error(err);
7418
7418
  }
7419
7419
  }
7420
- let src_version = "1.3.16";
7420
+ let src_version = "1.3.17";
7421
7421
  var __webpack_exports__logger = __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger, __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack;
7422
7422
  export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createRsbuild, defineConfig, ensureAssetPrefix, config_loadConfig as loadConfig, loadEnv, mergeRsbuildConfig, runCLI, src_version as version, __webpack_exports__logger as logger, __webpack_exports__rspack as rspack };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -46,7 +46,7 @@
46
46
  "types.d.ts"
47
47
  ],
48
48
  "dependencies": {
49
- "@rspack/core": "1.3.8",
49
+ "@rspack/core": "1.3.9",
50
50
  "@rspack/lite-tapable": "~1.0.1",
51
51
  "@swc/helpers": "^0.5.17",
52
52
  "core-js": "~3.42.0",
@@ -70,7 +70,7 @@
70
70
  "deepmerge": "^4.3.1",
71
71
  "dotenv": "16.5.0",
72
72
  "dotenv-expand": "12.0.2",
73
- "html-rspack-plugin": "6.0.5",
73
+ "html-rspack-plugin": "6.1.2",
74
74
  "http-proxy-middleware": "^2.0.9",
75
75
  "launch-editor-middleware": "^2.10.0",
76
76
  "mrmime": "^2.0.1",