@rspack/core 1.2.6 → 1.2.7

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.
package/dist/exports.d.ts CHANGED
@@ -18,6 +18,7 @@ export { RuntimeGlobals } from "./RuntimeGlobals";
18
18
  export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from "./Stats";
19
19
  export { Stats } from "./Stats";
20
20
  export { RuntimeModule } from "./RuntimeModule";
21
+ export { EntryDependency, Dependency } from "@rspack/binding";
21
22
  import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
22
23
  export { ModuleFilenameHelpers };
23
24
  export { Template } from "./Template";
package/dist/index.js CHANGED
@@ -696,9 +696,11 @@ __export(index_exports, {
696
696
  CopyRspackPlugin: () => CopyRspackPlugin,
697
697
  CssExtractRspackPlugin: () => CssExtractRspackPlugin,
698
698
  DefinePlugin: () => DefinePlugin,
699
+ Dependency: () => import_binding82.Dependency,
699
700
  DllPlugin: () => DllPlugin,
700
701
  DllReferencePlugin: () => DllReferencePlugin,
701
702
  DynamicEntryPlugin: () => DynamicEntryPlugin,
703
+ EntryDependency: () => import_binding82.EntryDependency,
702
704
  EntryOptionPlugin: () => EntryOptionPlugin_default,
703
705
  EntryPlugin: () => EntryPlugin,
704
706
  EnvironmentPlugin: () => EnvironmentPlugin,
@@ -762,9 +764,11 @@ __export(exports_exports, {
762
764
  CopyRspackPlugin: () => CopyRspackPlugin,
763
765
  CssExtractRspackPlugin: () => CssExtractRspackPlugin,
764
766
  DefinePlugin: () => DefinePlugin,
767
+ Dependency: () => import_binding82.Dependency,
765
768
  DllPlugin: () => DllPlugin,
766
769
  DllReferencePlugin: () => DllReferencePlugin,
767
770
  DynamicEntryPlugin: () => DynamicEntryPlugin,
771
+ EntryDependency: () => import_binding82.EntryDependency,
768
772
  EntryOptionPlugin: () => EntryOptionPlugin_default,
769
773
  EntryPlugin: () => EntryPlugin,
770
774
  EnvironmentPlugin: () => EnvironmentPlugin,
@@ -820,52 +824,6 @@ var import_package = require("../package.json");
820
824
  var import_binding = require("@rspack/binding");
821
825
  var liteTapable = __toESM(require("@rspack/lite-tapable"));
822
826
 
823
- // src/Dependency.ts
824
- var Dependency = class _Dependency {
825
- #inner;
826
- static __from_binding(binding9) {
827
- return new _Dependency(binding9);
828
- }
829
- static __to_binding(data) {
830
- return data.#inner;
831
- }
832
- constructor(binding9) {
833
- this.#inner = binding9;
834
- Object.defineProperties(this, {
835
- type: {
836
- enumerable: true,
837
- get() {
838
- return binding9.type;
839
- }
840
- },
841
- category: {
842
- enumerable: true,
843
- get() {
844
- return binding9.category;
845
- }
846
- },
847
- request: {
848
- enumerable: true,
849
- get() {
850
- return binding9.request;
851
- }
852
- },
853
- critical: {
854
- enumerable: true,
855
- get() {
856
- return binding9.critical;
857
- },
858
- set(val) {
859
- binding9.critical = val;
860
- }
861
- }
862
- });
863
- }
864
- get ids() {
865
- return this.#inner.ids;
866
- }
867
- };
868
-
869
827
  // src/DependenciesBlock.ts
870
828
  var DependenciesBlock = class _DependenciesBlock {
871
829
  #binding;
@@ -881,7 +839,7 @@ var DependenciesBlock = class _DependenciesBlock {
881
839
  dependencies: {
882
840
  enumerable: true,
883
841
  get() {
884
- return binding9.dependencies.map((d) => Dependency.__from_binding(d));
842
+ return binding9.dependencies;
885
843
  }
886
844
  },
887
845
  blocks: {
@@ -894,72 +852,6 @@ var DependenciesBlock = class _DependenciesBlock {
894
852
  }
895
853
  };
896
854
 
897
- // src/util/AssetInfo.ts
898
- var JsAssetInfo = class {
899
- static __from_binding(jsAssetInfo) {
900
- const {
901
- immutable,
902
- minimized,
903
- development,
904
- hotModuleReplacement,
905
- related,
906
- chunkhash,
907
- fullhash,
908
- contenthash,
909
- javascriptModule,
910
- sourceFilename,
911
- copied,
912
- extras
913
- } = jsAssetInfo;
914
- return {
915
- ...extras,
916
- // extras should not overwrite any KnownAssetFields
917
- immutable,
918
- minimized,
919
- development,
920
- hotModuleReplacement,
921
- related,
922
- fullhash,
923
- chunkhash,
924
- contenthash,
925
- javascriptModule,
926
- sourceFilename,
927
- copied
928
- };
929
- }
930
- static __to_binding(assetInfo = {}) {
931
- let {
932
- immutable = false,
933
- minimized = false,
934
- development = false,
935
- hotModuleReplacement = false,
936
- related = {},
937
- fullhash = [],
938
- chunkhash = [],
939
- contenthash = [],
940
- javascriptModule,
941
- sourceFilename,
942
- copied,
943
- ...extras
944
- } = assetInfo;
945
- extras = extras ?? {};
946
- return {
947
- immutable,
948
- minimized,
949
- development,
950
- hotModuleReplacement,
951
- related,
952
- fullhash,
953
- chunkhash,
954
- contenthash,
955
- extras,
956
- javascriptModule,
957
- sourceFilename,
958
- copied
959
- };
960
- }
961
- };
962
-
963
855
  // src/util/source.ts
964
856
  var import_webpack_sources = require("../compiled/webpack-sources/index.js");
965
857
  var JsSource = class extends import_webpack_sources.Source {
@@ -1113,9 +1005,7 @@ var ContextModuleFactoryAfterResolveData = class _ContextModuleFactoryAfterResol
1113
1005
  dependencies: {
1114
1006
  enumerable: true,
1115
1007
  get() {
1116
- return binding9.dependencies.map(
1117
- (dep) => Dependency.__from_binding(dep)
1118
- );
1008
+ return binding9.dependencies;
1119
1009
  }
1120
1010
  }
1121
1011
  });
@@ -1209,7 +1099,7 @@ var Module = class _Module {
1209
1099
  dependencies: {
1210
1100
  enumerable: true,
1211
1101
  get() {
1212
- return module2.dependencies.map((d) => Dependency.__from_binding(d));
1102
+ return module2.dependencies;
1213
1103
  }
1214
1104
  },
1215
1105
  useSourceMap: {
@@ -1260,7 +1150,7 @@ var Module = class _Module {
1260
1150
  return this.#inner.emitFile(
1261
1151
  filename2,
1262
1152
  JsSource.__to_binding(source),
1263
- JsAssetInfo.__to_binding(assetInfo)
1153
+ assetInfo
1264
1154
  );
1265
1155
  }
1266
1156
  };
@@ -1654,7 +1544,7 @@ var ModuleGraphConnection = class _ModuleGraphConnection {
1654
1544
  dependency: {
1655
1545
  enumerable: true,
1656
1546
  get() {
1657
- return Dependency.__from_binding(binding9.dependency);
1547
+ return binding9.dependency;
1658
1548
  }
1659
1549
  },
1660
1550
  resolvedModule: {
@@ -1683,19 +1573,15 @@ var ModuleGraph = class _ModuleGraph {
1683
1573
  this.#inner = binding9;
1684
1574
  }
1685
1575
  getModule(dependency) {
1686
- const binding9 = this.#inner.getModule(Dependency.__to_binding(dependency));
1576
+ const binding9 = this.#inner.getModule(dependency);
1687
1577
  return binding9 ? Module.__from_binding(binding9) : null;
1688
1578
  }
1689
1579
  getResolvedModule(dependency) {
1690
- const binding9 = this.#inner.getResolvedModule(
1691
- Dependency.__to_binding(dependency)
1692
- );
1580
+ const binding9 = this.#inner.getResolvedModule(dependency);
1693
1581
  return binding9 ? Module.__from_binding(binding9) : null;
1694
1582
  }
1695
1583
  getParentModule(dependency) {
1696
- const binding9 = this.#inner.getParentModule(
1697
- Dependency.__to_binding(dependency)
1698
- );
1584
+ const binding9 = this.#inner.getParentModule(dependency);
1699
1585
  return binding9 ? Module.__from_binding(binding9) : null;
1700
1586
  }
1701
1587
  getIssuer(module2) {
@@ -1708,9 +1594,7 @@ var ModuleGraph = class _ModuleGraph {
1708
1594
  );
1709
1595
  }
1710
1596
  getConnection(dependency) {
1711
- const binding9 = this.#inner.getConnection(
1712
- Dependency.__to_binding(dependency)
1713
- );
1597
+ const binding9 = this.#inner.getConnection(dependency);
1714
1598
  return binding9 ? ModuleGraphConnection.__from_binding(binding9) : null;
1715
1599
  }
1716
1600
  getOutgoingConnections(module2) {
@@ -1720,11 +1604,14 @@ var ModuleGraph = class _ModuleGraph {
1720
1604
  return this.#inner.getIncomingConnections(Module.__to_binding(module2)).map((binding9) => ModuleGraphConnection.__from_binding(binding9));
1721
1605
  }
1722
1606
  getParentBlockIndex(dependency) {
1723
- return this.#inner.getParentBlockIndex(Dependency.__to_binding(dependency));
1607
+ return this.#inner.getParentBlockIndex(dependency);
1724
1608
  }
1725
1609
  isAsync(module2) {
1726
1610
  return this.#inner.isAsync(Module.__to_binding(module2));
1727
1611
  }
1612
+ getOutgoingConnectionsInOrder(module2) {
1613
+ return this.#inner.getOutgoingConnectionsInOrder(Module.__to_binding(module2)).map((binding9) => ModuleGraphConnection.__from_binding(binding9));
1614
+ }
1728
1615
  };
1729
1616
 
1730
1617
  // src/util/index.ts
@@ -3231,7 +3118,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3231
3118
  __privateGet(this, _inner).updateAsset(
3232
3119
  filename2,
3233
3120
  compatNewSourceOrFunction,
3234
- assetInfoUpdateOrFunction === void 0 ? assetInfoUpdateOrFunction : typeof assetInfoUpdateOrFunction === "function" ? (jsAssetInfo) => JsAssetInfo.__to_binding(assetInfoUpdateOrFunction(jsAssetInfo)) : JsAssetInfo.__to_binding(assetInfoUpdateOrFunction)
3121
+ assetInfoUpdateOrFunction
3235
3122
  );
3236
3123
  }
3237
3124
  /**
@@ -3242,11 +3129,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3242
3129
  * @param assetInfo - extra asset information
3243
3130
  */
3244
3131
  emitAsset(filename2, source, assetInfo) {
3245
- __privateGet(this, _inner).emitAsset(
3246
- filename2,
3247
- JsSource.__to_binding(source),
3248
- JsAssetInfo.__to_binding(assetInfo)
3249
- );
3132
+ __privateGet(this, _inner).emitAsset(filename2, JsSource.__to_binding(source), assetInfo);
3250
3133
  }
3251
3134
  deleteAsset(filename2) {
3252
3135
  __privateGet(this, _inner).deleteAsset(filename2);
@@ -3262,7 +3145,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3262
3145
  return assets.map((asset) => {
3263
3146
  return Object.defineProperties(asset, {
3264
3147
  info: {
3265
- value: JsAssetInfo.__from_binding(asset.info)
3148
+ value: asset.info
3266
3149
  },
3267
3150
  source: {
3268
3151
  get: () => this.__internal__getAssetSource(asset.name)
@@ -3277,7 +3160,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
3277
3160
  }
3278
3161
  return Object.defineProperties(asset, {
3279
3162
  info: {
3280
- value: JsAssetInfo.__from_binding(asset.info)
3163
+ value: asset.info
3281
3164
  },
3282
3165
  source: {
3283
3166
  get: () => this.__internal__getAssetSource(asset.name)
@@ -3810,7 +3693,7 @@ var AddIncludeDispatcher = class {
3810
3693
  const cb = cbs[i];
3811
3694
  cb(
3812
3695
  errMsg ? new WebpackError_default(errMsg) : null,
3813
- Module.__from_binding(moduleBinding)
3696
+ moduleBinding ? Module.__from_binding(moduleBinding) : void 0
3814
3697
  );
3815
3698
  }
3816
3699
  });
@@ -3832,10 +3715,8 @@ var EntryData = class _EntryData {
3832
3715
  return new _EntryData(binding9);
3833
3716
  }
3834
3717
  constructor(binding9) {
3835
- this.dependencies = binding9.dependencies.map(Dependency.__from_binding);
3836
- this.includeDependencies = binding9.includeDependencies.map(
3837
- Dependency.__from_binding
3838
- );
3718
+ this.dependencies = binding9.dependencies;
3719
+ this.includeDependencies = binding9.includeDependencies;
3839
3720
  this.options = binding9.options;
3840
3721
  }
3841
3722
  };
@@ -7677,11 +7558,7 @@ var OriginEntryPlugin = create2(
7677
7558
  "make"
7678
7559
  );
7679
7560
  var EntryPlugin = OriginEntryPlugin;
7680
- EntryPlugin.createDependency = (request) => {
7681
- return {
7682
- request
7683
- };
7684
- };
7561
+ EntryPlugin.createDependency = (request) => new import_binding19.EntryDependency(request);
7685
7562
  function getRawEntryOptions(entry2) {
7686
7563
  const runtime = entry2.runtime;
7687
7564
  const chunkLoading2 = entry2.chunkLoading;
@@ -13489,6 +13366,7 @@ var Watching = class {
13489
13366
  );
13490
13367
  }
13491
13368
  #go(fileTimeInfoEntries, contextTimeInfoEntries, changedFiles, removedFiles) {
13369
+ this.#initial = false;
13492
13370
  if (this.startTime === void 0) this.startTime = Date.now();
13493
13371
  this.running = true;
13494
13372
  if (this.watcher) {
@@ -13509,15 +13387,14 @@ var Watching = class {
13509
13387
  this.compiler.fileTimestamps = fileTimeInfoEntries2;
13510
13388
  this.compiler.contextTimestamps = contextTimeInfoEntries2;
13511
13389
  }
13512
- const modifiedFiles = this.compiler.modifiedFiles = this.#collectedChangedFiles;
13513
- const deleteFiles = this.compiler.removedFiles = this.#collectedRemovedFiles;
13390
+ this.compiler.modifiedFiles = this.#collectedChangedFiles;
13391
+ this.compiler.removedFiles = this.#collectedRemovedFiles;
13514
13392
  this.#collectedChangedFiles = void 0;
13515
13393
  this.#collectedRemovedFiles = void 0;
13516
13394
  this.invalid = false;
13517
13395
  this.#invalidReported = false;
13518
13396
  this.compiler.hooks.watchRun.callAsync(this.compiler, (err) => {
13519
13397
  if (err) return this._done(err);
13520
- const canRebuild = !this.#initial && ((modifiedFiles == null ? void 0 : modifiedFiles.size) || (deleteFiles == null ? void 0 : deleteFiles.size));
13521
13398
  const onCompiled = (err2, _compilation) => {
13522
13399
  if (err2) return this._done(err2);
13523
13400
  const compilation = _compilation;
@@ -13539,9 +13416,6 @@ var Watching = class {
13539
13416
  this._done(null, this.compiler._lastCompilation);
13540
13417
  };
13541
13418
  this.compiler.compile(onCompiled);
13542
- if (!canRebuild) {
13543
- this.#initial = false;
13544
- }
13545
13419
  });
13546
13420
  }
13547
13421
  /**
@@ -14721,7 +14595,8 @@ var createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createMap
14721
14595
  return async function(resolveData) {
14722
14596
  const normalizedResolveData = {
14723
14597
  contextInfo: {
14724
- issuer: resolveData.issuer
14598
+ issuer: resolveData.issuer,
14599
+ issuerLayer: resolveData.issuerLayer ?? null
14725
14600
  },
14726
14601
  request: resolveData.request,
14727
14602
  context: resolveData.context,
@@ -14745,7 +14620,8 @@ var createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createMap
14745
14620
  return async function(resolveData) {
14746
14621
  const normalizedResolveData = {
14747
14622
  contextInfo: {
14748
- issuer: resolveData.issuer
14623
+ issuer: resolveData.issuer,
14624
+ issuerLayer: resolveData.issuerLayer ?? null
14749
14625
  },
14750
14626
  request: resolveData.request,
14751
14627
  context: resolveData.context,
@@ -14769,7 +14645,8 @@ var createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createMap
14769
14645
  return async function(resolveData) {
14770
14646
  const normalizedResolveData = {
14771
14647
  contextInfo: {
14772
- issuer: resolveData.issuer
14648
+ issuer: resolveData.issuer,
14649
+ issuerLayer: resolveData.issuerLayer ?? null
14773
14650
  },
14774
14651
  request: resolveData.request,
14775
14652
  context: resolveData.context,
@@ -14805,7 +14682,8 @@ var createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createMap
14805
14682
  return async function(arg) {
14806
14683
  const data = {
14807
14684
  contextInfo: {
14808
- issuer: arg.issuer
14685
+ issuer: arg.issuer,
14686
+ issuerLayer: arg.issuerLayer ?? null
14809
14687
  },
14810
14688
  request: arg.request,
14811
14689
  context: arg.context,
@@ -15059,11 +14937,14 @@ var Compiler = class _Compiler {
15059
14937
  }
15060
14938
  /**
15061
14939
  * @param callback - signals when the call finishes
14940
+ * @param options - additional data like modifiedFiles, removedFiles
15062
14941
  */
15063
- run(callback) {
14942
+ run(callback, options = {}) {
15064
14943
  if (this.running) {
15065
14944
  return callback(new ConcurrentCompilationError());
15066
14945
  }
14946
+ this.modifiedFiles = options.modifiedFiles;
14947
+ this.removedFiles = options.removedFiles;
15067
14948
  const startTime = Date.now();
15068
14949
  this.running = true;
15069
14950
  const finalCallback = (err, stats) => {
@@ -15241,6 +15122,11 @@ var Compiler = class _Compiler {
15241
15122
  const isRoot = this.root === this;
15242
15123
  return !isRoot;
15243
15124
  }
15125
+ /**
15126
+ * Create a compilation and run it, which is the basic method that `compiler.run` and `compiler.watch` depend on.
15127
+ * TODO: make this method private in the next major release
15128
+ * @private this method is only used in Rspack core
15129
+ */
15244
15130
  compile(callback) {
15245
15131
  const startTime = Date.now();
15246
15132
  const params = this.#newCompilationParams();
@@ -15280,28 +15166,18 @@ var Compiler = class _Compiler {
15280
15166
  #build(callback) {
15281
15167
  this.#getInstance((error, instance) => {
15282
15168
  if (error) {
15283
- return callback == null ? void 0 : callback(error);
15169
+ return callback(error);
15284
15170
  }
15285
15171
  if (!this.#initial) {
15286
15172
  instance.rebuild(
15287
15173
  Array.from(this.modifiedFiles || []),
15288
15174
  Array.from(this.removedFiles || []),
15289
- (error2) => {
15290
- if (error2) {
15291
- return callback == null ? void 0 : callback(error2);
15292
- }
15293
- callback == null ? void 0 : callback(null);
15294
- }
15175
+ callback
15295
15176
  );
15296
15177
  return;
15297
15178
  }
15298
15179
  this.#initial = false;
15299
- instance.build((error2) => {
15300
- if (error2) {
15301
- return callback == null ? void 0 : callback(error2);
15302
- }
15303
- callback == null ? void 0 : callback(null);
15304
- });
15180
+ instance.build(callback);
15305
15181
  });
15306
15182
  }
15307
15183
  /**
@@ -16161,7 +16037,11 @@ var MultiCompiler = class {
16161
16037
  }
16162
16038
  return new MultiWatching_default([], this);
16163
16039
  }
16164
- run(callback) {
16040
+ /**
16041
+ * @param callback - signals when the call finishes
16042
+ * @param options - additional data like modifiedFiles, removedFiles
16043
+ */
16044
+ run(callback, options) {
16165
16045
  if (this.running) {
16166
16046
  return callback(new ConcurrentCompilationError());
16167
16047
  }
@@ -16170,7 +16050,7 @@ var MultiCompiler = class {
16170
16050
  this.#runGraph(
16171
16051
  () => {
16172
16052
  },
16173
- (compiler, _, callback2) => compiler.run(callback2),
16053
+ (compiler, _, callback2) => compiler.run(callback2, options),
16174
16054
  (err, stats) => {
16175
16055
  this.running = false;
16176
16056
  if (callback !== void 0) {
@@ -19404,6 +19284,9 @@ var RspackOptionsApply = class {
19404
19284
  }
19405
19285
  };
19406
19286
 
19287
+ // src/exports.ts
19288
+ var import_binding82 = require("@rspack/binding");
19289
+
19407
19290
  // src/lib/ModuleFilenameHelpers.ts
19408
19291
  var ModuleFilenameHelpers_exports = {};
19409
19292
  __export(ModuleFilenameHelpers_exports, {
@@ -20879,7 +20762,7 @@ var ModuleFederationPluginV1 = class {
20879
20762
  };
20880
20763
 
20881
20764
  // src/exports.ts
20882
- var import_binding82 = require("@rspack/binding");
20765
+ var import_binding83 = require("@rspack/binding");
20883
20766
  var rspackVersion = import_package.version;
20884
20767
  var version = import_package.webpackVersion;
20885
20768
  var WebpackError2 = Error;
@@ -20926,7 +20809,7 @@ var sharing = {
20926
20809
  var experiments2 = {
20927
20810
  globalTrace: {
20928
20811
  async register(filter, layer2, output2) {
20929
- (0, import_binding82.registerGlobalTrace)(filter, layer2, output2);
20812
+ (0, import_binding83.registerGlobalTrace)(filter, layer2, output2);
20930
20813
  if (layer2 === "otel") {
20931
20814
  try {
20932
20815
  const { initOpenTelemetry } = await import("@rspack/tracing");
@@ -20940,7 +20823,7 @@ var experiments2 = {
20940
20823
  }
20941
20824
  },
20942
20825
  async cleanup() {
20943
- (0, import_binding82.cleanupGlobalTrace)();
20826
+ (0, import_binding83.cleanupGlobalTrace)();
20944
20827
  try {
20945
20828
  const { shutdownOpenTelemetry } = await import("@rspack/tracing");
20946
20829
  await shutdownOpenTelemetry();
@@ -21074,9 +20957,11 @@ module.exports = rspack;
21074
20957
  CopyRspackPlugin,
21075
20958
  CssExtractRspackPlugin,
21076
20959
  DefinePlugin,
20960
+ Dependency,
21077
20961
  DllPlugin,
21078
20962
  DllReferencePlugin,
21079
20963
  DynamicEntryPlugin,
20964
+ EntryDependency,
21080
20965
  EntryOptionPlugin,
21081
20966
  EntryPlugin,
21082
20967
  EnvironmentPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -48,7 +48,7 @@
48
48
  "graceful-fs": "^4.2.11",
49
49
  "json-parse-even-better-errors": "^3.0.2",
50
50
  "prebundle": "^1.2.7",
51
- "tsc-alias": "^1.8.10",
51
+ "tsc-alias": "^1.8.11",
52
52
  "tsup": "^8.3.6",
53
53
  "tsx": "^4.19.3",
54
54
  "typescript": "^5.7.3",
@@ -57,13 +57,13 @@
57
57
  "webpack-sources": "3.2.3",
58
58
  "zod": "^3.24.2",
59
59
  "zod-validation-error": "3.4.0",
60
- "@rspack/tracing": "1.2.6"
60
+ "@rspack/tracing": "1.2.7"
61
61
  },
62
62
  "dependencies": {
63
63
  "@module-federation/runtime-tools": "0.8.4",
64
64
  "@rspack/lite-tapable": "1.0.1",
65
65
  "caniuse-lite": "^1.0.30001700",
66
- "@rspack/binding": "1.2.6"
66
+ "@rspack/binding": "1.2.7"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@rspack/tracing": "^1.x",
@@ -1,12 +0,0 @@
1
- import type { JsDependency } from "@rspack/binding";
2
- export declare class Dependency {
3
- #private;
4
- readonly type: string;
5
- readonly category: string;
6
- readonly request: string | undefined;
7
- critical: boolean;
8
- static __from_binding(binding: JsDependency): Dependency;
9
- static __to_binding(data: Dependency): JsDependency;
10
- private constructor();
11
- get ids(): string[] | undefined;
12
- }
@@ -1,7 +0,0 @@
1
- import type { JsAssetInfo as JsAssetInfoBinding } from "@rspack/binding";
2
- export type AssetInfo = Partial<Omit<JsAssetInfoBinding, "extras">> & Record<string, any>;
3
- declare class JsAssetInfo {
4
- static __from_binding(jsAssetInfo: JsAssetInfoBinding): AssetInfo;
5
- static __to_binding(assetInfo?: AssetInfo): JsAssetInfoBinding;
6
- }
7
- export { JsAssetInfo };