@rspack/test-tools 1.5.0-beta.1 → 1.5.0-rc.0
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/helper/index.d.ts +0 -1
- package/dist/helper/index.js +0 -1
- package/package.json +4 -4
- package/dist/helper/legacy/supportsImportFn.d.ts +0 -1
- package/dist/helper/legacy/supportsImportFn.js +0 -15
- package/dist/helper/legacy/supportsWorker.d.ts +0 -2
- package/dist/helper/legacy/supportsWorker.js +0 -17
package/dist/helper/index.d.ts
CHANGED
package/dist/helper/index.js
CHANGED
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./directory"), exports);
|
|
18
18
|
__exportStar(require("./is"), exports);
|
|
19
|
-
__exportStar(require("./legacy/supportsImportFn"), exports);
|
|
20
19
|
__exportStar(require("./parse-modules"), exports);
|
|
21
20
|
__exportStar(require("./read-config-file"), exports);
|
|
22
21
|
__exportStar(require("./update-snapshot"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/test-tools",
|
|
3
|
-
"version": "1.5.0-
|
|
3
|
+
"version": "1.5.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
"wast-loader": "^1.14.1",
|
|
98
98
|
"worker-rspack-loader": "^3.1.2",
|
|
99
99
|
"exports-loader": "^5.0.0",
|
|
100
|
-
"@rspack/cli": "1.5.0-
|
|
101
|
-
"@rspack/core": "1.5.0-
|
|
100
|
+
"@rspack/cli": "1.5.0-rc.0",
|
|
101
|
+
"@rspack/core": "1.5.0-rc.0",
|
|
102
102
|
"@rspack/binding-testing": "1.4.1",
|
|
103
|
-
"@rspack/test-tools": "1.5.0-
|
|
103
|
+
"@rspack/test-tools": "1.5.0-rc.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"@rspack/core": ">=1.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function supportsImportFn(): boolean;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.supportsImportFn = supportsImportFn;
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
const nodeVersion = process.versions.node.split(".").map(Number);
|
|
6
|
-
function supportsImportFn() {
|
|
7
|
-
// Segmentation fault in vm with --experimental-vm-modules,
|
|
8
|
-
// which has not been resolved in node 16 yet.
|
|
9
|
-
// https://github.com/nodejs/node/issues/35889
|
|
10
|
-
if (nodeVersion[0] > 16) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
const nodeVersion = process.versions.node.split(".").map(Number);
|
|
4
|
-
module.exports = function supportsWorker() {
|
|
5
|
-
// Verify that in the current node version new Worker() accepts URL as the first parameter:
|
|
6
|
-
// https://nodejs.org/api/worker_threads.html#worker_threads_new_worker_filename_options
|
|
7
|
-
if (nodeVersion[0] >= 14) {
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
if (nodeVersion[0] === 13 && nodeVersion[1] >= 12) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
if (nodeVersion[0] === 12 && nodeVersion[1] >= 17) {
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
return false;
|
|
17
|
-
};
|