rollup 4.34.0 → 4.34.2

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.34.0
5
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
4
+ Rollup.js v4.34.2
5
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
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.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
15
15
  import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
 
18
- var version = "4.34.0";
18
+ var version = "4.34.2";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -2271,8 +2271,10 @@ class ExpressionEntity {
2271
2271
  * */
2272
2272
  includeCallArguments(context, interaction) {
2273
2273
  for (const argument of interaction.args) {
2274
- argument?.includePath(UNKNOWN_PATH, context);
2275
- argument?.include(context, false);
2274
+ if (argument) {
2275
+ argument.includePath(UNKNOWN_PATH, context);
2276
+ argument.include(context, false);
2277
+ }
2276
2278
  }
2277
2279
  }
2278
2280
  shouldBeIncluded(_context) {
@@ -5213,6 +5215,8 @@ class IdentifierBase extends NodeBase {
5213
5215
  includePath(path, context) {
5214
5216
  if (!this.included) {
5215
5217
  this.included = true;
5218
+ if (!this.deoptimized)
5219
+ this.applyDeoptimizations();
5216
5220
  if (this.variable !== null) {
5217
5221
  this.scope.context.includeVariableInModule(this.variable, path, context);
5218
5222
  }
@@ -6284,7 +6288,7 @@ class ParameterScope extends ChildScope {
6284
6288
  }
6285
6289
  }
6286
6290
  }
6287
- if (!argument.included && (argumentIncluded || argument.shouldBeIncluded(context))) {
6291
+ if (argumentIncluded || argument.shouldBeIncluded(context)) {
6288
6292
  argumentIncluded = true;
6289
6293
  argument.include(context, calledFromTryStatement);
6290
6294
  }
@@ -14775,6 +14779,12 @@ class ThrowStatement extends NodeBase {
14775
14779
  this.argument.include(context, includeChildrenRecursively);
14776
14780
  context.brokenFlow = true;
14777
14781
  }
14782
+ includeNode(context) {
14783
+ if (!this.included) {
14784
+ this.included = true;
14785
+ this.argument.includePath(UNKNOWN_PATH, context);
14786
+ }
14787
+ }
14778
14788
  render(code, options) {
14779
14789
  this.argument.render(code, options, { preventASI: true });
14780
14790
  if (this.argument.start === this.start + 5 /* 'throw'.length */) {
@@ -14782,7 +14792,6 @@ class ThrowStatement extends NodeBase {
14782
14792
  }
14783
14793
  }
14784
14794
  }
14785
- ThrowStatement.prototype.includeNode = onlyIncludeSelf;
14786
14795
 
14787
14796
  class TryStatement extends NodeBase {
14788
14797
  constructor() {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
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.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
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.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
17
17
  const node_perf_hooks = require('node:perf_hooks');
18
18
  const promises = require('node:fs/promises');
19
19
 
20
- var version = "4.34.0";
20
+ var version = "4.34.2";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -3782,8 +3782,10 @@ class ExpressionEntity {
3782
3782
  * */
3783
3783
  includeCallArguments(context, interaction) {
3784
3784
  for (const argument of interaction.args) {
3785
- argument?.includePath(UNKNOWN_PATH, context);
3786
- argument?.include(context, false);
3785
+ if (argument) {
3786
+ argument.includePath(UNKNOWN_PATH, context);
3787
+ argument.include(context, false);
3788
+ }
3787
3789
  }
3788
3790
  }
3789
3791
  shouldBeIncluded(_context) {
@@ -6722,6 +6724,8 @@ class IdentifierBase extends NodeBase {
6722
6724
  includePath(path, context) {
6723
6725
  if (!this.included) {
6724
6726
  this.included = true;
6727
+ if (!this.deoptimized)
6728
+ this.applyDeoptimizations();
6725
6729
  if (this.variable !== null) {
6726
6730
  this.scope.context.includeVariableInModule(this.variable, path, context);
6727
6731
  }
@@ -7781,7 +7785,7 @@ class ParameterScope extends ChildScope {
7781
7785
  }
7782
7786
  }
7783
7787
  }
7784
- if (!argument.included && (argumentIncluded || argument.shouldBeIncluded(context))) {
7788
+ if (argumentIncluded || argument.shouldBeIncluded(context)) {
7785
7789
  argumentIncluded = true;
7786
7790
  argument.include(context, calledFromTryStatement);
7787
7791
  }
@@ -16243,6 +16247,12 @@ class ThrowStatement extends NodeBase {
16243
16247
  this.argument.include(context, includeChildrenRecursively);
16244
16248
  context.brokenFlow = true;
16245
16249
  }
16250
+ includeNode(context) {
16251
+ if (!this.included) {
16252
+ this.included = true;
16253
+ this.argument.includePath(UNKNOWN_PATH, context);
16254
+ }
16255
+ }
16246
16256
  render(code, options) {
16247
16257
  this.argument.render(code, options, { preventASI: true });
16248
16258
  if (this.argument.start === this.start + 5 /* 'throw'.length */) {
@@ -16250,7 +16260,6 @@ class ThrowStatement extends NodeBase {
16250
16260
  }
16251
16261
  }
16252
16262
  }
16253
- ThrowStatement.prototype.includeNode = onlyIncludeSelf;
16254
16263
 
16255
16264
  class TryStatement extends NodeBase {
16256
16265
  constructor() {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.0
4
- Sat, 01 Feb 2025 08:39:54 GMT - commit 979d62888dbe75f92e50fdd64246c737c52f5f1f
3
+ Rollup.js v4.34.2
4
+ Tue, 04 Feb 2025 08:09:29 GMT - commit 615efa045779fae70c4fd5fe64fdb08a039c0442
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.34.0",
3
+ "version": "4.34.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -110,25 +110,25 @@
110
110
  "homepage": "https://rollupjs.org/",
111
111
  "optionalDependencies": {
112
112
  "fsevents": "~2.3.2",
113
- "@rollup/rollup-darwin-arm64": "4.34.0",
114
- "@rollup/rollup-android-arm64": "4.34.0",
115
- "@rollup/rollup-win32-arm64-msvc": "4.34.0",
116
- "@rollup/rollup-freebsd-arm64": "4.34.0",
117
- "@rollup/rollup-linux-arm64-gnu": "4.34.0",
118
- "@rollup/rollup-linux-arm64-musl": "4.34.0",
119
- "@rollup/rollup-android-arm-eabi": "4.34.0",
120
- "@rollup/rollup-linux-arm-gnueabihf": "4.34.0",
121
- "@rollup/rollup-linux-arm-musleabihf": "4.34.0",
122
- "@rollup/rollup-win32-ia32-msvc": "4.34.0",
123
- "@rollup/rollup-linux-loongarch64-gnu": "4.34.0",
124
- "@rollup/rollup-linux-riscv64-gnu": "4.34.0",
125
- "@rollup/rollup-linux-powerpc64le-gnu": "4.34.0",
126
- "@rollup/rollup-linux-s390x-gnu": "4.34.0",
127
- "@rollup/rollup-darwin-x64": "4.34.0",
128
- "@rollup/rollup-win32-x64-msvc": "4.34.0",
129
- "@rollup/rollup-freebsd-x64": "4.34.0",
130
- "@rollup/rollup-linux-x64-gnu": "4.34.0",
131
- "@rollup/rollup-linux-x64-musl": "4.34.0"
113
+ "@rollup/rollup-darwin-arm64": "4.34.2",
114
+ "@rollup/rollup-android-arm64": "4.34.2",
115
+ "@rollup/rollup-win32-arm64-msvc": "4.34.2",
116
+ "@rollup/rollup-freebsd-arm64": "4.34.2",
117
+ "@rollup/rollup-linux-arm64-gnu": "4.34.2",
118
+ "@rollup/rollup-linux-arm64-musl": "4.34.2",
119
+ "@rollup/rollup-android-arm-eabi": "4.34.2",
120
+ "@rollup/rollup-linux-arm-gnueabihf": "4.34.2",
121
+ "@rollup/rollup-linux-arm-musleabihf": "4.34.2",
122
+ "@rollup/rollup-win32-ia32-msvc": "4.34.2",
123
+ "@rollup/rollup-linux-loongarch64-gnu": "4.34.2",
124
+ "@rollup/rollup-linux-riscv64-gnu": "4.34.2",
125
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.34.2",
126
+ "@rollup/rollup-linux-s390x-gnu": "4.34.2",
127
+ "@rollup/rollup-darwin-x64": "4.34.2",
128
+ "@rollup/rollup-win32-x64-msvc": "4.34.2",
129
+ "@rollup/rollup-freebsd-x64": "4.34.2",
130
+ "@rollup/rollup-linux-x64-gnu": "4.34.2",
131
+ "@rollup/rollup-linux-x64-musl": "4.34.2"
132
132
  },
133
133
  "dependencies": {
134
134
  "@types/estree": "1.0.6"