@rspack/test-tools 1.4.8 → 1.4.9
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.
|
@@ -47,8 +47,8 @@ const creator = new creator_1.BasicCaseCreator({
|
|
|
47
47
|
configFiles: ["rspack.config.js", "webpack.config.js"]
|
|
48
48
|
}, watchState));
|
|
49
49
|
},
|
|
50
|
-
// TODO:
|
|
51
|
-
concurrent:
|
|
50
|
+
// TODO: support more concurrency
|
|
51
|
+
concurrent: 4
|
|
52
52
|
});
|
|
53
53
|
function createNativeWatcher(name, src, dist, temp) {
|
|
54
54
|
creator.create(name, src, dist, temp);
|
package/dist/processor/watch.js
CHANGED
|
@@ -233,7 +233,11 @@ class WatchStepProcessor extends WatchProcessor {
|
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
235
|
// wait compiler to ready watch the files and diretories
|
|
236
|
-
|
|
236
|
+
// TODO: native watcher will call ignored js function in rust
|
|
237
|
+
// but it will block the watch step processor. Then, native watcher maybe spend more time.
|
|
238
|
+
// So we need to wait a while to ensure the files and directories are ready.
|
|
239
|
+
const timeout = this._watchOptions.nativeWatcher ? 500 : 100;
|
|
240
|
+
await new Promise(resolve => setTimeout(resolve, timeout));
|
|
237
241
|
(0, copyDiff_1.default)(node_path_1.default.join(context.getSource(), this._watchOptions.stepName), this._watchOptions.tempDir, false);
|
|
238
242
|
await task;
|
|
239
243
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/test-tools",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@babel/generator": "7.28.0",
|
|
36
36
|
"@babel/parser": "7.28.0",
|
|
37
37
|
"@babel/traverse": "7.28.0",
|
|
38
|
-
"@babel/types": "7.28.
|
|
38
|
+
"@babel/types": "7.28.1",
|
|
39
39
|
"cross-env": "^7.0.3",
|
|
40
40
|
"csv-to-markdown-table": "^1.5.0",
|
|
41
41
|
"deepmerge": "^4.3.1",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"babel-loader": "^10.0.0",
|
|
75
75
|
"babel-plugin-import": "^1.13.8",
|
|
76
76
|
"chalk": "^4.1.2",
|
|
77
|
-
"core-js": "3.
|
|
77
|
+
"core-js": "3.44.0",
|
|
78
78
|
"css-loader": "^7.1.2",
|
|
79
79
|
"file-loader": "^6.2.0",
|
|
80
80
|
"graceful-fs": "^4.2.11",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"typescript": "^5.8.3",
|
|
97
97
|
"wast-loader": "^1.14.1",
|
|
98
98
|
"worker-rspack-loader": "^3.1.2",
|
|
99
|
-
"@rspack/cli": "1.4.
|
|
100
|
-
"@rspack/core": "1.4.
|
|
101
|
-
"@rspack/
|
|
102
|
-
"@rspack/
|
|
99
|
+
"@rspack/cli": "1.4.9",
|
|
100
|
+
"@rspack/core": "1.4.9",
|
|
101
|
+
"@rspack/test-tools": "1.4.9",
|
|
102
|
+
"@rspack/binding-testing": "1.4.1"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"@rspack/core": ">=1.0.0"
|