@rsbuild/core 1.3.9 → 1.3.11

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
- 1492: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 7381: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(1546);
5
+ const loader = __nccwpck_require__(6335);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(4859).defaultGetLocalIdent;
8
+ __nccwpck_require__(10).defaultGetLocalIdent;
9
9
  },
10
- 1546: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 6335: (__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__(1193);
16
- var _utils = __nccwpck_require__(4859);
15
+ var _plugins = __nccwpck_require__(3716);
16
+ var _utils = __nccwpck_require__(10);
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
- 1193: (__unused_webpack_module, exports, __nccwpck_require__) => {
239
+ 3716: (__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,20 @@
258
258
  },
259
259
  });
260
260
  var _postcssImportParser = _interopRequireDefault(
261
- __nccwpck_require__(4242),
261
+ __nccwpck_require__(9935),
262
262
  );
263
- var _postcssIcssParser = _interopRequireDefault(
264
- __nccwpck_require__(5259),
265
- );
266
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(1038));
263
+ var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(834));
264
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(7013));
267
265
  function _interopRequireDefault(obj) {
268
266
  return obj && obj.__esModule ? obj : { default: obj };
269
267
  }
270
268
  },
271
- 5259: (__unused_webpack_module, exports, __nccwpck_require__) => {
269
+ 834: (__unused_webpack_module, exports, __nccwpck_require__) => {
272
270
  "use strict";
273
271
  Object.defineProperty(exports, "__esModule", { value: true });
274
272
  exports["default"] = void 0;
275
273
  var _icssUtils = __nccwpck_require__(4531);
276
- var _utils = __nccwpck_require__(4859);
274
+ var _utils = __nccwpck_require__(10);
277
275
  const plugin = (options = {}) => ({
278
276
  postcssPlugin: "postcss-icss-parser",
279
277
  async OnceExit(root) {
@@ -372,14 +370,14 @@
372
370
  plugin.postcss = true;
373
371
  var _default = (exports["default"] = plugin);
374
372
  },
375
- 4242: (__unused_webpack_module, exports, __nccwpck_require__) => {
373
+ 9935: (__unused_webpack_module, exports, __nccwpck_require__) => {
376
374
  "use strict";
377
375
  Object.defineProperty(exports, "__esModule", { value: true });
378
376
  exports["default"] = void 0;
379
377
  var _postcssValueParser = _interopRequireDefault(
380
378
  __nccwpck_require__(2948),
381
379
  );
382
- var _utils = __nccwpck_require__(4859);
380
+ var _utils = __nccwpck_require__(10);
383
381
  function _interopRequireDefault(obj) {
384
382
  return obj && obj.__esModule ? obj : { default: obj };
385
383
  }
@@ -684,14 +682,14 @@
684
682
  plugin.postcss = true;
685
683
  var _default = (exports["default"] = plugin);
686
684
  },
687
- 1038: (__unused_webpack_module, exports, __nccwpck_require__) => {
685
+ 7013: (__unused_webpack_module, exports, __nccwpck_require__) => {
688
686
  "use strict";
689
687
  Object.defineProperty(exports, "__esModule", { value: true });
690
688
  exports["default"] = void 0;
691
689
  var _postcssValueParser = _interopRequireDefault(
692
690
  __nccwpck_require__(2948),
693
691
  );
694
- var _utils = __nccwpck_require__(4859);
692
+ var _utils = __nccwpck_require__(10);
695
693
  function _interopRequireDefault(obj) {
696
694
  return obj && obj.__esModule ? obj : { default: obj };
697
695
  }
@@ -1034,7 +1032,7 @@
1034
1032
  plugin.postcss = true;
1035
1033
  var _default = (exports["default"] = plugin);
1036
1034
  },
1037
- 4859: (__unused_webpack_module, exports, __nccwpck_require__) => {
1035
+ 10: (__unused_webpack_module, exports, __nccwpck_require__) => {
1038
1036
  "use strict";
1039
1037
  Object.defineProperty(exports, "__esModule", { value: true });
1040
1038
  exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
@@ -8098,6 +8096,6 @@
8098
8096
  }
8099
8097
  if (typeof __nccwpck_require__ !== "undefined")
8100
8098
  __nccwpck_require__.ab = __dirname + "/";
8101
- var __webpack_exports__ = __nccwpck_require__(1492);
8099
+ var __webpack_exports__ = __nccwpck_require__(7381);
8102
8100
  module.exports = __webpack_exports__;
8103
8101
  })();
@@ -4,8 +4,6 @@ import { Compiler, Compilation } from '@rspack/core';
4
4
  declare class HtmlRspackPlugin {
5
5
  constructor(options?: HtmlRspackPlugin.Options);
6
6
 
7
- userOptions: HtmlRspackPlugin.Options;
8
-
9
7
  /** Current HtmlRspackPlugin Major */
10
8
  version: number;
11
9
 
@@ -196,55 +194,62 @@ declare namespace HtmlRspackPlugin {
196
194
  webpackConfig: any;
197
195
  }
198
196
 
199
- interface Hooks {
200
- alterAssetTags: AsyncSeriesWaterfallHook<{
201
- assetTags: {
202
- scripts: HtmlTagObject[];
203
- styles: HtmlTagObject[];
204
- meta: HtmlTagObject[];
205
- };
206
- publicPath: string;
207
- outputName: string;
208
- plugin: HtmlRspackPlugin;
209
- }>;
197
+ interface AlterAssetTagsData {
198
+ assetTags: {
199
+ scripts: HtmlTagObject[];
200
+ styles: HtmlTagObject[];
201
+ meta: HtmlTagObject[];
202
+ };
203
+ publicPath: string;
204
+ outputName: string;
205
+ plugin: HtmlRspackPlugin;
206
+ }
210
207
 
211
- alterAssetTagGroups: AsyncSeriesWaterfallHook<{
212
- headTags: HtmlTagObject[];
213
- bodyTags: HtmlTagObject[];
214
- outputName: string;
215
- publicPath: string;
216
- plugin: HtmlRspackPlugin;
217
- }>;
208
+ interface AlterAssetTagGroupsData {
209
+ headTags: HtmlTagObject[];
210
+ bodyTags: HtmlTagObject[];
211
+ outputName: string;
212
+ publicPath: string;
213
+ plugin: HtmlRspackPlugin;
214
+ }
218
215
 
219
- afterTemplateExecution: AsyncSeriesWaterfallHook<{
220
- html: string;
221
- headTags: HtmlTagObject[];
222
- bodyTags: HtmlTagObject[];
223
- outputName: string;
224
- plugin: HtmlRspackPlugin;
225
- }>;
216
+ interface AfterTemplateExecutionData {
217
+ html: string;
218
+ headTags: HtmlTagObject[];
219
+ bodyTags: HtmlTagObject[];
220
+ outputName: string;
221
+ plugin: HtmlRspackPlugin;
222
+ }
226
223
 
227
- beforeAssetTagGeneration: AsyncSeriesWaterfallHook<{
228
- assets: {
229
- publicPath: string;
230
- js: Array<string>;
231
- css: Array<string>;
232
- favicon?: string;
233
- };
234
- outputName: string;
235
- plugin: HtmlRspackPlugin;
236
- }>;
224
+ interface BeforeAssetTagGenerationData {
225
+ assets: {
226
+ publicPath: string;
227
+ js: Array<string>;
228
+ css: Array<string>;
229
+ favicon?: string;
230
+ };
231
+ outputName: string;
232
+ plugin: HtmlRspackPlugin;
233
+ }
237
234
 
238
- beforeEmit: AsyncSeriesWaterfallHook<{
239
- html: string;
240
- outputName: string;
241
- plugin: HtmlRspackPlugin;
242
- }>;
235
+ interface BeforeEmitData {
236
+ html: string;
237
+ outputName: string;
238
+ plugin: HtmlRspackPlugin;
239
+ }
243
240
 
244
- afterEmit: AsyncSeriesWaterfallHook<{
245
- outputName: string;
246
- plugin: HtmlRspackPlugin;
247
- }>;
241
+ interface AfterEmitData {
242
+ outputName: string;
243
+ plugin: HtmlRspackPlugin;
244
+ }
245
+
246
+ interface Hooks {
247
+ alterAssetTags: AsyncSeriesWaterfallHook<AlterAssetTagsData>;
248
+ alterAssetTagGroups: AsyncSeriesWaterfallHook<AlterAssetTagGroupsData>;
249
+ afterTemplateExecution: AsyncSeriesWaterfallHook<AfterTemplateExecutionData>;
250
+ beforeAssetTagGeneration: AsyncSeriesWaterfallHook<BeforeAssetTagGenerationData>;
251
+ beforeEmit: AsyncSeriesWaterfallHook<BeforeEmitData>;
252
+ afterEmit: AsyncSeriesWaterfallHook<AfterEmitData>;
248
253
  }
249
254
 
250
255
  /**
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 487: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 971: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(988);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(232);
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
- 988: (module) => {
307
+ 232: (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
- 388: (module) => {
476
+ 592: (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
- 243: (module) => {
495
+ 151: (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
- 450: (module, __unused_webpack_exports, __nccwpck_require__) => {
516
+ 366: (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
- 319: (module) => {
542
+ 603: (module) => {
543
543
  const voidTags = [
544
544
  "area",
545
545
  "base",
@@ -607,19 +607,19 @@
607
607
  htmlTagObjectToString,
608
608
  };
609
609
  },
610
- 958: (module, __unused_webpack_exports, __nccwpck_require__) => {
610
+ 266: (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__(487);
616
+ const { CachedChildCompilation } = __nccwpck_require__(971);
617
617
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
618
- __nccwpck_require__(319);
619
- const prettyError = __nccwpck_require__(243);
620
- const chunkSorter = __nccwpck_require__(388);
618
+ __nccwpck_require__(603);
619
+ const prettyError = __nccwpck_require__(151);
620
+ const chunkSorter = __nccwpck_require__(592);
621
621
  const getHtmlRspackPluginHooks =
622
- __nccwpck_require__(450).getHtmlRspackPluginHooks;
622
+ __nccwpck_require__(366).getHtmlRspackPluginHooks;
623
623
  class HtmlRspackPlugin {
624
624
  constructor(userOptions = {}) {
625
625
  this.version = HtmlRspackPlugin.version;
@@ -1586,6 +1586,6 @@
1586
1586
  }
1587
1587
  if (typeof __nccwpck_require__ !== "undefined")
1588
1588
  __nccwpck_require__.ab = __dirname + "/";
1589
- var __webpack_exports__ = __nccwpck_require__(958);
1589
+ var __webpack_exports__ = __nccwpck_require__(266);
1590
1590
  module.exports = __webpack_exports__;
1591
1591
  })();
@@ -1 +1 @@
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
+ {"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,15 +1,15 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 172: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(66)["default"];
4
+ 15: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(825)["default"];
6
6
  },
7
- 66: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 825: (__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__(939);
12
+ var _utils = __nccwpck_require__(76);
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
- 939: (module, exports, __nccwpck_require__) => {
182
+ 76: (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__(172);
719
+ var __webpack_exports__ = __nccwpck_require__(15);
720
720
  module.exports = __webpack_exports__;
721
721
  })();
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 722: (__unused_webpack_module, exports, __nccwpck_require__) => {
4
+ 83: (__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
- 283: (__unused_webpack_module, exports, __nccwpck_require__) => {
123
+ 894: (__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__(722);
133
+ const helpers_1 = __nccwpck_require__(83);
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__(283);
315
+ const hooks_1 = __nccwpck_require__(894);
316
316
  Object.defineProperty(exports, "getCompilerHooks", {
317
317
  enumerable: true,
318
318
  get: function () {