@rspack-debug/core 2.0.0-beta.7 → 2.0.0-beta.8

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.
@@ -433,6 +433,8 @@ export declare class Entries implements Map<string, EntryData> {
433
433
  has(key: string): boolean;
434
434
  set(key: string, value: EntryData): this;
435
435
  delete(key: string): boolean;
436
+ getOrInsert(key: string, defaultValue: EntryData): EntryData;
437
+ getOrInsertComputed(key: string, callback: (key: string) => EntryData): EntryData;
436
438
  get(key: string): EntryData | undefined;
437
439
  keys(): ReturnType<Map<string, EntryData>['keys']>;
438
440
  }
@@ -0,0 +1,9 @@
1
+ export declare const EsmNodeTargetPlugin: {
2
+ new (): {
3
+ name: string;
4
+ _args: [];
5
+ affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
6
+ raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
7
+ apply(compiler: import("../index.js").Compiler): void;
8
+ };
9
+ };
@@ -28,6 +28,7 @@ export * from './EnableWasmLoadingPlugin.js';
28
28
  export * from './EnsureChunkConditionsPlugin.js';
29
29
  export * from './EntryPlugin.js';
30
30
  export * from './EsmLibraryPlugin.js';
31
+ export * from './EsmNodeTargetPlugin.js';
31
32
  export * from './EvalDevToolModulePlugin.js';
32
33
  export * from './EvalSourceMapDevToolPlugin.js';
33
34
  export * from './ExternalsPlugin.js';
@@ -600,8 +600,6 @@ export type ResolveOptions = {
600
600
  byDependency?: Record<string, ResolveOptions>;
601
601
  /** enable Yarn PnP */
602
602
  pnp?: boolean;
603
- /** Path to PnP manifest file */
604
- pnpManifest?: string | false;
605
603
  };
606
604
  /** Used to configure the Rspack module resolution */
