Skip to content

Commit d2be521

Browse files
[autofix.ci] apply automated fixes
1 parent f1deeee commit d2be521

File tree

13 files changed

+4
-23
lines changed

13 files changed

+4
-23
lines changed

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm/_config.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"_comment": "Tests cycle prevention in manualCodeSplitting. shared.js depends on helpers.js which depends on state.js. Splitting shared.js into a vendor chunk would create a circular chunk dependency (vendor->entry for getConfig, entry->vendor for TIMEOUT). The cycle prevention detects this and keeps shared.js in the entry chunk, preserving const bindings. See https://github.com/rolldown/rolldown/issues/7449",
33
"config": {
44
"manualCodeSplitting": {
5-
"groups": [
6-
{ "name": "vendor", "test": "shared\\.js" }
7-
],
5+
"groups": [{ "name": "vendor", "test": "shared\\.js" }],
86
"includeDependenciesRecursively": false
97
}
108
}

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm_safety_net/_config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
"_comment": "Tests the const/let->var safety net for circular chunk deps. This fixture creates a direct entry<->vendor chunk cycle without triggering the manual split prevention heuristic (the cycle is caused by two different modules in the vendor chunk). The safety net should convert const/let to var in the affected chunks so runtime avoids TDZ ReferenceErrors.",
33
"config": {
44
"manualCodeSplitting": {
5-
"groups": [
6-
{ "name": "vendor", "test": "shared\\.js|vendor_dep\\.js" }
7-
],
5+
"groups": [{ "name": "vendor", "test": "shared\\.js|vendor_dep\\.js" }],
86
"includeDependenciesRecursively": false
97
}
108
}
119
}
12-

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm_safety_net/helpers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ export function getConfig(key, defaultValue) {
77
if (value !== undefined) return value;
88
return defaultValue;
99
}
10-

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm_safety_net/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ strictEqual(TIMEOUT, 300000);
1212

1313
// After state is initialized by the entry, dynamic reads see the config.
1414
strictEqual(getConfig('TIMEOUT', 999), 5000);
15-

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm_safety_net/shared.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ import { TIMEOUT_FROM_VENDOR } from './vendor_dep.js';
44
// creating an entry->vendor edge. Together with vendor_dep.js, this produces a
55
// direct chunk cycle that requires the safety net to avoid TDZ at runtime.
66
export const TIMEOUT = TIMEOUT_FROM_VENDOR;
7-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// In this fixture, state starts as a const binding. When circular chunk imports exist,
22
// Rolldown's safety net converts const/let to var in affected chunks to avoid TDZ crashes.
33
export const state = {};
4-

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm_safety_net/vendor_dep.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ import { getConfig } from './helpers.js';
33
// This module depends on entry-chunk helpers, creating a vendor->entry edge.
44
// It is NOT imported directly by the entry. Instead, shared.js imports it.
55
export const TIMEOUT_FROM_VENDOR = getConfig('TIMEOUT', 300000);
6-

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm_strict_execution_order/_config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
"config": {
44
"strictExecutionOrder": true,
55
"manualCodeSplitting": {
6-
"groups": [
7-
{ "name": "vendor", "test": "shared\\.js" }
8-
],
6+
"groups": [{ "name": "vendor", "test": "shared\\.js" }],
97
"includeDependenciesRecursively": false
108
}
119
}
1210
}
13-

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm_strict_execution_order/helpers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ export function getConfig(key, defaultValue) {
88
if (value !== undefined) return value;
99
return defaultValue;
1010
}
11-

crates/rolldown/tests/rolldown/function/advanced_chunks/cross_chunk_tdz_esm_strict_execution_order/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ strictEqual(MAX_RETRIES, 3);
1111

1212
// But dynamic calls to getConfig see the updated config
1313
strictEqual(getConfig('TIMEOUT', 999), 5000);
14-

0 commit comments

Comments
 (0)