@rsbuild/core 1.3.0 → 1.3.2

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
- 210: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 3408: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(6288);
5
+ const loader = __nccwpck_require__(1022);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(6329).defaultGetLocalIdent;
8
+ __nccwpck_require__(4671).defaultGetLocalIdent;
9
9
  },
10
- 6288: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 1022: (__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__(1279);
16
- var _utils = __nccwpck_require__(6329);
15
+ var _plugins = __nccwpck_require__(6549);
16
+ var _utils = __nccwpck_require__(4671);
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
- 1279: (__unused_webpack_module, exports, __nccwpck_require__) => {
239
+ 6549: (__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__(1388),
261
+ __nccwpck_require__(1862),
262
262
  );
263
263
  var _postcssIcssParser = _interopRequireDefault(
264
- __nccwpck_require__(7017),
264
+ __nccwpck_require__(6055),
265
265
  );
266
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(5632));
266
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(7410));
267
267
  function _interopRequireDefault(obj) {
268
268
  return obj && obj.__esModule ? obj : { default: obj };
269
269
  }
270
270
  },
271
- 7017: (__unused_webpack_module, exports, __nccwpck_require__) => {
271
+ 6055: (__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__(4531);
276
- var _utils = __nccwpck_require__(6329);
276
+ var _utils = __nccwpck_require__(4671);
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
- 1388: (__unused_webpack_module, exports, __nccwpck_require__) => {
375
+ 1862: (__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__(6329);
382
+ var _utils = __nccwpck_require__(4671);
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
- 5632: (__unused_webpack_module, exports, __nccwpck_require__) => {
687
+ 7410: (__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__(6329);
694
+ var _utils = __nccwpck_require__(4671);
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
- 6329: (__unused_webpack_module, exports, __nccwpck_require__) => {
1037
+ 4671: (__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__(210);
8101
+ var __webpack_exports__ = __nccwpck_require__(3408);
8102
8102
  module.exports = __webpack_exports__;
8103
8103
  })();
@@ -36,8 +36,6 @@ declare class HtmlRspackPlugin {
36
36
  }
37
37
 
38
38
  declare namespace HtmlRspackPlugin {
39
- type MinifyOptions = HtmlMinifierOptions;
40
-
41
39
  interface Options {
42
40
  /**
43
41
  * Emit the file only if it was changed.
@@ -173,9 +171,7 @@ declare namespace HtmlRspackPlugin {
173
171
  /**
174
172
  * The plugin options after adding default values
175
173
  */
176
- interface ProcessedOptions extends Required<Options> {
177
- minify?: Options['minify'];
178
- }
174
+ interface ProcessedOptions extends Required<Options> {}
179
175
 
180
176
  /**
181
177
  * The values which are available during template execution
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 274: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 5: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(299);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(774);
6
6
  const compilerMap = new WeakMap();
7
7
  class CachedChildCompilation {
8
8
  constructor(compiler) {
@@ -304,7 +304,7 @@
304
304
  }
305
305
  module.exports = { CachedChildCompilation };
306
306
  },
307
- 299: (module) => {
307
+ 774: (module) => {
308
308
  "use strict";
309
309
  class HtmlWebpackChildCompiler {
310
310
  constructor(templates) {
@@ -473,7 +473,7 @@
473
473
  }
474
474
  module.exports = { HtmlWebpackChildCompiler };
475
475
  },
476
- 769: (module) => {
476
+ 430: (module) => {
477
477
  "use strict";
478
478
  module.exports = {};
479
479
  module.exports.none = (chunks) => chunks;
@@ -492,7 +492,7 @@
492
492
  };
493
493
  module.exports.auto = module.exports.none;
494
494
  },
495
- 688: (module) => {
495
+ 193: (module) => {
496
496
  "use strict";
497
497
  module.exports = function (err) {
498
498
  return {
@@ -513,7 +513,7 @@
513
513
  };
514
514
  };
515
515
  },
516
- 695: (module, __unused_webpack_exports, __nccwpck_require__) => {
516
+ 984: (module, __unused_webpack_exports, __nccwpck_require__) => {
517
517
  "use strict";
518
518
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(408);
519
519
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -539,7 +539,7 @@
539
539
  }
540
540
  module.exports = { getHtmlRspackPluginHooks };
541
541
  },
542
- 902: (module) => {
542
+ 386: (module) => {
543
543
  const voidTags = [
544
544
  "area",
545
545
  "base",
@@ -607,19 +607,19 @@
607
607
  htmlTagObjectToString,
608
608
  };
609
609
  },
610
- 479: (module, __unused_webpack_exports, __nccwpck_require__) => {
610
+ 904: (module, __unused_webpack_exports, __nccwpck_require__) => {
611
611
  "use strict";
612
612
  const promisify = __nccwpck_require__(23).promisify;
613
613
  const vm = __nccwpck_require__(154);
614
614
  const fs = __nccwpck_require__(896);
615
615
  const path = __nccwpck_require__(928);
616
- const { CachedChildCompilation } = __nccwpck_require__(274);
616
+ const { CachedChildCompilation } = __nccwpck_require__(5);
617
617
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
618
- __nccwpck_require__(902);
619
- const prettyError = __nccwpck_require__(688);
620
- const chunkSorter = __nccwpck_require__(769);
618
+ __nccwpck_require__(386);
619
+ const prettyError = __nccwpck_require__(193);
620
+ const chunkSorter = __nccwpck_require__(430);
621
621
  const getHtmlRspackPluginHooks =
622
- __nccwpck_require__(695).getHtmlRspackPluginHooks;
622
+ __nccwpck_require__(984).getHtmlRspackPluginHooks;
623
623
  class HtmlRspackPlugin {
624
624
  constructor(userOptions = {}) {
625
625
  this.version = HtmlRspackPlugin.version;
@@ -1075,6 +1075,7 @@
1075
1075
  const htmlRegExp = /(<html[^>]*>)/i;
1076
1076
  const headRegExp = /(<\/head\s*>)/i;
1077
1077
  const bodyRegExp = /(<\/body\s*>)/i;
1078
+ const doctypeRegExp = /<!doctype html>/i;
1078
1079
  const metaViewportRegExp = /<meta[^>]+name=["']viewport["'][^>]*>/i;
1079
1080
  const body = assetTags.bodyTags.map((assetTagObject) =>
1080
1081
  htmlTagObjectToString(assetTagObject, this.options.xhtml),
@@ -1107,7 +1108,14 @@
1107
1108
  if (head.length) {
1108
1109
  if (!headRegExp.test(html)) {
1109
1110
  if (!htmlRegExp.test(html)) {
1110
- html = "<head></head>" + html;
1111
+ if (doctypeRegExp.test(html)) {
1112
+ html = html.replace(
1113
+ doctypeRegExp,
1114
+ (match) => match + "<head></head>",
1115
+ );
1116
+ } else {
1117
+ html = "<head></head>" + html;
1118
+ }
1111
1119
  } else {
1112
1120
  html = html.replace(
1113
1121
  htmlRegExp,
@@ -1578,6 +1586,6 @@
1578
1586
  }
1579
1587
  if (typeof __nccwpck_require__ !== "undefined")
1580
1588
  __nccwpck_require__.ab = __dirname + "/";
1581
- var __webpack_exports__ = __nccwpck_require__(479);
1589
+ var __webpack_exports__ = __nccwpck_require__(904);
1582
1590
  module.exports = __webpack_exports__;
1583
1591
  })();
@@ -1 +1 @@
1
- {"name":"html-rspack-plugin","author":"Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)","version":"6.0.2","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.0.4","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
- 762: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(688)["default"];
4
+ 459: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(141)["default"];
6
6
  },
7
- 688: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 141: (__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__(321);
12
+ var _utils = __nccwpck_require__(368);
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
- 321: (module, exports, __nccwpck_require__) => {
182
+ 368: (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__(762);
719
+ var __webpack_exports__ = __nccwpck_require__(459);
720
720
  module.exports = __webpack_exports__;
721
721
  })();
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 275: (__unused_webpack_module, exports, __nccwpck_require__) => {
4
+ 828: (__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
- 262: (__unused_webpack_module, exports, __nccwpck_require__) => {
123
+ 253: (__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__(275);
133
+ const helpers_1 = __nccwpck_require__(828);
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__(262);
315
+ const hooks_1 = __nccwpck_require__(253);
316
316
  Object.defineProperty(exports, "getCompilerHooks", {
317
317
  enumerable: true,
318
318
  get: function () {
@@ -232,7 +232,7 @@ declare namespace WebSocket {
232
232
  * headers. If finishRequest is set, then it has the responsibility to call
233
233
  * request.end() once it is done setting request headers.
234
234
  */
235
- type FinishRequestCallback = (request: IncomingMessage, websocket: WebSocket) => void;
235
+ type FinishRequestCallback = (request: ClientRequest, websocket: WebSocket) => void;
236
236
 
237
237
  interface ClientOptions extends SecureContextOptions {
238
238
  protocol?: string | undefined;
package/dist/index.cjs CHANGED
@@ -1734,7 +1734,11 @@ for(var __webpack_i__ in (()=>{
1734
1734
  if (void 0 === configExport) {
1735
1735
  let { createJiti } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "jiti")), jiti = createJiti(constants_filename, {
1736
1736
  moduleCache: !1,
1737
- interopDefault: !0
1737
+ interopDefault: !0,
1738
+ nativeModules: [
1739
+ '@rspack/core',
1740
+ "typescript"
1741
+ ]
1738
1742
  });
1739
1743
  configExport = await jiti.import(configFilePath, {
1740
1744
  default: !0
@@ -2203,7 +2207,7 @@ for(var __webpack_i__ in (()=>{
2203
2207
  async function createContext(options, userConfig) {
2204
2208
  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;
2205
2209
  return {
2206
- version: "1.3.0",
2210
+ version: "1.3.2",
2207
2211
  rootPath,
2208
2212
  distPath: '',
2209
2213
  cachePath,
@@ -7404,11 +7408,11 @@ ${section.body}` : section.body).join("\n\n"));
7404
7408
  }
7405
7409
  process.title = 'rsbuild-node';
7406
7410
  let { npm_execpath } = process.env;
7407
- (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.3.0\n`);
7411
+ (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.3.2\n`);
7408
7412
  try {
7409
7413
  !function() {
7410
7414
  let cli = cac_dist('rsbuild');
7411
- cli.help(), cli.version("1.3.0"), applyCommonOptions(cli);
7415
+ cli.help(), cli.version("1.3.2"), applyCommonOptions(cli);
7412
7416
  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');
7413
7417
  applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
7414
7418
  try {
@@ -7459,7 +7463,7 @@ ${section.body}` : section.body).join("\n\n"));
7459
7463
  rslog_index_js_namespaceObject.logger.error('Failed to start Rsbuild CLI.'), rslog_index_js_namespaceObject.logger.error(err);
7460
7464
  }
7461
7465
  }
7462
- let src_rslib_entry_version = "1.3.0";
7466
+ let src_rslib_entry_version = "1.3.2";
7463
7467
  })(), 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 === [
7464
7468
  "PLUGIN_CSS_NAME",
7465
7469
  "PLUGIN_SWC_NAME",
package/dist/index.js CHANGED
@@ -1634,7 +1634,11 @@ async function config_loadConfig({ cwd = process.cwd(), path, envMode, meta, loa
1634
1634
  if (void 0 === configExport) {
1635
1635
  let { createJiti } = await import("jiti"), jiti = createJiti(constants_filename, {
1636
1636
  moduleCache: !1,
1637
- interopDefault: !0
1637
+ interopDefault: !0,
1638
+ nativeModules: [
1639
+ '@rspack/core',
1640
+ "typescript"
1641
+ ]
1638
1642
  });
1639
1643
  configExport = await jiti.import(configFilePath, {
1640
1644
  default: !0
@@ -2103,7 +2107,7 @@ async function updateEnvironmentContext(context, configs) {
2103
2107
  async function createContext(options, userConfig) {
2104
2108
  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;
2105
2109
  return {
2106
- version: "1.3.0",
2110
+ version: "1.3.2",
2107
2111
  rootPath,
2108
2112
  distPath: '',
2109
2113
  cachePath,
@@ -7278,11 +7282,11 @@ async function runCLI() {
7278
7282
  }
7279
7283
  process.title = 'rsbuild-node';
7280
7284
  let { npm_execpath } = process.env;
7281
- (!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.0\n`);
7285
+ (!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.2\n`);
7282
7286
  try {
7283
7287
  !function() {
7284
7288
  let cli = cac_dist('rsbuild');
7285
- cli.help(), cli.version("1.3.0"), applyCommonOptions(cli);
7289
+ cli.help(), cli.version("1.3.2"), applyCommonOptions(cli);
7286
7290
  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');
7287
7291
  applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
7288
7292
  try {
@@ -7333,6 +7337,6 @@ async function runCLI() {
7333
7337
  __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);
7334
7338
  }
7335
7339
  }
7336
- let src_version = "1.3.0";
7340
+ let src_version = "1.3.2";
7337
7341
  var __webpack_exports__logger = __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger, __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack;
7338
7342
  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 };
@@ -1,4 +1,3 @@
1
- import type { Compiler as WebpackCompiler, MultiCompiler as WebpackMultiCompiler } from 'webpack';
2
1
  import color from '../../compiled/picocolors/index.js';
3
2
  import type RspackChain from '../../compiled/rspack-chain/index.js';
4
3
  import type { FilenameConfig, NormalizedConfig, NormalizedEnvironmentConfig, RsbuildTarget, Rspack } from '../types';
@@ -34,7 +33,7 @@ export declare const upperFirst: (str: string) => string;
34
33
  export declare const isURL: (str: string) => boolean;
35
34
  export declare const createVirtualModule: (content: string) => string;
36
35
  export declare function isWebTarget(target: RsbuildTarget | RsbuildTarget[]): boolean;
37
- export declare const isMultiCompiler: <C extends Rspack.Compiler | WebpackCompiler = Rspack.Compiler, M extends Rspack.MultiCompiler | WebpackMultiCompiler = Rspack.MultiCompiler>(compiler: C | M) => compiler is M;
36
+ export declare const isMultiCompiler: (compiler: Rspack.Compiler | Rspack.MultiCompiler) => compiler is Rspack.MultiCompiler;
38
37
  export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>): Pick<T, U>;
39
38
  export declare const camelCase: (input: string) => string;
40
39
  export declare const prettyTime: (seconds: number) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -46,20 +46,20 @@
46
46
  "types.d.ts"
47
47
  ],
48
48
  "dependencies": {
49
- "@rspack/core": "1.3.0",
49
+ "@rspack/core": "1.3.1",
50
50
  "@rspack/lite-tapable": "~1.0.1",
51
51
  "@swc/helpers": "^0.5.15",
52
52
  "core-js": "~3.41.0",
53
53
  "jiti": "^2.4.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@rslib/core": "0.6.0",
56
+ "@rslib/core": "0.6.1",
57
57
  "@types/connect": "3.4.38",
58
58
  "@types/cors": "^2.8.17",
59
- "@types/node": "^22.13.11",
59
+ "@types/node": "^22.13.16",
60
60
  "@types/on-finished": "2.3.4",
61
61
  "@types/webpack-bundle-analyzer": "4.7.0",
62
- "@types/ws": "^8.18.0",
62
+ "@types/ws": "^8.18.1",
63
63
  "browserslist-load-config": "1.0.0",
64
64
  "cac": "^6.7.14",
65
65
  "chokidar": "^4.0.3",
@@ -70,7 +70,7 @@
70
70
  "deepmerge": "^4.3.1",
71
71
  "dotenv": "16.4.7",
72
72
  "dotenv-expand": "12.0.1",
73
- "html-rspack-plugin": "6.0.2",
73
+ "html-rspack-plugin": "6.0.4",
74
74
  "http-proxy-middleware": "^2.0.6",
75
75
  "launch-editor-middleware": "^2.10.0",
76
76
  "mrmime": "^2.0.1",