@rspack/test-tools 1.0.6 → 1.0.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.
@@ -64,8 +64,14 @@ const watchCreator = new creator_1.BasicCaseCreator({
64
64
  compilerType: type_1.ECompilerType.Rspack,
65
65
  configFiles: ["rspack.config.js", "webpack.config.js"],
66
66
  experiments: {
67
- rspackFuture: {
68
- newIncremental: true
67
+ incremental: {
68
+ make: true,
69
+ emitAssets: true,
70
+ inferAsyncModules: true,
71
+ providedExports: true,
72
+ moduleHashes: true,
73
+ moduleCodegen: true,
74
+ moduleRuntimeRequirements: true
69
75
  }
70
76
  }
71
77
  })
@@ -29,8 +29,15 @@ class HotNewIncrementalProcessor extends hot_1.HotProcessor {
29
29
  if (this._hotOptions.compilerType === type_1.ECompilerType.Rspack) {
30
30
  const rspackOptions = options;
31
31
  rspackOptions.experiments ??= {};
32
- rspackOptions.experiments.rspackFuture ??= {};
33
- rspackOptions.experiments.rspackFuture.newIncremental = true;
32
+ rspackOptions.experiments.incremental ??= {
33
+ make: true,
34
+ emitAssets: true,
35
+ inferAsyncModules: true,
36
+ providedExports: true,
37
+ moduleHashes: true,
38
+ moduleCodegen: true,
39
+ moduleRuntimeRequirements: true
40
+ };
34
41
  }
35
42
  else {
36
43
  throw new Error("HotNewIncrementalProcessor should only used for Rspack.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/test-tools",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "license": "MIT",
5
5
  "description": "Test tools for rspack",
6
6
  "main": "dist/index.js",
@@ -61,7 +61,7 @@
61
61
  "@rspack/plugin-preact-refresh": "1.0.0",
62
62
  "@rspack/plugin-react-refresh": "1.0.0",
63
63
  "@swc/helpers": "0.5.8",
64
- "@swc/plugin-remove-console": "^2.0.8",
64
+ "@swc/plugin-remove-console": "^3.0.0",
65
65
  "@types/babel__generator": "7.6.8",
66
66
  "@types/babel__traverse": "7.20.5",
67
67
  "@types/fs-extra": "11.0.4",
@@ -102,8 +102,8 @@
102
102
  "terser": "5.27.2",
103
103
  "typescript": "5.0.2",
104
104
  "wast-loader": "^1.12.1",
105
- "@rspack/core": "1.0.6",
106
- "@rspack/cli": "1.0.6"
105
+ "@rspack/cli": "1.0.8",
106
+ "@rspack/core": "1.0.8"
107
107
  },
108
108
  "peerDependencies": {
109
109
  "@rspack/core": ">=0.7.0"