@rspack/browser 2.0.0-beta.2 → 2.0.0-beta.4

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,13 +1,15 @@
1
1
  import type { Compiler } from '../Compiler';
2
- import type { RspackOptionsNormalized } from '../config';
2
+ import type { OptimizationSplitChunksOptions, RspackOptionsNormalized } from '../config';
3
3
  export declare function applyLimits(options: RspackOptionsNormalized): void;
4
4
  export declare class EsmLibraryPlugin {
5
5
  static PLUGIN_NAME: string;
6
- options?: {
6
+ options: {
7
7
  preserveModules?: string;
8
+ splitChunks?: OptimizationSplitChunksOptions | false;
8
9
  };
9
10
  constructor(options?: {
10
11
  preserveModules?: string;
12
+ splitChunks?: OptimizationSplitChunksOptions | false;
11
13
  });
12
14
  apply(compiler: Compiler): void;
13
15
  }
@@ -1,9 +1,10 @@
1
- import { type RawProgressPluginOptions } from '../binding';
2
- export type ProgressPluginArgument = Partial<Omit<RawProgressPluginOptions, 'handler'>> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
1
+ import { type RawProgressPluginHandlerInfo, type RawProgressPluginOptions } from '../binding';
2
+ export type ProgressPluginOptions = Partial<Omit<RawProgressPluginOptions, 'handler'>> | ((percentage: number, msg: string, info: RawProgressPluginHandlerInfo) => void) | undefined;
3
+ export type ProgressPluginHandlerInfo = RawProgressPluginHandlerInfo;
3
4
  export declare const ProgressPlugin: {
4
- new (progress?: ProgressPluginArgument): {
5
+ new (progress?: ProgressPluginOptions): {
5
6
  name: string;
6
- _args: [progress?: ProgressPluginArgument];
7
+ _args: [progress?: ProgressPluginOptions];
7
8
  affectedHooks: keyof import("..").CompilerHooks | undefined;
8
9
  raw(compiler: import("..").Compiler): import("../binding").BuiltinPlugin;
9
10
  apply(compiler: import("..").Compiler): void;
@@ -1,4 +1,4 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from '../binding';
1
+ import { type BuiltinPlugin, BuiltinPluginName, type RawSplitChunksOptions } from '../binding';
2
2
  import type { Compiler } from '../Compiler';
3
3
  import type { OptimizationSplitChunksOptions } from '../config';
4
4
  import { RspackBuiltinPlugin } from './base';
@@ -9,3 +9,4 @@ export declare class SplitChunksPlugin extends RspackBuiltinPlugin {
9
9
  constructor(options: OptimizationSplitChunksOptions);
10
10
  raw(compiler: Compiler): BuiltinPlugin;
11
11
  }
12
+ export declare function toRawSplitChunksOptions(sc: false | OptimizationSplitChunksOptions, compiler: Compiler): RawSplitChunksOptions | undefined;
@@ -601,6 +601,8 @@ export type ResolveOptions = {
601
601
  byDependency?: Record<string, ResolveOptions>;
602
602
  /** enable Yarn PnP */
603
603
  pnp?: boolean;
604
+ /** Path to PnP manifest file */
605
+ pnpManifest?: string | false;
604
606
  };
605
607
  /** Used to configure the Rspack module resolution */
606
608
  export type Resolve = ResolveOptions;
@@ -2085,6 +2087,10 @@ export type Incremental = {
2085
2087
  * Enable incremental build chunk graph.
2086
2088
  */
2087
2089
  buildChunkGraph?: boolean;
2090
+ /**
2091
+ * Enable incremental optimize chunk modules.
2092
+ */
2093
+ optimizeChunkModules?: boolean;
2088
2094
  /**
2089
2095
  * Enable incremental module ids.
2090
2096
  */
package/dist/exports.d.ts CHANGED
@@ -46,7 +46,7 @@ export declare const util: {
46
46
  createHash: (algorithm: "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
47
47
  cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
48
48
  };
49
- export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions, } from './builtin-plugin';
49
+ export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginHandlerInfo, ProgressPluginOptions, ProvidePluginOptions, } from './builtin-plugin';
50
50
  export { BannerPlugin, CaseSensitivePlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, } from './builtin-plugin';
51
51
  export { DllPlugin, type DllPluginOptions } from './lib/DllPlugin';
52
52
  export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType, } from './lib/DllReferencePlugin';
package/dist/index.js CHANGED
@@ -14566,9 +14566,9 @@ __webpack_require__.add({
14566
14566
  }
14567
14567
  utils.intFromLE = intFromLE;
14568
14568
  },
14569
- "../../node_modules/.pnpm/enhanced-resolve@5.18.4/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
14569
+ "../../node_modules/.pnpm/enhanced-resolve@5.19.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
14570
14570
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
14571
- const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.18.4/node_modules/enhanced-resolve/lib/util/process-browser.js");
14571
+ const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.19.0/node_modules/enhanced-resolve/lib/util/process-browser.js");
14572
14572
  const dirname = (path)=>{
14573
14573
  let idx = path.length - 1;
14574
14574
  while(idx >= 0){
@@ -14862,7 +14862,7 @@ __webpack_require__.add({
14862
14862
  }
14863
14863
  };
14864
14864
  },
14865
- "../../node_modules/.pnpm/enhanced-resolve@5.18.4/node_modules/enhanced-resolve/lib/util/process-browser.js" (module) {
14865
+ "../../node_modules/.pnpm/enhanced-resolve@5.19.0/node_modules/enhanced-resolve/lib/util/process-browser.js" (module) {
14866
14866
  module.exports = {
14867
14867
  versions: {},
14868
14868
  nextTick (fn) {
@@ -33145,13 +33145,13 @@ __webpack_require__.add({
33145
33145
  }
33146
33146
  module.exports = Watchpack;
33147
33147
  },
33148
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/CachedSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33148
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/CachedSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33149
33149
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
33150
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
33151
- const streamAndGetSourceAndMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js");
33152
- const streamChunksOfRawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js");
33153
- const streamChunksOfSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js");
33154
- const { isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
33150
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
33151
+ const streamAndGetSourceAndMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js");
33152
+ const streamChunksOfRawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js");
33153
+ const streamChunksOfSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js");
33154
+ const { isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
33155
33155
  const mapToBufferedMap = (map)=>{
33156
33156
  if ("object" != typeof map || !map) return map;
33157
33157
  const bufferedMap = {
@@ -33333,8 +33333,8 @@ __webpack_require__.add({
33333
33333
  }
33334
33334
  module.exports = CachedSource;
33335
33335
  },
33336
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/CompatSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33337
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
33336
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/CompatSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33337
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
33338
33338
  class CompatSource extends Source {
33339
33339
  static from(sourceLike) {
33340
33340
  return sourceLike instanceof Source ? sourceLike : new CompatSource(sourceLike);
@@ -33370,12 +33370,12 @@ __webpack_require__.add({
33370
33370
  }
33371
33371
  module.exports = CompatSource;
33372
33372
  },
33373
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/ConcatSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33373
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/ConcatSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33374
33374
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
33375
- const RawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/RawSource.js");
33376
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
33377
- const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
33378
- const streamChunks = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunks.js");
33375
+ const RawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/RawSource.js");
33376
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
33377
+ const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
33378
+ const streamChunks = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunks.js");
33379
33379
  const stringsAsRawSources = new WeakSet();
33380
33380
  class ConcatSource extends Source {
33381
33381
  constructor(...args){
@@ -33546,14 +33546,14 @@ __webpack_require__.add({
33546
33546
  }
33547
33547
  module.exports = ConcatSource;
33548
33548
  },
33549
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/OriginalSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33549
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/OriginalSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33550
33550
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
33551
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
33552
- const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
33553
- const getGeneratedSourceInfo = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js");
33554
- const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
33555
- const splitIntoPotentialTokens = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/splitIntoPotentialTokens.js");
33556
- const { isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
33551
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
33552
+ const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
33553
+ const getGeneratedSourceInfo = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js");
33554
+ const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
33555
+ const splitIntoPotentialTokens = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/splitIntoPotentialTokens.js");
33556
+ const { isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
33557
33557
  class OriginalSource extends Source {
33558
33558
  constructor(value, name){
33559
33559
  super();
@@ -33647,18 +33647,18 @@ __webpack_require__.add({
33647
33647
  }
33648
33648
  module.exports = OriginalSource;
33649
33649
  },
33650
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/PrefixSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33650
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/PrefixSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33651
33651
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
33652
- const RawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/RawSource.js");
33653
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
33654
- const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
33655
- const streamChunks = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunks.js");
33652
+ const RawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/RawSource.js");
33653
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
33654
+ const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
33655
+ const streamChunks = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunks.js");
33656
33656
  const REPLACE_REGEX = /\n(?=.|\s)/g;
33657
33657
  class PrefixSource extends Source {
33658
33658
  constructor(prefix, source){
33659
33659
  super();
33660
- this._source = "string" == typeof source || Buffer.isBuffer(source) ? new RawSource(source, true) : source;
33661
33660
  this._prefix = prefix;
33661
+ this._source = "string" == typeof source || Buffer.isBuffer(source) ? new RawSource(source, true) : source;
33662
33662
  }
33663
33663
  getPrefix() {
33664
33664
  return this._prefix;
@@ -33706,11 +33706,11 @@ __webpack_require__.add({
33706
33706
  }
33707
33707
  module.exports = PrefixSource;
33708
33708
  },
33709
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/RawSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33709
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/RawSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33710
33710
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
33711
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
33712
- const streamChunksOfRawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js");
33713
- const { internString, isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
33711
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
33712
+ const streamChunksOfRawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js");
33713
+ const { internString, isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
33714
33714
  class RawSource extends Source {
33715
33715
  constructor(value, convertToString = false){
33716
33716
  super();
@@ -33760,12 +33760,12 @@ __webpack_require__.add({
33760
33760
  }
33761
33761
  module.exports = RawSource;
33762
33762
  },
33763
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/ReplaceSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33763
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/ReplaceSource.js" (module, __unused_rspack_exports, __webpack_require__) {
33764
33764
  var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
33765
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
33766
- const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
33767
- const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
33768
- const streamChunks = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunks.js");
33765
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
33766
+ const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
33767
+ const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
33768
+ const streamChunks = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunks.js");
33769
33769
  const hasStableSort = "object" == typeof process && process.versions && "string" == typeof process.versions.v8 && !/^[0-6]\./.test(process.versions.v8);
33770
33770
  const MAX_SOURCE_POSITION = 0x20000000;
33771
33771
  class Replacement {
@@ -34036,8 +34036,8 @@ __webpack_require__.add({
34036
34036
  module.exports = ReplaceSource;
34037
34037
  module.exports.Replacement = Replacement;
34038
34038
  },
34039
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/SizeOnlySource.js" (module, __unused_rspack_exports, __webpack_require__) {
34040
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
34039
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/SizeOnlySource.js" (module, __unused_rspack_exports, __webpack_require__) {
34040
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
34041
34041
  class SizeOnlySource extends Source {
34042
34042
  constructor(size){
34043
34043
  super();
@@ -34064,7 +34064,7 @@ __webpack_require__.add({
34064
34064
  }
34065
34065
  module.exports = SizeOnlySource;
34066
34066
  },
34067
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js" (module, __unused_rspack_exports, __webpack_require__) {
34067
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js" (module, __unused_rspack_exports, __webpack_require__) {
34068
34068
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
34069
34069
  class Source {
34070
34070
  source() {
@@ -34093,13 +34093,13 @@ __webpack_require__.add({
34093
34093
  }
34094
34094
  module.exports = Source;
34095
34095
  },
34096
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/SourceMapSource.js" (module, __unused_rspack_exports, __webpack_require__) {
34096
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/SourceMapSource.js" (module, __unused_rspack_exports, __webpack_require__) {
34097
34097
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
34098
- const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
34099
- const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
34100
- const streamChunksOfCombinedSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfCombinedSourceMap.js");
34101
- const streamChunksOfSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js");
34102
- const { isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
34098
+ const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
34099
+ const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
34100
+ const streamChunksOfCombinedSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfCombinedSourceMap.js");
34101
+ const streamChunksOfSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js");
34102
+ const { isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
34103
34103
  class SourceMapSource extends Source {
34104
34104
  constructor(value, name, sourceMap, originalSource, innerSourceMap, removeOriginalSource){
34105
34105
  super();
@@ -34120,7 +34120,7 @@ __webpack_require__.add({
34120
34120
  this._hasInnerSourceMap = Boolean(innerSourceMap);
34121
34121
  const innerSourceMapIsBuffer = Buffer.isBuffer(innerSourceMap);
34122
34122
  const innerSourceMapIsString = "string" == typeof innerSourceMap;
34123
- this._innerSourceMapAsObject = innerSourceMapIsBuffer || innerSourceMapIsString ? void 0 : innerSourceMap;
34123
+ this._innerSourceMapAsObject = innerSourceMapIsBuffer || innerSourceMapIsString ? void 0 : innerSourceMap || void 0;
34124
34124
  this._innerSourceMapAsString = innerSourceMapIsString ? innerSourceMap : void 0;
34125
34125
  this._innerSourceMapAsBuffer = innerSourceMapIsBuffer ? innerSourceMap : void 0;
34126
34126
  this._removeOriginalSource = removeOriginalSource;
@@ -34251,7 +34251,7 @@ __webpack_require__.add({
34251
34251
  }
34252
34252
  module.exports = SourceMapSource;
34253
34253
  },
34254
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/createMappingsSerializer.js" (module) {
34254
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/createMappingsSerializer.js" (module) {
34255
34255
  const ALPHABET = [
34256
34256
  ..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
34257
34257
  ];
@@ -34390,20 +34390,19 @@ __webpack_require__.add({
34390
34390
  };
34391
34391
  module.exports = createMappingsSerializer;
34392
34392
  },
34393
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js" (module, __unused_rspack_exports, __webpack_require__) {
34394
- const createMappingsSerializer = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/createMappingsSerializer.js");
34395
- module.exports.getSourceAndMap = (inputSource, options)=>{
34396
- let code = "";
34393
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js" (module, __unused_rspack_exports, __webpack_require__) {
34394
+ const createMappingsSerializer = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/createMappingsSerializer.js");
34395
+ module.exports.getMap = (source, options)=>{
34397
34396
  let mappings = "";
34398
34397
  const potentialSources = [];
34399
34398
  const potentialSourcesContent = [];
34400
34399
  const potentialNames = [];
34401
34400
  const addMapping = createMappingsSerializer(options);
34402
- const { source } = inputSource.streamChunks({
34401
+ source.streamChunks({
34403
34402
  ...options,
34403
+ source: false,
34404
34404
  finalSource: true
34405
34405
  }, (chunk, generatedLine, generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex)=>{
34406
- if (void 0 !== chunk) code += chunk;
34407
34406
  mappings += addMapping(generatedLine, generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex);
34408
34407
  }, (sourceIndex, source, sourceContent)=>{
34409
34408
  while(potentialSources.length < sourceIndex)potentialSources.push(null);
@@ -34416,29 +34415,27 @@ __webpack_require__.add({
34416
34415
  while(potentialNames.length < nameIndex)potentialNames.push(null);
34417
34416
  potentialNames[nameIndex] = name;
34418
34417
  });
34419
- return {
34420
- source: void 0 !== source ? source : code,
34421
- map: mappings.length > 0 ? {
34422
- version: 3,
34423
- file: "x",
34424
- mappings,
34425
- sources: potentialSources,
34426
- sourcesContent: potentialSourcesContent.length > 0 ? potentialSourcesContent : void 0,
34427
- names: potentialNames
34428
- } : null
34429
- };
34418
+ return mappings.length > 0 ? {
34419
+ version: 3,
34420
+ file: "x",
34421
+ mappings,
34422
+ sources: potentialSources,
34423
+ sourcesContent: potentialSourcesContent.length > 0 ? potentialSourcesContent : void 0,
34424
+ names: potentialNames
34425
+ } : null;
34430
34426
  };
34431
- module.exports.getMap = (source, options)=>{
34427
+ module.exports.getSourceAndMap = (inputSource, options)=>{
34428
+ let code = "";
34432
34429
  let mappings = "";
34433
34430
  const potentialSources = [];
34434
34431
  const potentialSourcesContent = [];
34435
34432
  const potentialNames = [];
34436
34433
  const addMapping = createMappingsSerializer(options);
34437
- source.streamChunks({
34434
+ const { source } = inputSource.streamChunks({
34438
34435
  ...options,
34439
- source: false,
34440
34436
  finalSource: true
34441
34437
  }, (chunk, generatedLine, generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex)=>{
34438
+ if (void 0 !== chunk) code += chunk;
34442
34439
  mappings += addMapping(generatedLine, generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex);
34443
34440
  }, (sourceIndex, source, sourceContent)=>{
34444
34441
  while(potentialSources.length < sourceIndex)potentialSources.push(null);
@@ -34451,17 +34448,20 @@ __webpack_require__.add({
34451
34448
  while(potentialNames.length < nameIndex)potentialNames.push(null);
34452
34449
  potentialNames[nameIndex] = name;
34453
34450
  });
34454
- return mappings.length > 0 ? {
34455
- version: 3,
34456
- file: "x",
34457
- mappings,
34458
- sources: potentialSources,
34459
- sourcesContent: potentialSourcesContent.length > 0 ? potentialSourcesContent : void 0,
34460
- names: potentialNames
34461
- } : null;
34451
+ return {
34452
+ source: void 0 !== source ? source : code,
34453
+ map: mappings.length > 0 ? {
34454
+ version: 3,
34455
+ file: "x",
34456
+ mappings,
34457
+ sources: potentialSources,
34458
+ sourcesContent: potentialSourcesContent.length > 0 ? potentialSourcesContent : void 0,
34459
+ names: potentialNames
34460
+ } : null
34461
+ };
34462
34462
  };
34463
34463
  },
34464
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js" (module) {
34464
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js" (module) {
34465
34465
  const CHAR_CODE_NEW_LINE = "\n".charCodeAt(0);
34466
34466
  const getGeneratedSourceInfo = (source)=>{
34467
34467
  if (void 0 === source) return {};
@@ -34481,7 +34481,7 @@ __webpack_require__.add({
34481
34481
  };
34482
34482
  module.exports = getGeneratedSourceInfo;
34483
34483
  },
34484
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getSource.js" (module) {
34484
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getSource.js" (module) {
34485
34485
  const getSource = (sourceMap, index)=>{
34486
34486
  if (index < 0) return null;
34487
34487
  const { sourceRoot, sources } = sourceMap;
@@ -34492,7 +34492,7 @@ __webpack_require__.add({
34492
34492
  };
34493
34493
  module.exports = getSource;
34494
34494
  },
34495
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/readMappings.js" (module) {
34495
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/readMappings.js" (module) {
34496
34496
  const ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
34497
34497
  const CONTINUATION_BIT = 0x20;
34498
34498
  const END_SEGMENT_BIT = 0x40;
@@ -34552,7 +34552,7 @@ __webpack_require__.add({
34552
34552
  };
34553
34553
  module.exports = readMappings;
34554
34554
  },
34555
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/splitIntoLines.js" (module) {
34555
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/splitIntoLines.js" (module) {
34556
34556
  const splitIntoLines = (str)=>{
34557
34557
  const results = [];
34558
34558
  const len = str.length;
@@ -34573,7 +34573,7 @@ __webpack_require__.add({
34573
34573
  };
34574
34574
  module.exports = splitIntoLines;
34575
34575
  },
34576
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/splitIntoPotentialTokens.js" (module) {
34576
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/splitIntoPotentialTokens.js" (module) {
34577
34577
  const splitIntoPotentialTokens = (str)=>{
34578
34578
  const len = str.length;
34579
34579
  if (0 === len) return null;
@@ -34599,9 +34599,9 @@ __webpack_require__.add({
34599
34599
  };
34600
34600
  module.exports = splitIntoPotentialTokens;
34601
34601
  },
34602
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js" (module, __unused_rspack_exports, __webpack_require__) {
34603
- const createMappingsSerializer = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/createMappingsSerializer.js");
34604
- const streamChunks = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunks.js");
34602
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js" (module, __unused_rspack_exports, __webpack_require__) {
34603
+ const createMappingsSerializer = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/createMappingsSerializer.js");
34604
+ const streamChunks = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunks.js");
34605
34605
  const streamAndGetSourceAndMap = (inputSource, options, onChunk, onSource, onName)=>{
34606
34606
  let code = "";
34607
34607
  let mappings = "";
@@ -34650,9 +34650,9 @@ __webpack_require__.add({
34650
34650
  };
34651
34651
  module.exports = streamAndGetSourceAndMap;
34652
34652
  },
34653
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunks.js" (module, __unused_rspack_exports, __webpack_require__) {
34654
- const streamChunksOfRawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js");
34655
- const streamChunksOfSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js");
34653
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunks.js" (module, __unused_rspack_exports, __webpack_require__) {
34654
+ const streamChunksOfRawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js");
34655
+ const streamChunksOfSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js");
34656
34656
  module.exports = (source, options, onChunk, onSource, onName)=>{
34657
34657
  if ("function" == typeof source.streamChunks) return source.streamChunks(options, onChunk, onSource, onName);
34658
34658
  const sourceAndMap = source.sourceAndMap(options);
@@ -34660,9 +34660,9 @@ __webpack_require__.add({
34660
34660
  return streamChunksOfRawSource(sourceAndMap.source, onChunk, onSource, onName, Boolean(options && options.finalSource));
34661
34661
  };
34662
34662
  },
34663
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfCombinedSourceMap.js" (module, __unused_rspack_exports, __webpack_require__) {
34664
- const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
34665
- const streamChunksOfSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js");
34663
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfCombinedSourceMap.js" (module, __unused_rspack_exports, __webpack_require__) {
34664
+ const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
34665
+ const streamChunksOfSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js");
34666
34666
  const streamChunksOfCombinedSourceMap = (source, sourceMap, innerSourceName, innerSource, innerSourceMap, removeInnerSource, onChunk, onSource, onName, finalSource, columns)=>{
34667
34667
  const sourceMapping = new Map();
34668
34668
  const nameMapping = new Map();
@@ -34849,9 +34849,9 @@ __webpack_require__.add({
34849
34849
  };
34850
34850
  module.exports = streamChunksOfCombinedSourceMap;
34851
34851
  },
34852
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js" (module, __unused_rspack_exports, __webpack_require__) {
34853
- const getGeneratedSourceInfo = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js");
34854
- const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
34852
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js" (module, __unused_rspack_exports, __webpack_require__) {
34853
+ const getGeneratedSourceInfo = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js");
34854
+ const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
34855
34855
  const streamChunksOfRawSource = (source, onChunk, _onSource, _onName)=>{
34856
34856
  let line = 1;
34857
34857
  const matches = splitIntoLines(source);
@@ -34870,11 +34870,11 @@ __webpack_require__.add({
34870
34870
  };
34871
34871
  module.exports = (source, onChunk, onSource, onName, finalSource)=>finalSource ? getGeneratedSourceInfo(source) : streamChunksOfRawSource(source, onChunk, onSource, onName);
34872
34872
  },
34873
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js" (module, __unused_rspack_exports, __webpack_require__) {
34874
- const getGeneratedSourceInfo = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js");
34875
- const getSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/getSource.js");
34876
- const readMappings = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/readMappings.js");
34877
- const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
34873
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js" (module, __unused_rspack_exports, __webpack_require__) {
34874
+ const getGeneratedSourceInfo = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js");
34875
+ const getSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getSource.js");
34876
+ const readMappings = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/readMappings.js");
34877
+ const splitIntoLines = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/splitIntoLines.js");
34878
34878
  const streamChunksOfSourceMapFull = (source, sourceMap, onChunk, onSource, onName)=>{
34879
34879
  const lines = splitIntoLines(source);
34880
34880
  if (0 === lines.length) return {
@@ -35023,7 +35023,7 @@ __webpack_require__.add({
35023
35023
  return finalSource ? streamChunksOfSourceMapLinesFinal(source, sourceMap, onChunk, onSource, onName) : streamChunksOfSourceMapLinesFull(source, sourceMap, onChunk, onSource, onName);
35024
35024
  };
35025
35025
  },
35026
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js" (module) {
35026
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js" (module) {
35027
35027
  let dualStringBufferCaching = true;
35028
35028
  function isDualStringBufferCachingEnabled() {
35029
35029
  return dualStringBufferCaching;
@@ -35060,13 +35060,13 @@ __webpack_require__.add({
35060
35060
  module.exports = {
35061
35061
  disableDualStringBufferCaching,
35062
35062
  enableDualStringBufferCaching,
35063
- internString,
35064
- isDualStringBufferCachingEnabled,
35065
35063
  enterStringInterningRange,
35066
- exitStringInterningRange
35064
+ exitStringInterningRange,
35065
+ internString,
35066
+ isDualStringBufferCachingEnabled
35067
35067
  };
35068
35068
  },
35069
- "../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
35069
+ "../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
35070
35070
  const memoize = (fn)=>{
35071
35071
  let cache = false;
35072
35072
  let result;
@@ -35101,38 +35101,38 @@ __webpack_require__.add({
35101
35101
  };
35102
35102
  module.exports = mergeExports({}, {
35103
35103
  get Source () {
35104
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/Source.js");
35104
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
35105
35105
  },
35106
35106
  get RawSource () {
35107
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/RawSource.js");
35107
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/RawSource.js");
35108
35108
  },
35109
35109
  get OriginalSource () {
35110
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/OriginalSource.js");
35110
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/OriginalSource.js");
35111
35111
  },
35112
35112
  get SourceMapSource () {
35113
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/SourceMapSource.js");
35113
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/SourceMapSource.js");
35114
35114
  },
35115
35115
  get CachedSource () {
35116
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/CachedSource.js");
35116
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/CachedSource.js");
35117
35117
  },
35118
35118
  get ConcatSource () {
35119
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/ConcatSource.js");
35119
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/ConcatSource.js");
35120
35120
  },
35121
35121
  get ReplaceSource () {
35122
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/ReplaceSource.js");
35122
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/ReplaceSource.js");
35123
35123
  },
35124
35124
  get PrefixSource () {
35125
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/PrefixSource.js");
35125
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/PrefixSource.js");
35126
35126
  },
35127
35127
  get SizeOnlySource () {
35128
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/SizeOnlySource.js");
35128
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/SizeOnlySource.js");
35129
35129
  },
35130
35130
  get CompatSource () {
35131
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/CompatSource.js");
35131
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/CompatSource.js");
35132
35132
  },
35133
35133
  util: {
35134
35134
  get stringBufferUtils () {
35135
- return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
35135
+ return __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
35136
35136
  }
35137
35137
  }
35138
35138
  });
@@ -50349,7 +50349,7 @@ const LogType = Object.freeze({
50349
50349
  cache: 'cache'
50350
50350
  });
50351
50351
  function getLogTypeBitFlag(type) {
50352
- return 1 << Object.values(LogType).findIndex((i)=>i === type);
50352
+ return 1 << Object.values(LogType).indexOf(type);
50353
50353
  }
50354
50354
  function getLogTypesBitFlag(types) {
50355
50355
  return types.reduce((acc, cur)=>acc | getLogTypeBitFlag(cur), 0);
@@ -51325,7 +51325,7 @@ function createFakeCompilationDependencies(getDeps, addDeps) {
51325
51325
  }
51326
51326
  };
51327
51327
  }
51328
- const lib = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
51328
+ const lib = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/index.js");
51329
51329
  var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
51330
51330
  class SourceAdapter {
51331
51331
  static fromBinding(source) {
@@ -51612,14 +51612,14 @@ function createDiagnosticArray(adm) {
51612
51612
  const proxy = new Proxy(array, {
51613
51613
  get (target, name) {
51614
51614
  if ('length' === name) return adm.length;
51615
- if ('string' == typeof name && !Number.isNaN(Number.parseInt(name))) return adm.get(Number.parseInt(name));
51615
+ if ('string' == typeof name && !Number.isNaN(Number.parseInt(name, 10))) return adm.get(Number.parseInt(name, 10));
51616
51616
  if (Object.prototype.hasOwnProperty.call(arrayExtensions, name)) return arrayExtensions[name];
51617
51617
  return target[name];
51618
51618
  },
51619
51619
  set (target, name, value) {
51620
51620
  if ('length' === name) throw new Error("The 'length' property is read-only and cannot be assigned a new value.");
51621
- if ('symbol' == typeof name || Number.isNaN(Number.parseInt(name))) target[name] = value;
51622
- else adm.set(Number.parseInt(name), value);
51621
+ if ('symbol' == typeof name || Number.isNaN(Number.parseInt(name, 10))) target[name] = value;
51622
+ else adm.set(Number.parseInt(name, 10), value);
51623
51623
  return true;
51624
51624
  }
51625
51625
  });
@@ -52740,10 +52740,95 @@ class EnableLibraryPlugin extends RspackBuiltinPlugin {
52740
52740
  const EnableWasmLoadingPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
52741
52741
  const EnsureChunkConditionsPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
52742
52742
  const RemoveDuplicateModulesPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
52743
+ class JsSplitChunkSizes {
52744
+ static __to_binding(sizes) {
52745
+ if ('number' == typeof sizes) return sizes;
52746
+ if (sizes && 'object' == typeof sizes) {
52747
+ const chunkSizes = {
52748
+ sizes: sizes
52749
+ };
52750
+ return chunkSizes;
52751
+ }
52752
+ return sizes;
52753
+ }
52754
+ }
52755
+ class SplitChunksPlugin extends RspackBuiltinPlugin {
52756
+ options;
52757
+ name = external_rspack_wasi_browser_js_.BuiltinPluginName.SplitChunksPlugin;
52758
+ affectedHooks = 'thisCompilation';
52759
+ constructor(options){
52760
+ super(), this.options = options;
52761
+ }
52762
+ raw(compiler) {
52763
+ const rawOptions = toRawSplitChunksOptions(this.options, compiler);
52764
+ if (void 0 === rawOptions) throw new Error('rawOptions should not be undefined');
52765
+ return createBuiltinPlugin(this.name, rawOptions);
52766
+ }
52767
+ }
52768
+ function toRawSplitChunksOptions(sc, compiler) {
52769
+ if (!sc) return;
52770
+ function getName(name) {
52771
+ if ('function' == typeof name) return (ctx)=>{
52772
+ if (void 0 === ctx.module) return name(void 0);
52773
+ return name(ctx.module, getChunks(ctx.chunks), ctx.cacheGroupKey);
52774
+ };
52775
+ return name;
52776
+ }
52777
+ function getTest(test) {
52778
+ if ('function' == typeof test) return (ctx)=>{
52779
+ const info = {
52780
+ moduleGraph: compiler._lastCompilation.moduleGraph,
52781
+ chunkGraph: compiler._lastCompilation.chunkGraph
52782
+ };
52783
+ return test(ctx.module, info);
52784
+ };
52785
+ return test;
52786
+ }
52787
+ function getChunks(chunks) {
52788
+ if ('function' == typeof chunks) return (chunk)=>chunks(chunk);
52789
+ return chunks;
52790
+ }
52791
+ const { name, chunks, defaultSizeTypes, cacheGroups = {}, fallbackCacheGroup, minSize, minSizeReduction, maxSize, maxAsyncSize, maxInitialSize, ...passThrough } = sc;
52792
+ return {
52793
+ name: getName(name),
52794
+ chunks: getChunks(chunks),
52795
+ defaultSizeTypes: defaultSizeTypes || [
52796
+ "javascript",
52797
+ 'unknown'
52798
+ ],
52799
+ cacheGroups: Object.entries(cacheGroups).filter(([_key, group])=>false !== group).map(([key, group])=>{
52800
+ const { test, name, chunks, minSize, minSizeReduction, maxSize, maxAsyncSize, maxInitialSize, ...passThrough } = group;
52801
+ const rawGroup = {
52802
+ key,
52803
+ test: getTest(test),
52804
+ name: getName(name),
52805
+ chunks: getChunks(chunks),
52806
+ minSize: JsSplitChunkSizes.__to_binding(minSize),
52807
+ minSizeReduction: JsSplitChunkSizes.__to_binding(minSizeReduction),
52808
+ maxSize: JsSplitChunkSizes.__to_binding(maxSize),
52809
+ maxAsyncSize: JsSplitChunkSizes.__to_binding(maxAsyncSize),
52810
+ maxInitialSize: JsSplitChunkSizes.__to_binding(maxInitialSize),
52811
+ ...passThrough
52812
+ };
52813
+ return rawGroup;
52814
+ }),
52815
+ fallbackCacheGroup: {
52816
+ chunks: getChunks(chunks),
52817
+ ...fallbackCacheGroup
52818
+ },
52819
+ minSize: JsSplitChunkSizes.__to_binding(minSize),
52820
+ minSizeReduction: JsSplitChunkSizes.__to_binding(minSizeReduction),
52821
+ maxSize: JsSplitChunkSizes.__to_binding(maxSize),
52822
+ maxAsyncSize: JsSplitChunkSizes.__to_binding(maxAsyncSize),
52823
+ maxInitialSize: JsSplitChunkSizes.__to_binding(maxInitialSize),
52824
+ ...passThrough
52825
+ };
52826
+ }
52743
52827
  function applyLimits(options) {
52744
52828
  options.optimization.concatenateModules = false;
52745
52829
  options.optimization.removeEmptyChunks = false;
52746
52830
  options.output.chunkFormat = false;
52831
+ options.output.module = true;
52747
52832
  if (options.output.chunkLoading && 'import' !== options.output.chunkLoading) options.output.chunkLoading = 'import';
52748
52833
  if (void 0 === options.output.chunkLoading) options.output.chunkLoading = 'import';
52749
52834
  let { splitChunks } = options.optimization;
@@ -52762,7 +52847,7 @@ class EsmLibraryPlugin {
52762
52847
  static PLUGIN_NAME = 'EsmLibraryPlugin';
52763
52848
  options;
52764
52849
  constructor(options){
52765
- this.options = options;
52850
+ this.options = options ?? {};
52766
52851
  }
52767
52852
  apply(compiler) {
52768
52853
  applyLimits(compiler.options);
@@ -52772,7 +52857,8 @@ class EsmLibraryPlugin {
52772
52857
  compiler.__internal__registerBuiltinPlugin({
52773
52858
  name: external_rspack_wasi_browser_js_.BuiltinPluginName.EsmLibraryPlugin,
52774
52859
  options: {
52775
- preserveModules: this.options?.preserveModules
52860
+ preserveModules: this.options.preserveModules,
52861
+ splitChunks: toRawSplitChunksOptions(this.options.splitChunks ?? false, compiler)
52776
52862
  }
52777
52863
  });
52778
52864
  }
@@ -55603,8 +55689,8 @@ const OccurrenceChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_.Bu
55603
55689
  }), 'compilation');
55604
55690
  const ProgressPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.ProgressPlugin, (progress = {})=>{
55605
55691
  if ('function' == typeof progress) return {
55606
- handler: (percentage, msg, items)=>{
55607
- progress(percentage, msg, ...items);
55692
+ handler: (percentage, msg, info)=>{
55693
+ progress(percentage, msg, info);
55608
55694
  }
55609
55695
  };
55610
55696
  return progress;
@@ -55872,90 +55958,6 @@ const SizeLimitsPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPlu
55872
55958
  };
55873
55959
  });
55874
55960
  const SourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.SourceMapDevToolPlugin, (options)=>options, 'compilation');
55875
- class JsSplitChunkSizes {
55876
- static __to_binding(sizes) {
55877
- if ('number' == typeof sizes) return sizes;
55878
- if (sizes && 'object' == typeof sizes) {
55879
- const chunkSizes = {
55880
- sizes: sizes
55881
- };
55882
- return chunkSizes;
55883
- }
55884
- return sizes;
55885
- }
55886
- }
55887
- class SplitChunksPlugin extends RspackBuiltinPlugin {
55888
- options;
55889
- name = external_rspack_wasi_browser_js_.BuiltinPluginName.SplitChunksPlugin;
55890
- affectedHooks = 'thisCompilation';
55891
- constructor(options){
55892
- super(), this.options = options;
55893
- }
55894
- raw(compiler) {
55895
- const rawOptions = toRawSplitChunksOptions(this.options, compiler);
55896
- if (void 0 === rawOptions) throw new Error('rawOptions should not be undefined');
55897
- return createBuiltinPlugin(this.name, rawOptions);
55898
- }
55899
- }
55900
- function toRawSplitChunksOptions(sc, compiler) {
55901
- if (!sc) return;
55902
- function getName(name) {
55903
- if ('function' == typeof name) return (ctx)=>{
55904
- if (void 0 === ctx.module) return name(void 0);
55905
- return name(ctx.module, getChunks(ctx.chunks), ctx.cacheGroupKey);
55906
- };
55907
- return name;
55908
- }
55909
- function getTest(test) {
55910
- if ('function' == typeof test) return (ctx)=>{
55911
- const info = {
55912
- moduleGraph: compiler._lastCompilation.moduleGraph,
55913
- chunkGraph: compiler._lastCompilation.chunkGraph
55914
- };
55915
- return test(ctx.module, info);
55916
- };
55917
- return test;
55918
- }
55919
- function getChunks(chunks) {
55920
- if ('function' == typeof chunks) return (chunk)=>chunks(chunk);
55921
- return chunks;
55922
- }
55923
- const { name, chunks, defaultSizeTypes, cacheGroups = {}, fallbackCacheGroup, minSize, minSizeReduction, maxSize, maxAsyncSize, maxInitialSize, ...passThrough } = sc;
55924
- return {
55925
- name: getName(name),
55926
- chunks: getChunks(chunks),
55927
- defaultSizeTypes: defaultSizeTypes || [
55928
- "javascript",
55929
- 'unknown'
55930
- ],
55931
- cacheGroups: Object.entries(cacheGroups).filter(([_key, group])=>false !== group).map(([key, group])=>{
55932
- const { test, name, chunks, minSize, minSizeReduction, maxSize, maxAsyncSize, maxInitialSize, ...passThrough } = group;
55933
- const rawGroup = {
55934
- key,
55935
- test: getTest(test),
55936
- name: getName(name),
55937
- chunks: getChunks(chunks),
55938
- minSize: JsSplitChunkSizes.__to_binding(minSize),
55939
- minSizeReduction: JsSplitChunkSizes.__to_binding(minSizeReduction),
55940
- maxSize: JsSplitChunkSizes.__to_binding(maxSize),
55941
- maxAsyncSize: JsSplitChunkSizes.__to_binding(maxAsyncSize),
55942
- maxInitialSize: JsSplitChunkSizes.__to_binding(maxInitialSize),
55943
- ...passThrough
55944
- };
55945
- return rawGroup;
55946
- }),
55947
- fallbackCacheGroup: {
55948
- chunks: getChunks(chunks),
55949
- ...fallbackCacheGroup
55950
- },
55951
- minSize: JsSplitChunkSizes.__to_binding(minSize),
55952
- minSizeReduction: JsSplitChunkSizes.__to_binding(minSizeReduction),
55953
- maxSize: JsSplitChunkSizes.__to_binding(maxSize),
55954
- maxAsyncSize: JsSplitChunkSizes.__to_binding(maxAsyncSize),
55955
- maxInitialSize: JsSplitChunkSizes.__to_binding(maxInitialSize),
55956
- ...passThrough
55957
- };
55958
- }
55959
55961
  var SubresourceIntegrityPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
55960
55962
  const SubresourceIntegrityPlugin_PLUGIN_NAME = 'SubresourceIntegrityPlugin';
55961
55963
  const NATIVE_HTML_PLUGIN = 'HtmlRspackPlugin';
@@ -56216,7 +56218,7 @@ const START_UPPERCASE_ALPHABET_CODE = 'A'.charCodeAt(0);
56216
56218
  const DELTA_A_TO_Z = 'z'.charCodeAt(0) - START_LOWERCASE_ALPHABET_CODE + 1;
56217
56219
  const NUMBER_OF_IDENTIFIER_START_CHARS = 2 * DELTA_A_TO_Z + 2;
56218
56220
  const NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS = NUMBER_OF_IDENTIFIER_START_CHARS + 10;
56219
- const FUNCTION_CONTENT_REGEX = /^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g;
56221
+ const FUNCTION_CONTENT_REGEX = /^function(?:\s+[\w$]+)?\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g;
56220
56222
  const INDENT_MULTILINE_REGEX = /^\t/gm;
56221
56223
  const LINE_SEPARATOR_REGEX = /\r?\n/g;
56222
56224
  const IDENTIFIER_NAME_REPLACE_REGEX = /^([^a-zA-Z$_])/;
@@ -57608,6 +57610,7 @@ const applyIncrementalDefaults = (options)=>{
57608
57610
  D(options.incremental, 'finishModules', true);
57609
57611
  D(options.incremental, 'optimizeDependencies', true);
57610
57612
  D(options.incremental, 'buildChunkGraph', true);
57613
+ D(options.incremental, 'optimizeChunkModules', true);
57611
57614
  D(options.incremental, 'moduleIds', true);
57612
57615
  D(options.incremental, 'chunkIds', true);
57613
57616
  D(options.incremental, 'modulesHashes', true);
@@ -58021,7 +58024,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
58021
58024
  });
58022
58025
  D(output, 'bundlerInfo', {});
58023
58026
  if ('object' == typeof output.bundlerInfo) {
58024
- D(output.bundlerInfo, 'version', "2.0.0-beta.2");
58027
+ D(output.bundlerInfo, 'version', "2.0.0-beta.4");
58025
58028
  D(output.bundlerInfo, 'bundler', 'rspack');
58026
58029
  D(output.bundlerInfo, 'force', !output.library);
58027
58030
  }
@@ -58576,6 +58579,7 @@ const getNormalizedIncrementalOptions = (incremental)=>{
58576
58579
  finishModules: false,
58577
58580
  optimizeDependencies: false,
58578
58581
  buildChunkGraph: true,
58582
+ optimizeChunkModules: false,
58579
58583
  moduleIds: false,
58580
58584
  chunkIds: false,
58581
58585
  modulesHashes: false,
@@ -59682,7 +59686,7 @@ class MultiStats {
59682
59686
  return obj;
59683
59687
  });
59684
59688
  if (childOptions.version) {
59685
- obj.rspackVersion = "2.0.0-beta.2";
59689
+ obj.rspackVersion = "2.0.0-beta.4";
59686
59690
  obj.version = "5.75.0";
59687
59691
  }
59688
59692
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
@@ -60542,7 +60546,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
60542
60546
  }
60543
60547
  };
60544
60548
  }
60545
- const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.18.4/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
60549
+ const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.19.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
60546
60550
  var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
60547
60551
  class NodeEnvironmentPlugin {
60548
60552
  options;
@@ -61368,7 +61372,7 @@ const SIMPLE_EXTRACTORS = {
61368
61372
  },
61369
61373
  version: (object)=>{
61370
61374
  object.version = "5.75.0";
61371
- object.rspackVersion = "2.0.0-beta.2";
61375
+ object.rspackVersion = "2.0.0-beta.4";
61372
61376
  },
61373
61377
  env: (object, _compilation, _context, { _env })=>{
61374
61378
  object.env = _env;
@@ -62951,18 +62955,21 @@ class RspackOptionsApply {
62951
62955
  if (options.optimization.concatenateModules) new ModuleConcatenationPlugin().apply(compiler);
62952
62956
  if (options.optimization.inlineExports) new InlineExportsPlugin().apply(compiler);
62953
62957
  if (options.optimization.mangleExports) new MangleExportsPlugin('size' !== options.optimization.mangleExports).apply(compiler);
62958
+ let enableLibSplitChunks = false;
62954
62959
  if (options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) {
62955
62960
  let modernModuleCount = 0;
62956
62961
  for (const type of options.output.enabledLibraryTypes)if ('modern-module' === type) modernModuleCount++;
62957
62962
  if (options.output.library?.preserveModules && 0 === modernModuleCount) throw new Error('preserveModules only works for `modern-module` library type');
62958
62963
  if (modernModuleCount > 0) {
62959
62964
  if (modernModuleCount !== options.output.enabledLibraryTypes.length) throw new Error('`modern-module` cannot used together with other library types');
62965
+ enableLibSplitChunks = true;
62960
62966
  new EsmLibraryPlugin({
62961
- preserveModules: options.output.library?.preserveModules
62967
+ preserveModules: options.output.library?.preserveModules,
62968
+ splitChunks: options.optimization.splitChunks
62962
62969
  }).apply(compiler);
62963
62970
  } else for (const type of options.output.enabledLibraryTypes)new EnableLibraryPlugin(type).apply(compiler);
62964
62971
  }
62965
- if (options.optimization.splitChunks) new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler);
62972
+ if (!enableLibSplitChunks && options.optimization.splitChunks) new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler);
62966
62973
  if (options.optimization.removeEmptyChunks) new RemoveEmptyChunksPlugin().apply(compiler);
62967
62974
  if (options.optimization.realContentHash) new RealContentHashPlugin().apply(compiler);
62968
62975
  const moduleIds = options.optimization.moduleIds;
@@ -66006,7 +66013,7 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
66006
66013
  `const __module_federation_library_type__ = ${JSON.stringify(libraryType)}`,
66007
66014
  'if((__webpack_require__.initializeSharingData||__webpack_require__.initializeExposesData)&&__webpack_require__.federation){var _ref,_ref1,_ref2,_ref3,_ref4;var __webpack_require___remotesLoadingData,__webpack_require___remotesLoadingData1,__webpack_require___initializeSharingData,__webpack_require___consumesLoadingData,__webpack_require___consumesLoadingData1,__webpack_require___initializeExposesData,__webpack_require___consumesLoadingData2;const override=(obj,key,value)=>{if(!obj)return;if(obj[key])obj[key]=value};const merge=(obj,key,fn)=>{const value=fn();if(Array.isArray(value)){var _obj,_key,_;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=[];obj[key].push(...value)}else if(typeof value==="object"&&value!==null){var _obj1,_key1,_1;(_1=(_obj1=obj)[_key1=key])!==null&&_1!==void 0?_1:_obj1[_key1]={};Object.assign(obj[key],value)}};const early=(obj,key,initial)=>{var _obj,_key,_;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=initial()};const remotesLoadingChunkMapping=(_ref=(__webpack_require___remotesLoadingData=__webpack_require__.remotesLoadingData)===null||__webpack_require___remotesLoadingData===void 0?void 0:__webpack_require___remotesLoadingData.chunkMapping)!==null&&_ref!==void 0?_ref:{};const remotesLoadingModuleIdToRemoteDataMapping=(_ref1=(__webpack_require___remotesLoadingData1=__webpack_require__.remotesLoadingData)===null||__webpack_require___remotesLoadingData1===void 0?void 0:__webpack_require___remotesLoadingData1.moduleIdToRemoteDataMapping)!==null&&_ref1!==void 0?_ref1:{};const initializeSharingScopeToInitDataMapping=(_ref2=(__webpack_require___initializeSharingData=__webpack_require__.initializeSharingData)===null||__webpack_require___initializeSharingData===void 0?void 0:__webpack_require___initializeSharingData.scopeToSharingDataMapping)!==null&&_ref2!==void 0?_ref2:{};const consumesLoadingChunkMapping=(_ref3=(__webpack_require___consumesLoadingData=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData===void 0?void 0:__webpack_require___consumesLoadingData.chunkMapping)!==null&&_ref3!==void 0?_ref3:{};const consumesLoadingModuleToConsumeDataMapping=(_ref4=(__webpack_require___consumesLoadingData1=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData1===void 0?void 0:__webpack_require___consumesLoadingData1.moduleIdToConsumeDataMapping)!==null&&_ref4!==void 0?_ref4:{};const consumesLoadinginstalledModules={};const initializeSharingInitPromises=[];const initializeSharingInitTokens={};const containerShareScope=(__webpack_require___initializeExposesData=__webpack_require__.initializeExposesData)===null||__webpack_require___initializeExposesData===void 0?void 0:__webpack_require___initializeExposesData.shareScope;for(const key in __module_federation_bundler_runtime__){__webpack_require__.federation[key]=__module_federation_bundler_runtime__[key]}early(__webpack_require__.federation,"libraryType",()=>__module_federation_library_type__);early(__webpack_require__.federation,"sharedFallback",()=>__module_federation_share_fallbacks__);const sharedFallback=__webpack_require__.federation.sharedFallback;early(__webpack_require__.federation,"consumesLoadingModuleToHandlerMapping",()=>{const consumesLoadingModuleToHandlerMapping={};for(let[moduleId,data]of Object.entries(consumesLoadingModuleToConsumeDataMapping)){var __webpack_require___federation_bundlerRuntime;consumesLoadingModuleToHandlerMapping[moduleId]={getter:sharedFallback?(__webpack_require___federation_bundlerRuntime=__webpack_require__.federation.bundlerRuntime)===null||__webpack_require___federation_bundlerRuntime===void 0?void 0:__webpack_require___federation_bundlerRuntime.getSharedFallbackGetter({shareKey:data.shareKey,factory:data.fallback,webpackRequire:__webpack_require__,libraryType:__webpack_require__.federation.libraryType}):data.fallback,treeShakingGetter:sharedFallback?data.fallback:undefined,shareInfo:{shareConfig:{fixedDependencies:false,requiredVersion:data.requiredVersion,strictVersion:data.strictVersion,singleton:data.singleton,eager:data.eager},scope:[data.shareScope]},shareKey:data.shareKey,treeShaking:__webpack_require__.federation.sharedFallback?{get:data.fallback,mode:data.treeShakingMode}:undefined}}return consumesLoadingModuleToHandlerMapping});early(__webpack_require__.federation,"initOptions",()=>({}));early(__webpack_require__.federation.initOptions,"name",()=>__module_federation_container_name__);early(__webpack_require__.federation.initOptions,"shareStrategy",()=>__module_federation_share_strategy__);early(__webpack_require__.federation.initOptions,"shared",()=>{const shared={};for(let[scope,stages]of Object.entries(initializeSharingScopeToInitDataMapping)){for(let stage of stages){if(typeof stage==="object"&&stage!==null){const{name,version,factory,eager,singleton,requiredVersion,strictVersion,treeShakingMode}=stage;const shareConfig={};const isValidValue=function(val){return typeof val!=="undefined"};if(isValidValue(singleton)){shareConfig.singleton=singleton}if(isValidValue(requiredVersion)){shareConfig.requiredVersion=requiredVersion}if(isValidValue(eager)){shareConfig.eager=eager}if(isValidValue(strictVersion)){shareConfig.strictVersion=strictVersion}const options={version,scope:[scope],shareConfig,get:factory,treeShaking:treeShakingMode?{mode:treeShakingMode}:undefined};if(shared[name]){shared[name].push(options)}else{shared[name]=[options]}}}}return shared});merge(__webpack_require__.federation.initOptions,"remotes",()=>Object.values(__module_federation_remote_infos__).flat().filter(remote=>remote.externalType==="script"));merge(__webpack_require__.federation.initOptions,"plugins",()=>__module_federation_runtime_plugins__);early(__webpack_require__.federation,"bundlerRuntimeOptions",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions,"remotes",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>remotesLoadingChunkMapping);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>__module_federation_remote_infos__);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{const remotesLoadingIdToExternalAndNameMappingMapping={};for(let[moduleId,data]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){remotesLoadingIdToExternalAndNameMappingMapping[moduleId]=[data.shareScope,data.name,data.externalModuleId,data.remoteName]}return remotesLoadingIdToExternalAndNameMappingMapping});early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>__webpack_require__);merge(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{const idToRemoteMap={};for(let[id,remoteData]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){const info=__module_federation_remote_infos__[remoteData.remoteName];if(info)idToRemoteMap[id]=info}return idToRemoteMap});override(__webpack_require__,"S",__webpack_require__.federation.bundlerRuntime.S);if(__webpack_require__.federation.attachShareScopeMap){__webpack_require__.federation.attachShareScopeMap(__webpack_require__)}override(__webpack_require__.f,"remotes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.remotes({chunkId,promises,chunkMapping:remotesLoadingChunkMapping,idToExternalAndNameMapping:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:__webpack_require__}));override(__webpack_require__.f,"consumes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.consumes({chunkId,promises,chunkMapping:consumesLoadingChunkMapping,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping,installedModules:consumesLoadinginstalledModules,webpackRequire:__webpack_require__}));override(__webpack_require__,"I",(name,initScope)=>__webpack_require__.federation.bundlerRuntime.I({shareScopeName:name,initScope,initPromises:initializeSharingInitPromises,initTokens:initializeSharingInitTokens,webpackRequire:__webpack_require__}));override(__webpack_require__,"initContainer",(shareScope,initScope,remoteEntryInitOptions)=>__webpack_require__.federation.bundlerRuntime.initContainerEntry({shareScope,initScope,remoteEntryInitOptions,shareScopeKey:containerShareScope,webpackRequire:__webpack_require__}));override(__webpack_require__,"getContainer",(module,getScope)=>{var moduleMap=__webpack_require__.initializeExposesData.moduleMap;__webpack_require__.R=getScope;getScope=Object.prototype.hasOwnProperty.call(moduleMap,module)?moduleMap[module]():Promise.resolve().then(()=>{throw new Error(\'Module "\'+module+\'" does not exist in container.\')});__webpack_require__.R=undefined;return getScope});__webpack_require__.federation.instance=__webpack_require__.federation.bundlerRuntime.init({webpackRequire:__webpack_require__});if((__webpack_require___consumesLoadingData2=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData2===void 0?void 0:__webpack_require___consumesLoadingData2.initialConsumes){__webpack_require__.federation.bundlerRuntime.installInitialConsumes({webpackRequire:__webpack_require__,installedModules:consumesLoadinginstalledModules,initialConsumes:__webpack_require__.consumesLoadingData.initialConsumes,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping})}}'
66008
66015
  ].join(';');
66009
- return `@module-federation/runtime/rspack.js!=!data:text/javascript,${content}`;
66016
+ return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
66010
66017
  }
66011
66018
  class ContainerPlugin extends RspackBuiltinPlugin {
66012
66019
  name = external_rspack_wasi_browser_js_.BuiltinPluginName.ContainerPlugin;
@@ -66159,7 +66166,7 @@ function transformSync(source, options) {
66159
66166
  const _options = JSON.stringify(options || {});
66160
66167
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66161
66168
  }
66162
- const exports_rspackVersion = "2.0.0-beta.2";
66169
+ const exports_rspackVersion = "2.0.0-beta.4";
66163
66170
  const exports_version = "5.75.0";
66164
66171
  const exports_WebpackError = Error;
66165
66172
  const exports_config = {
@@ -1739,6 +1739,12 @@ export interface NapiResolveOptions {
1739
1739
  * Default `false`
1740
1740
  */
1741
1741
  enablePnp?: boolean
1742
+ /**
1743
+ * Path to PnP manifest file
1744
+ *
1745
+ * Default `None`
1746
+ */
1747
+ pnpManifest?: string | false
1742
1748
  }
1743
1749
 
1744
1750
  export interface NativeWatcherOptions {
@@ -2180,6 +2186,7 @@ export interface RawEnvironment {
2180
2186
 
2181
2187
  export interface RawEsmLibraryPlugin {
2182
2188
  preserveModules?: string
2189
+ splitChunks?: RawSplitChunksOptions
2183
2190
  }
2184
2191
 
2185
2192
  export interface RawEvalDevToolModulePluginOptions {
@@ -2322,6 +2329,7 @@ export interface RawIncremental {
2322
2329
  finishModules: boolean
2323
2330
  optimizeDependencies: boolean
2324
2331
  buildChunkGraph: boolean
2332
+ optimizeChunkModules: boolean
2325
2333
  moduleIds: boolean
2326
2334
  chunkIds: boolean
2327
2335
  modulesHashes: boolean
@@ -2726,13 +2734,20 @@ export interface RawPathData {
2726
2734
  url?: string
2727
2735
  }
2728
2736
 
2737
+ export interface RawProgressPluginHandlerInfo {
2738
+ /** Number of built modules */
2739
+ builtModules: number
2740
+ /** Identifier of the active module (only provided during `build modules` updates) */
2741
+ moduleIdentifier?: string
2742
+ }
2743
+
2729
2744
  export interface RawProgressPluginOptions {
2730
2745
  prefix?: string
2731
2746
  profile?: boolean
2732
2747
  template?: string
2733
2748
  tick?: string | Array<string>
2734
2749
  progressChars?: string
2735
- handler?: (percent: number, msg: string, items: string[]) => void
2750
+ handler?: (percent: number, msg: string, info: RawProgressPluginHandlerInfo) => void
2736
2751
  }
2737
2752
 
2738
2753
  export interface RawProvideOptions {
@@ -2785,6 +2800,7 @@ export interface RawResolveOptions {
2785
2800
  restrictions?: (string | RegExp)[]
2786
2801
  roots?: Array<string>
2787
2802
  pnp?: boolean
2803
+ pnpManifest?: string | false
2788
2804
  }
2789
2805
 
2790
2806
  export interface RawResolveOptionsWithDependencyType {
@@ -2812,6 +2828,7 @@ export interface RawResolveOptionsWithDependencyType {
2812
2828
  dependencyType?: string
2813
2829
  resolveToContext?: boolean
2814
2830
  pnp?: boolean
2831
+ pnpManifest?: string | false
2815
2832
  }
2816
2833
 
2817
2834
  export interface RawResolveTsconfigOptions {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/browser",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.4",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
@@ -34,7 +34,7 @@
34
34
  "@swc/types": "0.1.25",
35
35
  "@types/watchpack": "^2.4.5",
36
36
  "memfs": "4.53.0",
37
- "webpack-sources": "3.3.3"
37
+ "webpack-sources": "3.3.4"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@swc/helpers": ">=0.5.1"