@rspack/test-tools 1.0.6 → 1.0.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.
|
@@ -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
|
-
|
|
68
|
-
|
|
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.
|
|
33
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -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/
|
|
106
|
-
"@rspack/
|
|
105
|
+
"@rspack/cli": "1.0.7",
|
|
106
|
+
"@rspack/core": "1.0.7"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@rspack/core": ">=0.7.0"
|