@rspack/test-tools 1.0.0-beta.5 → 1.0.0-rc.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.
- package/dist/processor/stats.js +6 -2
- package/package.json +4 -4
package/dist/processor/stats.js
CHANGED
|
@@ -35,9 +35,13 @@ class StatsProcessor extends multi_1.MultiTaskProcessor {
|
|
|
35
35
|
? instance.compilers
|
|
36
36
|
: [instance];
|
|
37
37
|
for (const compiler of compilers) {
|
|
38
|
+
if (!compiler.inputFileSystem) {
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
38
41
|
const ifs = compiler.inputFileSystem;
|
|
39
|
-
|
|
40
|
-
compiler.inputFileSystem
|
|
42
|
+
const inputFileSystem = Object.create(ifs);
|
|
43
|
+
compiler.inputFileSystem = inputFileSystem;
|
|
44
|
+
inputFileSystem.readFile = (...args) => {
|
|
41
45
|
const callback = args.pop();
|
|
42
46
|
ifs.readFile.apply(ifs, args.concat([
|
|
43
47
|
(err, result) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/test-tools",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"pretty-format": "29.7.0",
|
|
52
52
|
"rimraf": "3.0.2",
|
|
53
53
|
"strip-ansi": "6.0.1",
|
|
54
|
-
"webpack": "^5.
|
|
54
|
+
"webpack": "^5.94.0",
|
|
55
55
|
"webpack-merge": "5.9.0",
|
|
56
56
|
"webpack-sources": "3.2.3"
|
|
57
57
|
},
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"terser": "5.27.2",
|
|
101
101
|
"typescript": "5.0.2",
|
|
102
102
|
"wast-loader": "^1.12.1",
|
|
103
|
-
"@rspack/cli": "1.0.0-
|
|
104
|
-
"@rspack/core": "1.0.0-
|
|
103
|
+
"@rspack/cli": "1.0.0-rc.1",
|
|
104
|
+
"@rspack/core": "1.0.0-rc.1"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
107
|
"@rspack/core": ">=0.7.0"
|