607
605
  export type Resolve = ResolveOptions;
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import node_path, { isAbsolute, join, relative, resolve as external_node_path_re
8
8
  import node_querystring from "node:querystring";
9
9
  import node_fs, { readFileSync } from "node:fs";
10
10
  __webpack_require__.add({
11
- "../../node_modules/.pnpm/enhanced-resolve@5.20.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
11
+ "../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
12
12
  let { nextTick } = __webpack_require__("process"), dirname = (path)=>{
13
13
  let idx = path.length - 1;
14
14
  for(; idx >= 0;){
@@ -784,7 +784,7 @@ let cutOffLoaderExecution = (stack)=>((stack, flag)=>{
784
784
  for(let i = 0; i < stacks.length; i++)stacks[i].includes(flag) && (stacks.length = i);
785
785
  return stacks.join('\n');
786
786
  })(stack, 'LOADER_EXECUTION');
787
- class WebpackError extends Error {
787
+ class WebpackError_WebpackError extends Error {
788
788
  loc;
789
789
  file;
790
790
  chunk;
@@ -792,14 +792,14 @@ class WebpackError extends Error {
792
792
  details;
793
793
  hideStack;
794
794
  }
795
- Object.defineProperty(WebpackError.prototype, inspect.custom, {
795
+ Object.defineProperty(WebpackError_WebpackError.prototype, inspect.custom, {
796
796
  value: function() {
797
797
  return this.stack + (this.details ? `\n${this.details}` : '');
798
798
  },
799
799
  enumerable: !1,
800
800
  configurable: !0
801
801
  });
802
- let lib_WebpackError = WebpackError, LogType = Object.freeze({
802
+ let lib_WebpackError = WebpackError_WebpackError, LogType = Object.freeze({
803
803
  error: 'error',
804
804
  warn: 'warn',
805
805
  info: 'info',
@@ -2362,6 +2362,12 @@ class Entries {
2362
2362
  delete(key) {
2363
2363
  return this.#data.delete(key);
2364
2364
  }
2365
+ getOrInsert(key, defaultValue) {
2366
+ return this.has(key) || this.set(key, defaultValue), this.get(key);
2367
+ }
2368
+ getOrInsertComputed(key, callback) {
2369
+ return this.has(key) || this.set(key, callback(key)), this.get(key);
2370
+ }
2365
2371
  get(key) {
2366
2372
  let binding = this.#data.get(key);
2367
2373
  return binding ? EntryData.__from_binding(binding) : void 0;
@@ -2655,28 +2661,6 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2655
2661
  }
2656
2662
  }
2657
2663
  }
2658
- let EnableLibraryPlugin_enabledTypes = new WeakMap(), EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
2659
- let set = EnableLibraryPlugin_enabledTypes.get(compiler);
2660
- return void 0 === set && (set = new Set(), EnableLibraryPlugin_enabledTypes.set(compiler, set)), set;
2661
- };
2662
- class EnableLibraryPlugin extends RspackBuiltinPlugin {
2663
- type;
2664
- name = binding_namespaceObject.BuiltinPluginName.EnableLibraryPlugin;
2665
- constructor(type){
2666
- super(), this.type = type;
2667
- }
2668
- static setEnabled(compiler, type) {
2669
- EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
2670
- }
2671
- static checkEnabled(compiler, type) {
2672
- if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(', ')}`);
2673
- }
2674
- raw(compiler) {
2675
- let type = this.type, enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
2676
- if (!enabled.has(type)) return enabled.add(type), createBuiltinPlugin(this.name, type);
2677
- }
2678
- }
2679
- let EnableWasmLoadingPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}), RemoveDuplicateModulesPlugin = base_create(binding_namespaceObject.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
2680
2664
  class JsSplitChunkSizes {
2681
2665
  static __to_binding(sizes) {
2682
2666
  return 'number' == typeof sizes ? sizes : sizes && 'object' == typeof sizes ? {
@@ -2692,12 +2676,12 @@ class SplitChunksPlugin extends RspackBuiltinPlugin {
2692
2676
  super(), this.options = options;
2693
2677
  }
2694
2678
  raw(compiler) {
2695
- let rawOptions = toRawSplitChunksOptions(this.options, compiler);
2679
+ let rawOptions = SplitChunksPlugin_toRawSplitChunksOptions(this.options, compiler);
2696
2680
  if (void 0 === rawOptions) throw Error('rawOptions should not be undefined');
2697
2681
  return createBuiltinPlugin(this.name, rawOptions);
2698
2682
  }
2699
2683
  }
2700
- function toRawSplitChunksOptions(sc, compiler) {
2684
+ function SplitChunksPlugin_toRawSplitChunksOptions(sc, compiler) {
2701
2685
  if (!sc) return;
2702
2686
  function getName(name) {
2703
2687
  return 'function' == typeof name ? (ctx)=>void 0 === ctx.module ? name(void 0) : name(ctx.module, getChunks(ctx.chunks), ctx.cacheGroupKey) : name;
@@ -2746,30 +2730,33 @@ function toRawSplitChunksOptions(sc, compiler) {
2746
2730
  ...passThrough
2747
2731
  };
2748
2732
  }
2749
- function applyLimits(options) {
2750
- options.optimization.concatenateModules = !1, options.optimization.removeEmptyChunks = !1, options.output.chunkFormat = !1, options.output.module = !0, options.output.chunkLoading && 'import' !== options.output.chunkLoading && (options.output.chunkLoading = 'import'), void 0 === options.output.chunkLoading && (options.output.chunkLoading = 'import');
2751
- let { splitChunks } = options.optimization;
2752
- void 0 === splitChunks && (splitChunks = options.optimization.splitChunks = {}), !1 !== splitChunks && (splitChunks.chunks = 'all', splitChunks.minSize = 0, splitChunks.maxAsyncRequests = 1 / 0, splitChunks.maxInitialRequests = 1 / 0, splitChunks.cacheGroups ??= {}, splitChunks.cacheGroups.default = !1, splitChunks.cacheGroups.defaultVendors = !1);
2753
- }
2754
- class EsmLibraryPlugin {
2755
- static PLUGIN_NAME = 'EsmLibraryPlugin';
2756
- options;
2757
- constructor(options){
2758
- this.options = options ?? {};
2733
+ let EnableLibraryPlugin_enabledTypes = new WeakMap(), EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
2734
+ let set = EnableLibraryPlugin_enabledTypes.get(compiler);
2735
+ return void 0 === set && (set = new Set(), EnableLibraryPlugin_enabledTypes.set(compiler, set)), set;
2736
+ };
2737
+ class EnableLibraryPlugin extends RspackBuiltinPlugin {
2738
+ type;
2739
+ name = binding_namespaceObject.BuiltinPluginName.EnableLibraryPlugin;
2740
+ constructor(type){
2741
+ super(), this.type = type;
2759
2742
  }
2760
- apply(compiler) {
2761
- var config;
2762
- let err;
2763
- if (applyLimits(compiler.options), new RemoveDuplicateModulesPlugin().apply(compiler), err = (config = compiler.options).optimization.concatenateModules ? 'You should disable `config.optimization.concatenateModules`' : !1 !== config.output.chunkFormat ? 'You should disable default chunkFormat by `config.output.chunkFormat = false`' : void 0) throw new lib_WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
2764
- compiler.__internal__registerBuiltinPlugin({
2765
- name: binding_namespaceObject.BuiltinPluginName.EsmLibraryPlugin,
2766
- options: {
2767
- preserveModules: this.options.preserveModules,
2768
- splitChunks: toRawSplitChunksOptions(this.options.splitChunks ?? !1, compiler)
2769
- }
2743
+ static setEnabled(compiler, type) {
2744
+ EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
2745
+ }
2746
+ static checkEnabled(compiler, type) {
2747
+ if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(', ')}`);
2748
+ }
2749
+ raw(compiler) {
2750
+ let type = this.type, enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
2751
+ if (!enabled.has(type)) return enabled.add(type), createBuiltinPlugin(this.name, {
2752
+ libraryType: type,
2753
+ preserveModules: compiler.options.output.library?.preserveModules,
2754
+ splitChunks: SplitChunksPlugin_toRawSplitChunksOptions(compiler.options.optimization.splitChunks ?? !1, compiler)
2770
2755
  });
2771
2756
  }
2772
2757
  }
2758
+ let EnableWasmLoadingPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}), RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin = base_create(binding_namespaceObject.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
2759
+ base_create(binding_namespaceObject.BuiltinPluginName.EsmNodeTargetPlugin, ()=>void 0);
2773
2760
  let EvalDevToolModulePlugin = base_create(binding_namespaceObject.BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation'), EvalSourceMapDevToolPlugin = base_create(binding_namespaceObject.BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
2774
2761
  function isNil(value) {
2775
2762
  return null == value;
@@ -6690,7 +6677,11 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
6690
6677
  let enabledLibraryTypes = [];
6691
6678
  return output.library && enabledLibraryTypes.push(output.library.type), forEachEntry((desc)=>{
6692
6679
  desc.library && enabledLibraryTypes.push(desc.library.type);
6693
- }), enabledLibraryTypes.includes('modern-module') && applyLimits(options), enabledLibraryTypes;
6680
+ }), enabledLibraryTypes.includes('modern-module') && function(options) {
6681
+ options.optimization.concatenateModules = !1, options.optimization.removeEmptyChunks = !1, options.output.chunkFormat = !1, options.output.module = !0, options.output.chunkLoading && 'import' !== options.output.chunkLoading && (options.output.chunkLoading = 'import'), void 0 === options.output.chunkLoading && (options.output.chunkLoading = 'import');
6682
+ let { splitChunks } = options.optimization;
6683
+ void 0 === splitChunks && (splitChunks = options.optimization.splitChunks = {}), !1 !== splitChunks && (splitChunks.chunks = 'all', splitChunks.minSize = 0, splitChunks.maxAsyncRequests = 1 / 0, splitChunks.maxInitialRequests = 1 / 0, splitChunks.cacheGroups ??= {}, splitChunks.cacheGroups.default = !1, splitChunks.cacheGroups.defaultVendors = !1);
6684
+ }(options), enabledLibraryTypes;
6694
6685
  }), D(output, 'module', [
6695
6686
  'modern-module',
6696
6687
  'module'
@@ -6816,7 +6807,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
6816
6807
  return output.wasmLoading && enabledWasmLoadingTypes.add(output.wasmLoading), output.workerWasmLoading && enabledWasmLoadingTypes.add(output.workerWasmLoading), forEachEntry((desc)=>{
6817
6808
  desc.wasmLoading && enabledWasmLoadingTypes.add(desc.wasmLoading);
6818
6809
  }), Array.from(enabledWasmLoadingTypes);
6819
- }), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.0.0-beta.7"), D(output.bundlerInfo, 'bundler', 'rspack'), D(output.bundlerInfo, 'force', !output.library));
6810
+ }), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.0.0-beta.8"), D(output.bundlerInfo, 'bundler', 'rspack'), D(output.bundlerInfo, 'force', !output.library));
6820
6811
  }, applyExternalsPresetsDefaults = (externalsPresets, { targetProperties, buildHttp, outputModule })=>{
6821
6812
  let isUniversal = (key)=>!!(outputModule && targetProperties && null === targetProperties[key]);
6822
6813
  D(externalsPresets, 'web', !buildHttp && targetProperties && (targetProperties.web || isUniversal('node'))), D(externalsPresets, 'node', targetProperties && (targetProperties.node || isUniversal('node'))), D(externalsPresets, 'electron', targetProperties && targetProperties.electron || isUniversal('electron')), D(externalsPresets, 'electronMain', targetProperties && !!targetProperties.electron && (targetProperties.electronMain || isUniversal('electronMain'))), D(externalsPresets, 'electronPreload', targetProperties && !!targetProperties.electron && (targetProperties.electronPreload || isUniversal('electronPreload'))), D(externalsPresets, 'electronRenderer', targetProperties && !!targetProperties.electron && (targetProperties.electronRenderer || isUniversal('electronRenderer'))), D(externalsPresets, 'nwjs', targetProperties && (targetProperties.nwjs || isUniversal('nwjs')));
@@ -8070,7 +8061,7 @@ class MultiStats {
8070
8061
  obj.children = this.stats.map((stat, idx)=>{
8071
8062
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
8072
8063
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
8073
- }), childOptions.version && (obj.rspackVersion = "2.0.0-beta.7", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
8064
+ }), childOptions.version && (obj.rspackVersion = "2.0.0-beta.8", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
8074
8065
  let mapError = (j, obj)=>({
8075
8066
  ...obj,
8076
8067
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -8567,7 +8558,7 @@ let arraySum = (array)=>{
8567
8558
  let str = `${a}`, length = lengths[i];
8568
8559
  return str.length === length ? str : length > 5 ? `...${str.slice(-length + 3)}` : length > 0 ? str.slice(-length) : '';
8569
8560
  });
8570
- }, CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
8561
+ }, CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
8571
8562
  var CachedInputFileSystem_default = __webpack_require__.n(CachedInputFileSystem);
8572
8563
  class NodeEnvironmentPlugin {
8573
8564
  options;
@@ -9329,7 +9320,7 @@ let iterateConfig = (config, options, fn)=>{
9329
9320
  object.hash = context.getStatsCompilation(compilation).hash;
9330
9321
  },
9331
9322
  version: (object)=>{
9332
- object.version = "5.75.0", object.rspackVersion = "2.0.0-beta.7";
9323
+ object.version = "5.75.0", object.rspackVersion = "2.0.0-beta.8";
9333
9324
  },
9334
9325
  env: (object, _compilation, _context, { _env })=>{
9335
9326
  object.env = _env;
@@ -10594,16 +10585,8 @@ class RspackOptionsApply {
10594
10585
  new JavascriptModulesPlugin().apply(compiler), new URLPlugin().apply(compiler), new JsonModulesPlugin().apply(compiler), new AssetModulesPlugin().apply(compiler), options.experiments.asyncWebAssembly && new AsyncWebAssemblyModulesPlugin().apply(compiler), new CssModulesPlugin().apply(compiler), new lib_EntryOptionPlugin().apply(compiler), assertNotNill(options.context), compiler.hooks.entryOption.call(options.context, options.entry), new RuntimePlugin().apply(compiler), options.output.bundlerInfo && new BundlerInfoRspackPlugin(options.output.bundlerInfo).apply(compiler), new InferAsyncModulesPlugin().apply(compiler), new APIPlugin().apply(compiler), new DataUriPlugin().apply(compiler), new FileUriPlugin().apply(compiler), options.experiments.buildHttp && new HttpUriPlugin(options.experiments.buildHttp).apply(compiler), new EnsureChunkConditionsPlugin().apply(compiler), options.optimization.mergeDuplicateChunks && new MergeDuplicateChunksPlugin().apply(compiler), options.optimization.sideEffects && new SideEffectsFlagPlugin().apply(compiler), options.optimization.providedExports && new FlagDependencyExportsPlugin().apply(compiler), options.optimization.usedExports && new FlagDependencyUsagePlugin('global' === options.optimization.usedExports).apply(compiler), options.optimization.concatenateModules && new ModuleConcatenationPlugin().apply(compiler), options.optimization.inlineExports && new InlineExportsPlugin().apply(compiler), options.optimization.mangleExports && new MangleExportsPlugin('size' !== options.optimization.mangleExports).apply(compiler);
10595
10586
  let enableLibSplitChunks = !1;
10596
10587
  if (options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) {
10597
- let modernModuleCount = 0;
10598
- for (let type of options.output.enabledLibraryTypes)'modern-module' === type && modernModuleCount++;
10599
- if (options.output.library?.preserveModules && 0 === modernModuleCount) throw Error('preserveModules only works for `modern-module` library type');
10600
- if (modernModuleCount > 0) {
10601
- if (modernModuleCount !== options.output.enabledLibraryTypes.length) throw Error('`modern-module` cannot used together with other library types');
10602
- enableLibSplitChunks = !0, new EsmLibraryPlugin({
10603
- preserveModules: options.output.library?.preserveModules,
10604
- splitChunks: options.optimization.splitChunks
10605
- }).apply(compiler);
10606
- } else for (let type of options.output.enabledLibraryTypes)new EnableLibraryPlugin(type).apply(compiler);
10588
+ let hasModernModule = options.output.enabledLibraryTypes.includes('modern-module'), hasNonModernModule = options.output.enabledLibraryTypes.some((t)=>'modern-module' !== t);
10589
+ for (let type of (options.output.library?.preserveModules && !hasModernModule && compiler.getInfrastructureLogger('rspack.RspackOptionsApply').warn('`preserveModules` only works for `modern-module` library type and will be ignored for other library types.'), hasModernModule && hasNonModernModule && compiler.getInfrastructureLogger('rspack.RspackOptionsApply').warn('`modern-module` is used together with other library types. ESM format has impact on chunkLoading and chunkFormat, which may not be compatible with other library types.'), options.output.enabledLibraryTypes))'modern-module' === type && (enableLibSplitChunks = !0), new EnableLibraryPlugin(type).apply(compiler);
10607
10590
  }
10608
10591
  !enableLibSplitChunks && options.optimization.splitChunks && new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler), options.optimization.removeEmptyChunks && new RemoveEmptyChunksPlugin().apply(compiler), options.optimization.realContentHash && new RealContentHashPlugin().apply(compiler);
10609
10592
  let moduleIds = options.optimization.moduleIds;
@@ -10994,7 +10977,7 @@ class TraceHookPlugin {
10994
10977
  });
10995
10978
  }
10996
10979
  }
10997
- let CORE_VERSION = "2.0.0-beta.7", VFILES_BY_COMPILER = new WeakMap();
10980
+ let CORE_VERSION = "2.0.0-beta.8", VFILES_BY_COMPILER = new WeakMap();
10998
10981
  class VirtualModulesPlugin {
10999
10982
  #staticModules;
11000
10983
  #compiler;
@@ -11495,7 +11478,8 @@ class Compiler {
11495
11478
  }) : this.hooks.shutdown.callAsync((err)=>{
11496
11479
  if (err) return callback(err);
11497
11480
  this.cache.shutdown(()=>{
11498
- this.#instance?.close(), callback();
11481
+ let closePromise = this.#instance?.close();
11482
+ closePromise ? closePromise.then(()=>callback(), callback) : callback();
11499
11483
  });
11500
11484
  });
11501
11485
  }
@@ -13288,7 +13272,7 @@ async function transform(source, options) {
13288
13272
  let _options = JSON.stringify(options || {});
13289
13273
  return binding_default().transform(source, _options);
13290
13274
  }
13291
- let exports_rspackVersion = "2.0.0-beta.7", exports_version = "5.75.0", exports_WebpackError = Error, exports_config = {
13275
+ let exports_rspackVersion = "2.0.0-beta.8", exports_version = "5.75.0", exports_WebpackError = Error, exports_config = {
13292
13276
  getNormalizedRspackOptions: getNormalizedRspackOptions,
13293
13277
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
13294
13278
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
@@ -13462,7 +13446,7 @@ let exports_rspackVersion = "2.0.0-beta.7", exports_version = "5.75.0", exports_
13462
13446
  await JavaScriptTracer.cleanupJavaScriptTrace(), (0, binding_namespaceObject.syncTraceEvent)(JavaScriptTracer.events), (0, binding_namespaceObject.cleanupGlobalTrace)();
13463
13447
  }
13464
13448
  },
13465
- RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
13449
+ RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin,
13466
13450
  RsdoctorPlugin: RsdoctorPluginImpl,
13467
13451
  RstestPlugin: RstestPlugin,
13468
13452
  RslibPlugin: RslibPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-debug/core",
3
- "version": "2.0.0-beta.7",
3
+ "version": "2.0.0-beta.8",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "Fast Rust-based bundler for the web with a modernized webpack API",
@@ -37,8 +37,8 @@
37
37
  "directory": "packages/rspack"
38
38
  },
39
39
  "devDependencies": {
40
- "@ast-grep/napi": "^0.41.1",
41
- "@napi-rs/wasm-runtime": "1.0.7",
40
+ "@ast-grep/napi": "^0.42.0",
41
+ "@napi-rs/wasm-runtime": "1.1.1",
42
42
  "@rsbuild/plugin-node-polyfill": "^1.4.4",
43
43
  "@rslib/core": "0.20.0",
44
44
  "@rspack/lite-tapable": "1.1.0",
@@ -48,7 +48,7 @@
48
48
  "browserslist-load-config": "^1.0.1",
49
49
  "browserslist-to-es-version": "^1.4.1",
50
50
  "connect-next": "^4.0.0",
51
- "enhanced-resolve": "5.20.0",
51
+ "enhanced-resolve": "5.20.1",
52
52
  "http-proxy-middleware": "^3.0.5",
53
53
  "memfs": "4.53.0",
54
54
  "open": "^11.0.0",
@@ -59,7 +59,7 @@
59
59
  "webpack-sources": "3.3.4"
60
60
  },
61
61
  "dependencies": {
62
- "@rspack/binding": "npm:@rspack-debug/binding@2.0.0-beta.7"
62
+ "@rspack/binding": "npm:@rspack-debug/binding@2.0.0-beta.8"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",