@rspack/core 2.1.0 → 2.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7032,7 +7032,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
7032
7032
  return output.wasmLoading && enabledWasmLoadingTypes.add(output.wasmLoading), output.workerWasmLoading && enabledWasmLoadingTypes.add(output.workerWasmLoading), forEachEntry((desc)=>{
7033
7033
  desc.wasmLoading && enabledWasmLoadingTypes.add(desc.wasmLoading);
7034
7034
  }), Array.from(enabledWasmLoadingTypes);
7035
- }), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.1.0"), D(output.bundlerInfo, 'bundler', 'rspack'), D(output.bundlerInfo, 'force', !1));
7035
+ }), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.1.1"), D(output.bundlerInfo, 'bundler', 'rspack'), D(output.bundlerInfo, 'force', !1));
7036
7036
  }, applyExternalsPresetsDefaults = (externalsPresets, { targetProperties, buildHttp, outputModule })=>{
7037
7037
  let isUniversal = (key)=>!!(outputModule && targetProperties && null === targetProperties[key]);
7038
7038
  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')));
@@ -8330,7 +8330,7 @@ class MultiStats {
8330
8330
  obj.children = this.stats.map((stat, idx)=>{
8331
8331
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
8332
8332
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
8333
- }), childOptions.version && (obj.rspackVersion = "2.1.0", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
8333
+ }), childOptions.version && (obj.rspackVersion = "2.1.1", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
8334
8334
  let mapError = (j, obj)=>({
8335
8335
  ...obj,
8336
8336
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -9654,7 +9654,7 @@ let iterateConfig = (config, options, fn)=>{
9654
9654
  object.hash = context.getStatsCompilation(compilation).hash;
9655
9655
  },
9656
9656
  version: (object)=>{
9657
- object.version = "5.75.0", object.rspackVersion = "2.1.0";
9657
+ object.version = "5.75.0", object.rspackVersion = "2.1.1";
9658
9658
  },
9659
9659
  env: (object, _compilation, _context, { _env })=>{
9660
9660
  object.env = _env;
@@ -11315,7 +11315,7 @@ class TraceHookPlugin {
11315
11315
  });
11316
11316
  }
11317
11317
  }
11318
- let CORE_VERSION = "2.1.0", VFILES_BY_COMPILER = new WeakMap();
11318
+ let CORE_VERSION = "2.1.1", VFILES_BY_COMPILER = new WeakMap();
11319
11319
  class VirtualModulesPlugin {
11320
11320
  #staticModules;
11321
11321
  #compiler;
@@ -13736,7 +13736,7 @@ async function transform(source, options) {
13736
13736
  let _options = JSON.stringify(options || {});
13737
13737
  return binding_default().transform(source, _options);
13738
13738
  }
13739
- let exports_rspackVersion = "2.1.0", exports_version = "5.75.0", exports_WebpackError = Error, exports_config = {
13739
+ let exports_rspackVersion = "2.1.1", exports_version = "5.75.0", exports_WebpackError = Error, exports_config = {
13740
13740
  getNormalizedRspackOptions: getNormalizedRspackOptions,
13741
13741
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
13742
13742
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
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",
@@ -58,7 +58,7 @@
58
58
  "webpack-sources": "3.5.0"
59
59
  },
60
60
  "dependencies": {
61
- "@rspack/binding": "2.1.0"
61
+ "@rspack/binding": "2.1.1"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",