@rspack-canary/test-tools 1.6.0-canary-505c7433-20251028174050 → 1.6.0-canary-7953269b-20251029094959
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/case/esm-output.js
CHANGED
|
@@ -91,8 +91,6 @@ const defaultOptions = (_index, context) => ({
|
|
|
91
91
|
output: {
|
|
92
92
|
path: context.getDist(),
|
|
93
93
|
filename: "[name].mjs",
|
|
94
|
-
chunkLoading: "import",
|
|
95
|
-
chunkFormat: false,
|
|
96
94
|
pathinfo: true,
|
|
97
95
|
module: true
|
|
98
96
|
},
|
|
@@ -101,10 +99,7 @@ const defaultOptions = (_index, context) => ({
|
|
|
101
99
|
minimize: false,
|
|
102
100
|
moduleIds: "named",
|
|
103
101
|
chunkIds: "named",
|
|
104
|
-
runtimeChunk: "single"
|
|
105
|
-
removeEmptyChunks: false,
|
|
106
|
-
concatenateModules: false,
|
|
107
|
-
splitChunks: false
|
|
102
|
+
runtimeChunk: "single"
|
|
108
103
|
},
|
|
109
104
|
plugins: [new core_1.default.experiments.EsmLibraryPlugin()],
|
|
110
105
|
experiments: {
|
package/dist/case/normal.js
CHANGED
|
@@ -92,7 +92,7 @@ function defaultOptions(context, compilerOptions, mode) {
|
|
|
92
92
|
context: NORMAL_CASES_ROOT,
|
|
93
93
|
entry: `./${node_path_1.default.relative(NORMAL_CASES_ROOT, context.getSource())}/`,
|
|
94
94
|
target: compilerOptions?.target || "async-node",
|
|
95
|
-
devtool: compilerOptions?.devtool,
|
|
95
|
+
devtool: mode === "development" ? false : compilerOptions?.devtool,
|
|
96
96
|
mode: compilerOptions?.mode || mode || "none",
|
|
97
97
|
optimization: compilerOptions?.mode
|
|
98
98
|
? {
|
|
@@ -373,14 +373,8 @@ class NodeRunner {
|
|
|
373
373
|
this.preExecute(code, file);
|
|
374
374
|
this.log(`run mode: ${this._options.runInNewContext ? "new context" : "this context"}`);
|
|
375
375
|
const fn = this._options.runInNewContext
|
|
376
|
-
? node_vm_1.default.runInNewContext(code, this.globalContext
|
|
377
|
-
|
|
378
|
-
lineOffset: 1
|
|
379
|
-
})
|
|
380
|
-
: node_vm_1.default.runInThisContext(code, {
|
|
381
|
-
filename: file.path,
|
|
382
|
-
lineOffset: 1
|
|
383
|
-
});
|
|
376
|
+
? node_vm_1.default.runInNewContext(code, this.globalContext)
|
|
377
|
+
: node_vm_1.default.runInThisContext(code);
|
|
384
378
|
fn.call(this._options.testConfig.nonEsmThis
|
|
385
379
|
? this._options.testConfig.nonEsmThis(modulePath)
|
|
386
380
|
: m.exports, ...argValues);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/test-tools",
|
|
3
|
-
"version": "1.6.0-canary-
|
|
3
|
+
"version": "1.6.0-canary-7953269b-20251029094959",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"directory": "packages/rspack-test-tools"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@babel/generator": "7.28.
|
|
40
|
-
"@babel/parser": "7.28.
|
|
41
|
-
"@babel/traverse": "7.28.
|
|
42
|
-
"@babel/types": "7.28.
|
|
39
|
+
"@babel/generator": "7.28.5",
|
|
40
|
+
"@babel/parser": "7.28.5",
|
|
41
|
+
"@babel/traverse": "7.28.5",
|
|
42
|
+
"@babel/types": "7.28.5",
|
|
43
43
|
"@jest/reporters": "29.7.0",
|
|
44
44
|
"cross-env": "^10.1.0",
|
|
45
45
|
"filenamify": "4.3.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@types/jsdom": "^21.1.7",
|
|
69
69
|
"typescript": "^5.9.3",
|
|
70
70
|
"wast-loader": "^1.14.1",
|
|
71
|
-
"@rspack/core": "npm:@rspack-canary/core@1.6.0-canary-
|
|
71
|
+
"@rspack/core": "npm:@rspack-canary/core@1.6.0-canary-7953269b-20251029094959"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@rspack/core": ">=1.0.0"
|