rollup 4.52.0 → 4.52.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/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.52.0
5
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
4
+ Rollup.js v4.52.1
5
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
27
27
  return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
28
28
  }
29
29
 
30
- var version = "4.52.0";
30
+ var version = "4.52.1";
31
31
 
32
32
  // src/vlq.ts
33
33
  var comma = ",".charCodeAt(0);
@@ -12093,10 +12093,10 @@ class CallExpressionBase extends NodeBase {
12093
12093
 
12094
12094
  class CallExpression extends CallExpressionBase {
12095
12095
  get hasCheckedForWarnings() {
12096
- return isFlagSet(this.flags, 268435456 /* Flag.checkedForWarnings */);
12096
+ return isFlagSet(this.flags, 134217728 /* Flag.checkedForWarnings */);
12097
12097
  }
12098
12098
  set hasCheckedForWarnings(value) {
12099
- this.flags = setFlag(this.flags, 268435456 /* Flag.checkedForWarnings */, value);
12099
+ this.flags = setFlag(this.flags, 134217728 /* Flag.checkedForWarnings */, value);
12100
12100
  }
12101
12101
  get optional() {
12102
12102
  return isFlagSet(this.flags, 128 /* Flag.optional */);
@@ -13126,16 +13126,10 @@ class ImportExpression extends NodeBase {
13126
13126
  this.resolutionString = null;
13127
13127
  }
13128
13128
  get shouldIncludeDynamicAttributes() {
13129
- return isFlagSet(this.flags, 536870912 /* Flag.shouldIncludeDynamicAttributes */);
13129
+ return isFlagSet(this.flags, 268435456 /* Flag.shouldIncludeDynamicAttributes */);
13130
13130
  }
13131
13131
  set shouldIncludeDynamicAttributes(value) {
13132
- this.flags = setFlag(this.flags, 536870912 /* Flag.shouldIncludeDynamicAttributes */, value);
13133
- }
13134
- get withinTopLevelAwait() {
13135
- return isFlagSet(this.flags, 134217728 /* Flag.withinTopLevelAwait */);
13136
- }
13137
- set withinTopLevelAwait(value) {
13138
- this.flags = setFlag(this.flags, 134217728 /* Flag.withinTopLevelAwait */, value);
13132
+ this.flags = setFlag(this.flags, 268435456 /* Flag.shouldIncludeDynamicAttributes */, value);
13139
13133
  }
13140
13134
  bind() {
13141
13135
  this.source.bind();
@@ -13159,7 +13153,7 @@ class ImportExpression extends NodeBase {
13159
13153
  }
13160
13154
  if (parent1 instanceof AwaitExpression) {
13161
13155
  const parent2 = parent1.parent;
13162
- // Side-effect only: await import('bar')
13156
+ // Side effect only: await import('bar')
13163
13157
  if (parent2 instanceof ExpressionStatement) {
13164
13158
  return EMPTY_ARRAY;
13165
13159
  }
@@ -13252,22 +13246,6 @@ class ImportExpression extends NodeBase {
13252
13246
  initialise() {
13253
13247
  super.initialise();
13254
13248
  this.scope.context.addDynamicImport(this);
13255
- let parent = this.parent;
13256
- let withinAwaitExpression = false;
13257
- let withinTopLevelAwait = false;
13258
- do {
13259
- if (withinAwaitExpression &&
13260
- (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression)) {
13261
- withinTopLevelAwait = false;
13262
- }
13263
- if (parent instanceof AwaitExpression) {
13264
- withinAwaitExpression = true;
13265
- withinTopLevelAwait = true;
13266
- }
13267
- } while ((parent = parent.parent));
13268
- if (withinAwaitExpression && withinTopLevelAwait) {
13269
- this.withinTopLevelAwait = true;
13270
- }
13271
13249
  }
13272
13250
  parseNode(esTreeNode) {
13273
13251
  this.sourceAstNode = esTreeNode.source;
@@ -14923,10 +14901,10 @@ SwitchStatement.prototype.applyDeoptimizations = doNotDeoptimize;
14923
14901
 
14924
14902
  class TaggedTemplateExpression extends CallExpressionBase {
14925
14903
  get hasCheckedForWarnings() {
14926
- return isFlagSet(this.flags, 268435456 /* Flag.checkedForWarnings */);
14904
+ return isFlagSet(this.flags, 134217728 /* Flag.checkedForWarnings */);
14927
14905
  }
14928
14906
  set hasCheckedForWarnings(value) {
14929
- this.flags = setFlag(this.flags, 268435456 /* Flag.checkedForWarnings */, value);
14907
+ this.flags = setFlag(this.flags, 134217728 /* Flag.checkedForWarnings */, value);
14930
14908
  }
14931
14909
  bind() {
14932
14910
  super.bind();
@@ -16830,7 +16808,7 @@ class Module {
16830
16808
  this.importedFromNotTreeshaken = false;
16831
16809
  this.importers = [];
16832
16810
  this.includedDynamicImporters = [];
16833
- this.includedDirectTopLevelAwaitingDynamicImporters = new Set();
16811
+ this.includedTopLevelAwaitingDynamicImporters = new Set();
16834
16812
  this.includedImports = new Set();
16835
16813
  this.isExecuted = false;
16836
16814
  this.isUserDefinedEntryPoint = false;
@@ -17690,8 +17668,10 @@ class Module {
17690
17668
  if (resolution instanceof Module) {
17691
17669
  if (!resolution.includedDynamicImporters.includes(this)) {
17692
17670
  resolution.includedDynamicImporters.push(this);
17693
- if (node.withinTopLevelAwait) {
17694
- resolution.includedDirectTopLevelAwaitingDynamicImporters.add(this);
17671
+ // If a module has a top-level await, removing this entry can create
17672
+ // deadlocks.
17673
+ if (this.astContext.usesTopLevelAwait) {
17674
+ resolution.includedTopLevelAwaitingDynamicImporters.add(this);
17695
17675
  }
17696
17676
  }
17697
17677
  const importedNames = this.options.treeshake
@@ -19484,8 +19464,8 @@ function analyzeModuleGraph(entries) {
19484
19464
  dynamicEntryModules.add(resolution);
19485
19465
  allEntriesSet.add(resolution);
19486
19466
  dynamicImportsForCurrentEntry.add(resolution);
19487
- for (const includedDirectTopLevelAwaitingDynamicImporter of resolution.includedDirectTopLevelAwaitingDynamicImporters) {
19488
- if (staticDependencies.has(includedDirectTopLevelAwaitingDynamicImporter)) {
19467
+ for (const includedTopLevelAwaitingDynamicImporter of resolution.includedTopLevelAwaitingDynamicImporters) {
19468
+ if (staticDependencies.has(includedTopLevelAwaitingDynamicImporter)) {
19489
19469
  awaitedDynamicEntryModules.add(resolution);
19490
19470
  awaitedDynamicImportsForCurrentEntry.add(resolution);
19491
19471
  break;
@@ -19508,7 +19488,7 @@ function analyzeModuleGraph(entries) {
19508
19488
  allEntries,
19509
19489
  awaitedDynamicImportsByEntry,
19510
19490
  dependentEntriesByModule,
19511
- dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries, allEntries, dynamicEntry => dynamicEntry.includedDirectTopLevelAwaitingDynamicImporters),
19491
+ dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries, allEntries, dynamicEntry => dynamicEntry.includedTopLevelAwaitingDynamicImporters),
19512
19492
  dynamicallyDependentEntriesByDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntries, dynamicEntry => dynamicEntry.includedDynamicImporters),
19513
19493
  dynamicImportsByEntry
19514
19494
  };
@@ -19634,7 +19614,7 @@ function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyD
19634
19614
  */
19635
19615
  function removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry, awaitedAlreadyLoadedAtomsByEntry) {
19636
19616
  // Remove entries from dependent entries if a chunk is already loaded without
19637
- // that entry. Do not remove already loaded atoms where all dynamic imports
19617
+ // that entry. Do not remove already loaded atoms where some dynamic imports
19638
19618
  // are awaited to avoid cycles in the output.
19639
19619
  let chunkMask = 1n;
19640
19620
  for (const { dependentEntries } of chunkAtoms) {
@@ -20013,7 +19993,7 @@ function analyseModuleExecution(entryModules) {
20013
19993
  }
20014
19994
  for (const { resolution, node } of module.dynamicImports) {
20015
19995
  if (resolution instanceof Module) {
20016
- if (node.withinTopLevelAwait) {
19996
+ if (node.scope.context.usesTopLevelAwait) {
20017
19997
  handleSyncLoadedModule(resolution, module);
20018
19998
  }
20019
19999
  else {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
42
42
 
43
43
  const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
44
44
 
45
- var version = "4.52.0";
45
+ var version = "4.52.1";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -13703,10 +13703,10 @@ class CallExpressionBase extends NodeBase {
13703
13703
 
13704
13704
  class CallExpression extends CallExpressionBase {
13705
13705
  get hasCheckedForWarnings() {
13706
- return isFlagSet(this.flags, 268435456 /* Flag.checkedForWarnings */);
13706
+ return isFlagSet(this.flags, 134217728 /* Flag.checkedForWarnings */);
13707
13707
  }
13708
13708
  set hasCheckedForWarnings(value) {
13709
- this.flags = setFlag(this.flags, 268435456 /* Flag.checkedForWarnings */, value);
13709
+ this.flags = setFlag(this.flags, 134217728 /* Flag.checkedForWarnings */, value);
13710
13710
  }
13711
13711
  get optional() {
13712
13712
  return isFlagSet(this.flags, 128 /* Flag.optional */);
@@ -14736,16 +14736,10 @@ class ImportExpression extends NodeBase {
14736
14736
  this.resolutionString = null;
14737
14737
  }
14738
14738
  get shouldIncludeDynamicAttributes() {
14739
- return isFlagSet(this.flags, 536870912 /* Flag.shouldIncludeDynamicAttributes */);
14739
+ return isFlagSet(this.flags, 268435456 /* Flag.shouldIncludeDynamicAttributes */);
14740
14740
  }
14741
14741
  set shouldIncludeDynamicAttributes(value) {
14742
- this.flags = setFlag(this.flags, 536870912 /* Flag.shouldIncludeDynamicAttributes */, value);
14743
- }
14744
- get withinTopLevelAwait() {
14745
- return isFlagSet(this.flags, 134217728 /* Flag.withinTopLevelAwait */);
14746
- }
14747
- set withinTopLevelAwait(value) {
14748
- this.flags = setFlag(this.flags, 134217728 /* Flag.withinTopLevelAwait */, value);
14742
+ this.flags = setFlag(this.flags, 268435456 /* Flag.shouldIncludeDynamicAttributes */, value);
14749
14743
  }
14750
14744
  bind() {
14751
14745
  this.source.bind();
@@ -14769,7 +14763,7 @@ class ImportExpression extends NodeBase {
14769
14763
  }
14770
14764
  if (parent1 instanceof AwaitExpression) {
14771
14765
  const parent2 = parent1.parent;
14772
- // Side-effect only: await import('bar')
14766
+ // Side effect only: await import('bar')
14773
14767
  if (parent2 instanceof ExpressionStatement) {
14774
14768
  return parseAst_js.EMPTY_ARRAY;
14775
14769
  }
@@ -14862,22 +14856,6 @@ class ImportExpression extends NodeBase {
14862
14856
  initialise() {
14863
14857
  super.initialise();
14864
14858
  this.scope.context.addDynamicImport(this);
14865
- let parent = this.parent;
14866
- let withinAwaitExpression = false;
14867
- let withinTopLevelAwait = false;
14868
- do {
14869
- if (withinAwaitExpression &&
14870
- (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression)) {
14871
- withinTopLevelAwait = false;
14872
- }
14873
- if (parent instanceof AwaitExpression) {
14874
- withinAwaitExpression = true;
14875
- withinTopLevelAwait = true;
14876
- }
14877
- } while ((parent = parent.parent));
14878
- if (withinAwaitExpression && withinTopLevelAwait) {
14879
- this.withinTopLevelAwait = true;
14880
- }
14881
14859
  }
14882
14860
  parseNode(esTreeNode) {
14883
14861
  this.sourceAstNode = esTreeNode.source;
@@ -16533,10 +16511,10 @@ SwitchStatement.prototype.applyDeoptimizations = doNotDeoptimize;
16533
16511
 
16534
16512
  class TaggedTemplateExpression extends CallExpressionBase {
16535
16513
  get hasCheckedForWarnings() {
16536
- return isFlagSet(this.flags, 268435456 /* Flag.checkedForWarnings */);
16514
+ return isFlagSet(this.flags, 134217728 /* Flag.checkedForWarnings */);
16537
16515
  }
16538
16516
  set hasCheckedForWarnings(value) {
16539
- this.flags = setFlag(this.flags, 268435456 /* Flag.checkedForWarnings */, value);
16517
+ this.flags = setFlag(this.flags, 134217728 /* Flag.checkedForWarnings */, value);
16540
16518
  }
16541
16519
  bind() {
16542
16520
  super.bind();
@@ -18433,7 +18411,7 @@ class Module {
18433
18411
  this.importedFromNotTreeshaken = false;
18434
18412
  this.importers = [];
18435
18413
  this.includedDynamicImporters = [];
18436
- this.includedDirectTopLevelAwaitingDynamicImporters = new Set();
18414
+ this.includedTopLevelAwaitingDynamicImporters = new Set();
18437
18415
  this.includedImports = new Set();
18438
18416
  this.isExecuted = false;
18439
18417
  this.isUserDefinedEntryPoint = false;
@@ -19293,8 +19271,10 @@ class Module {
19293
19271
  if (resolution instanceof Module) {
19294
19272
  if (!resolution.includedDynamicImporters.includes(this)) {
19295
19273
  resolution.includedDynamicImporters.push(this);
19296
- if (node.withinTopLevelAwait) {
19297
- resolution.includedDirectTopLevelAwaitingDynamicImporters.add(this);
19274
+ // If a module has a top-level await, removing this entry can create
19275
+ // deadlocks.
19276
+ if (this.astContext.usesTopLevelAwait) {
19277
+ resolution.includedTopLevelAwaitingDynamicImporters.add(this);
19298
19278
  }
19299
19279
  }
19300
19280
  const importedNames = this.options.treeshake
@@ -20978,8 +20958,8 @@ function analyzeModuleGraph(entries) {
20978
20958
  dynamicEntryModules.add(resolution);
20979
20959
  allEntriesSet.add(resolution);
20980
20960
  dynamicImportsForCurrentEntry.add(resolution);
20981
- for (const includedDirectTopLevelAwaitingDynamicImporter of resolution.includedDirectTopLevelAwaitingDynamicImporters) {
20982
- if (staticDependencies.has(includedDirectTopLevelAwaitingDynamicImporter)) {
20961
+ for (const includedTopLevelAwaitingDynamicImporter of resolution.includedTopLevelAwaitingDynamicImporters) {
20962
+ if (staticDependencies.has(includedTopLevelAwaitingDynamicImporter)) {
20983
20963
  awaitedDynamicEntryModules.add(resolution);
20984
20964
  awaitedDynamicImportsForCurrentEntry.add(resolution);
20985
20965
  break;
@@ -21002,7 +20982,7 @@ function analyzeModuleGraph(entries) {
21002
20982
  allEntries,
21003
20983
  awaitedDynamicImportsByEntry,
21004
20984
  dependentEntriesByModule,
21005
- dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries, allEntries, dynamicEntry => dynamicEntry.includedDirectTopLevelAwaitingDynamicImporters),
20985
+ dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries, allEntries, dynamicEntry => dynamicEntry.includedTopLevelAwaitingDynamicImporters),
21006
20986
  dynamicallyDependentEntriesByDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntries, dynamicEntry => dynamicEntry.includedDynamicImporters),
21007
20987
  dynamicImportsByEntry
21008
20988
  };
@@ -21128,7 +21108,7 @@ function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyD
21128
21108
  */
21129
21109
  function removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry, awaitedAlreadyLoadedAtomsByEntry) {
21130
21110
  // Remove entries from dependent entries if a chunk is already loaded without
21131
- // that entry. Do not remove already loaded atoms where all dynamic imports
21111
+ // that entry. Do not remove already loaded atoms where some dynamic imports
21132
21112
  // are awaited to avoid cycles in the output.
21133
21113
  let chunkMask = 1n;
21134
21114
  for (const { dependentEntries } of chunkAtoms) {
@@ -21507,7 +21487,7 @@ function analyseModuleExecution(entryModules) {
21507
21487
  }
21508
21488
  for (const { resolution, node } of module.dynamicImports) {
21509
21489
  if (resolution instanceof Module) {
21510
- if (node.withinTopLevelAwait) {
21490
+ if (node.scope.context.usesTopLevelAwait) {
21511
21491
  handleSyncLoadedModule(resolution, module);
21512
21492
  }
21513
21493
  else {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.52.0
4
- Fri, 19 Sep 2025 19:45:47 GMT - commit 2029f639f983289619538c60bc14eebc638c6926
3
+ Rollup.js v4.52.1
4
+ Tue, 23 Sep 2025 04:29:13 GMT - commit 69b5dd3e3edc03ab02cf948ea5278226fc9e60c8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "4.52.0",
3
+ "version": "4.52.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -106,28 +106,28 @@
106
106
  "homepage": "https://rollupjs.org/",
107
107
  "optionalDependencies": {
108
108
  "fsevents": "~2.3.2",
109
- "@rollup/rollup-darwin-arm64": "4.52.0",
110
- "@rollup/rollup-android-arm64": "4.52.0",
111
- "@rollup/rollup-win32-arm64-msvc": "4.52.0",
112
- "@rollup/rollup-freebsd-arm64": "4.52.0",
113
- "@rollup/rollup-linux-arm64-gnu": "4.52.0",
114
- "@rollup/rollup-linux-arm64-musl": "4.52.0",
115
- "@rollup/rollup-android-arm-eabi": "4.52.0",
116
- "@rollup/rollup-linux-arm-gnueabihf": "4.52.0",
117
- "@rollup/rollup-linux-arm-musleabihf": "4.52.0",
118
- "@rollup/rollup-win32-ia32-msvc": "4.52.0",
119
- "@rollup/rollup-linux-loong64-gnu": "4.52.0",
120
- "@rollup/rollup-linux-riscv64-gnu": "4.52.0",
121
- "@rollup/rollup-linux-riscv64-musl": "4.52.0",
122
- "@rollup/rollup-linux-ppc64-gnu": "4.52.0",
123
- "@rollup/rollup-linux-s390x-gnu": "4.52.0",
124
- "@rollup/rollup-darwin-x64": "4.52.0",
125
- "@rollup/rollup-win32-x64-gnu": "4.52.0",
126
- "@rollup/rollup-win32-x64-msvc": "4.52.0",
127
- "@rollup/rollup-freebsd-x64": "4.52.0",
128
- "@rollup/rollup-linux-x64-gnu": "4.52.0",
129
- "@rollup/rollup-linux-x64-musl": "4.52.0",
130
- "@rollup/rollup-openharmony-arm64": "4.52.0"
109
+ "@rollup/rollup-darwin-arm64": "4.52.1",
110
+ "@rollup/rollup-android-arm64": "4.52.1",
111
+ "@rollup/rollup-win32-arm64-msvc": "4.52.1",
112
+ "@rollup/rollup-freebsd-arm64": "4.52.1",
113
+ "@rollup/rollup-linux-arm64-gnu": "4.52.1",
114
+ "@rollup/rollup-linux-arm64-musl": "4.52.1",
115
+ "@rollup/rollup-android-arm-eabi": "4.52.1",
116
+ "@rollup/rollup-linux-arm-gnueabihf": "4.52.1",
117
+ "@rollup/rollup-linux-arm-musleabihf": "4.52.1",
118
+ "@rollup/rollup-win32-ia32-msvc": "4.52.1",
119
+ "@rollup/rollup-linux-loong64-gnu": "4.52.1",
120
+ "@rollup/rollup-linux-riscv64-gnu": "4.52.1",
121
+ "@rollup/rollup-linux-riscv64-musl": "4.52.1",
122
+ "@rollup/rollup-linux-ppc64-gnu": "4.52.1",
123
+ "@rollup/rollup-linux-s390x-gnu": "4.52.1",
124
+ "@rollup/rollup-darwin-x64": "4.52.1",
125
+ "@rollup/rollup-win32-x64-gnu": "4.52.1",
126
+ "@rollup/rollup-win32-x64-msvc": "4.52.1",
127
+ "@rollup/rollup-freebsd-x64": "4.52.1",
128
+ "@rollup/rollup-linux-x64-gnu": "4.52.1",
129
+ "@rollup/rollup-linux-x64-musl": "4.52.1",
130
+ "@rollup/rollup-openharmony-arm64": "4.52.1"
131
131
  },
132
132
  "dependencies": {
133
133
  "@types/estree": "1.0.8"