rollup 4.13.1 → 4.14.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/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.13.1
5
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
4
+ Rollup.js v4.14.0
5
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version = "4.13.1";
19
+ var version = "4.14.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -2025,6 +2025,20 @@ const EMPTY_SET = Object.freeze(new (class extends Set {
2025
2025
  }
2026
2026
  })());
2027
2027
 
2028
+ function cacheObjectGetters(object, getterProperties) {
2029
+ for (const property of getterProperties) {
2030
+ const propertyGetter = Object.getOwnPropertyDescriptor(object, property).get;
2031
+ Object.defineProperty(object, property, {
2032
+ get() {
2033
+ const value = propertyGetter.call(object);
2034
+ // This replaces the getter with a fixed value for subsequent calls
2035
+ Object.defineProperty(object, property, { value });
2036
+ return value;
2037
+ }
2038
+ });
2039
+ }
2040
+ }
2041
+
2028
2042
  const RESERVED_NAMES = new Set([
2029
2043
  'await',
2030
2044
  'break',
@@ -2156,6 +2170,9 @@ class ExternalModule {
2156
2170
  syntheticNamedExports: false
2157
2171
  };
2158
2172
  }
2173
+ cacheInfoGetters() {
2174
+ cacheObjectGetters(this.info, ['dynamicImporters', 'importers']);
2175
+ }
2159
2176
  getVariableForExportName(name) {
2160
2177
  const declaration = this.declarations.get(name);
2161
2178
  if (declaration)
@@ -7267,13 +7284,7 @@ class GlobalVariable extends Variable {
7267
7284
  }
7268
7285
  }
7269
7286
 
7270
- const tdzVariableKinds = {
7271
- __proto__: null,
7272
- class: true,
7273
- const: true,
7274
- let: true,
7275
- var: true
7276
- };
7287
+ const tdzVariableKinds = new Set(['class', 'const', 'let', 'var', 'using', 'await using']);
7277
7288
  class Identifier extends NodeBase {
7278
7289
  constructor() {
7279
7290
  super(...arguments);
@@ -7319,6 +7330,8 @@ class Identifier extends NodeBase {
7319
7330
  }
7320
7331
  case 'let':
7321
7332
  case 'const':
7333
+ case 'using':
7334
+ case 'await using':
7322
7335
  case 'class': {
7323
7336
  variable = this.scope.addDeclaration(this, this.scope.context, init, kind);
7324
7337
  break;
@@ -7401,7 +7414,7 @@ class Identifier extends NodeBase {
7401
7414
  return cachedTdzAccess;
7402
7415
  if (!(this.variable instanceof LocalVariable &&
7403
7416
  this.variable.kind &&
7404
- this.variable.kind in tdzVariableKinds &&
7417
+ tdzVariableKinds.has(this.variable.kind) &&
7405
7418
  // we ignore possible TDZs due to circular module dependencies as
7406
7419
  // otherwise we get many false positives
7407
7420
  this.variable.module === this.scope.context.module)) {
@@ -10340,7 +10353,8 @@ function isReassignedExportsMember(variable, exportNamesByVariable) {
10340
10353
  }
10341
10354
 
10342
10355
  class VariableDeclarator extends NodeBase {
10343
- declareDeclarator(kind) {
10356
+ declareDeclarator(kind, isUsingDeclaration) {
10357
+ this.isUsingDeclaration = isUsingDeclaration;
10344
10358
  this.id.declare(kind, this.init || UNDEFINED_EXPRESSION);
10345
10359
  }
10346
10360
  deoptimizePath(path) {
@@ -10351,7 +10365,7 @@ class VariableDeclarator extends NodeBase {
10351
10365
  this.applyDeoptimizations();
10352
10366
  const initEffect = this.init?.hasEffects(context);
10353
10367
  this.id.markDeclarationReached();
10354
- return initEffect || this.id.hasEffects(context);
10368
+ return initEffect || this.id.hasEffects(context) || this.isUsingDeclaration;
10355
10369
  }
10356
10370
  include(context, includeChildrenRecursively) {
10357
10371
  const { deoptimized, id, init } = this;
@@ -10370,7 +10384,7 @@ class VariableDeclarator extends NodeBase {
10370
10384
  render(code, options) {
10371
10385
  const { exportNamesByVariable, snippets: { _, getPropertyAccess } } = options;
10372
10386
  const { end, id, init, start } = this;
10373
- const renderId = id.included;
10387
+ const renderId = id.included || this.isUsingDeclaration;
10374
10388
  if (renderId) {
10375
10389
  id.render(code, options);
10376
10390
  }
@@ -12047,15 +12061,17 @@ class VariableDeclaration extends NodeBase {
12047
12061
  }
12048
12062
  initialise() {
12049
12063
  super.initialise();
12064
+ this.isUsingDeclaration = this.kind === 'await using' || this.kind === 'using';
12050
12065
  for (const declarator of this.declarations) {
12051
- declarator.declareDeclarator(this.kind);
12066
+ declarator.declareDeclarator(this.kind, this.isUsingDeclaration);
12052
12067
  }
12053
12068
  }
12054
12069
  removeAnnotations(code) {
12055
12070
  this.declarations[0].removeAnnotations(code);
12056
12071
  }
12057
12072
  render(code, options, nodeRenderOptions = BLANK) {
12058
- if (areAllDeclarationsIncludedAndNotExported(this.declarations, options.exportNamesByVariable)) {
12073
+ if (this.isUsingDeclaration ||
12074
+ areAllDeclarationsIncludedAndNotExported(this.declarations, options.exportNamesByVariable)) {
12059
12075
  for (const declarator of this.declarations) {
12060
12076
  declarator.render(code, options);
12061
12077
  }
@@ -13649,6 +13665,21 @@ class Module {
13649
13665
  bindReferences() {
13650
13666
  this.ast.bind();
13651
13667
  }
13668
+ cacheInfoGetters() {
13669
+ cacheObjectGetters(this.info, [
13670
+ 'dynamicallyImportedIdResolutions',
13671
+ 'dynamicallyImportedIds',
13672
+ 'dynamicImporters',
13673
+ 'exportedBindings',
13674
+ 'exports',
13675
+ 'hasDefaultExport',
13676
+ 'implicitlyLoadedAfterOneOf',
13677
+ 'implicitlyLoadedBefore',
13678
+ 'importedIdResolutions',
13679
+ 'importedIds',
13680
+ 'importers'
13681
+ ]);
13682
+ }
13652
13683
  error(properties, pos) {
13653
13684
  pos !== undefined && this.addLocationToLogProps(properties, pos);
13654
13685
  return error(properties);
@@ -19785,6 +19816,7 @@ class Graph {
19785
19816
  throw new Error('You must supply options.input to rollup');
19786
19817
  }
19787
19818
  for (const module of this.modulesById.values()) {
19819
+ module.cacheInfoGetters();
19788
19820
  if (module instanceof Module) {
19789
19821
  this.modules.push(module);
19790
19822
  }
@@ -20683,6 +20715,19 @@ function handleError(error, recover = false) {
20683
20715
  if (error.stack) {
20684
20716
  outputLines.push(dim(error.stack?.replace(`${nameSection}${error.message}\n`, '')));
20685
20717
  }
20718
+ // ES2022: Error.prototype.cause is optional
20719
+ if (error.cause) {
20720
+ let cause = error.cause;
20721
+ const causeErrorLines = [];
20722
+ let indent = '';
20723
+ while (cause) {
20724
+ indent += ' ';
20725
+ const message = cause.stack || cause;
20726
+ causeErrorLines.push(...`[cause] ${message}`.split('\n').map(line => indent + line));
20727
+ cause = cause.cause;
20728
+ }
20729
+ outputLines.push(dim(causeErrorLines.join('\n')));
20730
+ }
20686
20731
  outputLines.push('', '');
20687
20732
  stderr(outputLines.join('\n'));
20688
20733
  if (!recover)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -84,7 +84,10 @@ const FIXED_STRINGS = [
84
84
  '||=',
85
85
  '??=',
86
86
  'pure',
87
- 'noSideEffects'
87
+ 'noSideEffects',
88
+ 'sourcemap',
89
+ 'using',
90
+ 'await using'
88
91
  ];
89
92
 
90
93
  const ANNOTATION_KEY = '_rollupAnnotations';
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/native.js CHANGED
@@ -16,6 +16,7 @@ const bindingsByPlatformAndArch = {
16
16
  linux: {
17
17
  arm: { base: 'linux-arm-gnueabihf', musl: null },
18
18
  arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
19
+ ppc64le: { base: 'linux-powerpc64le-gnu', musl: null },
19
20
  riscv64: { base: 'linux-riscv64-gnu', musl: null },
20
21
  s390x: { base: 'linux-s390x-gnu', musl: null },
21
22
  x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1066,7 +1066,10 @@ const FIXED_STRINGS = [
1066
1066
  '||=',
1067
1067
  '??=',
1068
1068
  'pure',
1069
- 'noSideEffects'
1069
+ 'noSideEffects',
1070
+ 'sourcemap',
1071
+ 'using',
1072
+ 'await using'
1070
1073
  ];
1071
1074
 
1072
1075
  const ANNOTATION_KEY = '_rollupAnnotations';
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version = "4.13.1";
34
+ var version = "4.14.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -1479,6 +1479,19 @@ function handleError(error, recover = false) {
1479
1479
  if (error.stack) {
1480
1480
  outputLines.push(dim(error.stack?.replace(`${nameSection}${error.message}\n`, '')));
1481
1481
  }
1482
+ // ES2022: Error.prototype.cause is optional
1483
+ if (error.cause) {
1484
+ let cause = error.cause;
1485
+ const causeErrorLines = [];
1486
+ let indent = '';
1487
+ while (cause) {
1488
+ indent += ' ';
1489
+ const message = cause.stack || cause;
1490
+ causeErrorLines.push(...`[cause] ${message}`.split('\n').map(line => indent + line));
1491
+ cause = cause.cause;
1492
+ }
1493
+ outputLines.push(dim(causeErrorLines.join('\n')));
1494
+ }
1482
1495
  outputLines.push('', '');
1483
1496
  stderr(outputLines.join('\n'));
1484
1497
  if (!recover)
@@ -3467,6 +3480,20 @@ class ExternalVariable extends Variable {
3467
3480
  }
3468
3481
  }
3469
3482
 
3483
+ function cacheObjectGetters(object, getterProperties) {
3484
+ for (const property of getterProperties) {
3485
+ const propertyGetter = Object.getOwnPropertyDescriptor(object, property).get;
3486
+ Object.defineProperty(object, property, {
3487
+ get() {
3488
+ const value = propertyGetter.call(object);
3489
+ // This replaces the getter with a fixed value for subsequent calls
3490
+ Object.defineProperty(object, property, { value });
3491
+ return value;
3492
+ }
3493
+ });
3494
+ }
3495
+ }
3496
+
3470
3497
  const RESERVED_NAMES = new Set([
3471
3498
  'await',
3472
3499
  'break',
@@ -3598,6 +3625,9 @@ class ExternalModule {
3598
3625
  syntheticNamedExports: false
3599
3626
  };
3600
3627
  }
3628
+ cacheInfoGetters() {
3629
+ cacheObjectGetters(this.info, ['dynamicImporters', 'importers']);
3630
+ }
3601
3631
  getVariableForExportName(name) {
3602
3632
  const declaration = this.declarations.get(name);
3603
3633
  if (declaration)
@@ -8695,13 +8725,7 @@ class GlobalVariable extends Variable {
8695
8725
  }
8696
8726
  }
8697
8727
 
8698
- const tdzVariableKinds = {
8699
- __proto__: null,
8700
- class: true,
8701
- const: true,
8702
- let: true,
8703
- var: true
8704
- };
8728
+ const tdzVariableKinds = new Set(['class', 'const', 'let', 'var', 'using', 'await using']);
8705
8729
  class Identifier extends NodeBase {
8706
8730
  constructor() {
8707
8731
  super(...arguments);
@@ -8747,6 +8771,8 @@ class Identifier extends NodeBase {
8747
8771
  }
8748
8772
  case 'let':
8749
8773
  case 'const':
8774
+ case 'using':
8775
+ case 'await using':
8750
8776
  case 'class': {
8751
8777
  variable = this.scope.addDeclaration(this, this.scope.context, init, kind);
8752
8778
  break;
@@ -8829,7 +8855,7 @@ class Identifier extends NodeBase {
8829
8855
  return cachedTdzAccess;
8830
8856
  if (!(this.variable instanceof LocalVariable &&
8831
8857
  this.variable.kind &&
8832
- this.variable.kind in tdzVariableKinds &&
8858
+ tdzVariableKinds.has(this.variable.kind) &&
8833
8859
  // we ignore possible TDZs due to circular module dependencies as
8834
8860
  // otherwise we get many false positives
8835
8861
  this.variable.module === this.scope.context.module)) {
@@ -11768,7 +11794,8 @@ function isReassignedExportsMember(variable, exportNamesByVariable) {
11768
11794
  }
11769
11795
 
11770
11796
  class VariableDeclarator extends NodeBase {
11771
- declareDeclarator(kind) {
11797
+ declareDeclarator(kind, isUsingDeclaration) {
11798
+ this.isUsingDeclaration = isUsingDeclaration;
11772
11799
  this.id.declare(kind, this.init || UNDEFINED_EXPRESSION);
11773
11800
  }
11774
11801
  deoptimizePath(path) {
@@ -11779,7 +11806,7 @@ class VariableDeclarator extends NodeBase {
11779
11806
  this.applyDeoptimizations();
11780
11807
  const initEffect = this.init?.hasEffects(context);
11781
11808
  this.id.markDeclarationReached();
11782
- return initEffect || this.id.hasEffects(context);
11809
+ return initEffect || this.id.hasEffects(context) || this.isUsingDeclaration;
11783
11810
  }
11784
11811
  include(context, includeChildrenRecursively) {
11785
11812
  const { deoptimized, id, init } = this;
@@ -11798,7 +11825,7 @@ class VariableDeclarator extends NodeBase {
11798
11825
  render(code, options) {
11799
11826
  const { exportNamesByVariable, snippets: { _, getPropertyAccess } } = options;
11800
11827
  const { end, id, init, start } = this;
11801
- const renderId = id.included;
11828
+ const renderId = id.included || this.isUsingDeclaration;
11802
11829
  if (renderId) {
11803
11830
  id.render(code, options);
11804
11831
  }
@@ -13475,15 +13502,17 @@ class VariableDeclaration extends NodeBase {
13475
13502
  }
13476
13503
  initialise() {
13477
13504
  super.initialise();
13505
+ this.isUsingDeclaration = this.kind === 'await using' || this.kind === 'using';
13478
13506
  for (const declarator of this.declarations) {
13479
- declarator.declareDeclarator(this.kind);
13507
+ declarator.declareDeclarator(this.kind, this.isUsingDeclaration);
13480
13508
  }
13481
13509
  }
13482
13510
  removeAnnotations(code) {
13483
13511
  this.declarations[0].removeAnnotations(code);
13484
13512
  }
13485
13513
  render(code, options, nodeRenderOptions = BLANK) {
13486
- if (areAllDeclarationsIncludedAndNotExported(this.declarations, options.exportNamesByVariable)) {
13514
+ if (this.isUsingDeclaration ||
13515
+ areAllDeclarationsIncludedAndNotExported(this.declarations, options.exportNamesByVariable)) {
13487
13516
  for (const declarator of this.declarations) {
13488
13517
  declarator.render(code, options);
13489
13518
  }
@@ -15070,6 +15099,21 @@ class Module {
15070
15099
  bindReferences() {
15071
15100
  this.ast.bind();
15072
15101
  }
15102
+ cacheInfoGetters() {
15103
+ cacheObjectGetters(this.info, [
15104
+ 'dynamicallyImportedIdResolutions',
15105
+ 'dynamicallyImportedIds',
15106
+ 'dynamicImporters',
15107
+ 'exportedBindings',
15108
+ 'exports',
15109
+ 'hasDefaultExport',
15110
+ 'implicitlyLoadedAfterOneOf',
15111
+ 'implicitlyLoadedBefore',
15112
+ 'importedIdResolutions',
15113
+ 'importedIds',
15114
+ 'importers'
15115
+ ]);
15116
+ }
15073
15117
  error(properties, pos) {
15074
15118
  pos !== undefined && this.addLocationToLogProps(properties, pos);
15075
15119
  return parseAst_js.error(properties);
@@ -20210,6 +20254,7 @@ class Graph {
20210
20254
  throw new Error('You must supply options.input to rollup');
20211
20255
  }
20212
20256
  for (const module of this.modulesById.values()) {
20257
+ module.cacheInfoGetters();
20213
20258
  if (module instanceof Module) {
20214
20259
  this.modules.push(module);
20215
20260
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.13.1
4
- Wed, 27 Mar 2024 10:27:07 GMT - commit fffaedeaa1cf9c8f6efc93d53bb8a81738e0ce87
3
+ Rollup.js v4.14.0
4
+ Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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.13.1",
3
+ "version": "4.14.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -25,6 +25,7 @@
25
25
  "armv7-unknown-linux-gnueabihf",
26
26
  "i686-pc-windows-msvc",
27
27
  "riscv64gc-unknown-linux-gnu",
28
+ "powerpc64le-unknown-linux-gnu",
28
29
  "s390x-unknown-linux-gnu",
29
30
  "x86_64-apple-darwin",
30
31
  "x86_64-pc-windows-msvc",
@@ -102,20 +103,21 @@
102
103
  "homepage": "https://rollupjs.org/",
103
104
  "optionalDependencies": {
104
105
  "fsevents": "~2.3.2",
105
- "@rollup/rollup-darwin-arm64": "4.13.1",
106
- "@rollup/rollup-android-arm64": "4.13.1",
107
- "@rollup/rollup-win32-arm64-msvc": "4.13.1",
108
- "@rollup/rollup-linux-arm64-gnu": "4.13.1",
109
- "@rollup/rollup-linux-arm64-musl": "4.13.1",
110
- "@rollup/rollup-android-arm-eabi": "4.13.1",
111
- "@rollup/rollup-linux-arm-gnueabihf": "4.13.1",
112
- "@rollup/rollup-win32-ia32-msvc": "4.13.1",
113
- "@rollup/rollup-linux-riscv64-gnu": "4.13.1",
114
- "@rollup/rollup-linux-s390x-gnu": "4.13.1",
115
- "@rollup/rollup-darwin-x64": "4.13.1",
116
- "@rollup/rollup-win32-x64-msvc": "4.13.1",
117
- "@rollup/rollup-linux-x64-gnu": "4.13.1",
118
- "@rollup/rollup-linux-x64-musl": "4.13.1"
106
+ "@rollup/rollup-darwin-arm64": "4.14.0",
107
+ "@rollup/rollup-android-arm64": "4.14.0",
108
+ "@rollup/rollup-win32-arm64-msvc": "4.14.0",
109
+ "@rollup/rollup-linux-arm64-gnu": "4.14.0",
110
+ "@rollup/rollup-linux-arm64-musl": "4.14.0",
111
+ "@rollup/rollup-android-arm-eabi": "4.14.0",
112
+ "@rollup/rollup-linux-arm-gnueabihf": "4.14.0",
113
+ "@rollup/rollup-win32-ia32-msvc": "4.14.0",
114
+ "@rollup/rollup-linux-riscv64-gnu": "4.14.0",
115
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.14.0",
116
+ "@rollup/rollup-linux-s390x-gnu": "4.14.0",
117
+ "@rollup/rollup-darwin-x64": "4.14.0",
118
+ "@rollup/rollup-win32-x64-msvc": "4.14.0",
119
+ "@rollup/rollup-linux-x64-gnu": "4.14.0",
120
+ "@rollup/rollup-linux-x64-musl": "4.14.0"
119
121
  },
120
122
  "dependencies": {
121
123
  "@types/estree": "1.0.5"
@@ -143,13 +145,14 @@
143
145
  "@rollup/plugin-terser": "^0.4.4",
144
146
  "@rollup/plugin-typescript": "^11.1.6",
145
147
  "@rollup/pluginutils": "^5.1.0",
148
+ "@shikijs/vitepress-twoslash": "^1.2.1",
146
149
  "@types/eslint": "^8.56.6",
147
150
  "@types/inquirer": "^9.0.7",
148
151
  "@types/mocha": "^10.0.6",
149
152
  "@types/node": "~18.18.14",
150
153
  "@types/yargs-parser": "^21.0.3",
151
- "@typescript-eslint/eslint-plugin": "^7.3.1",
152
- "@typescript-eslint/parser": "^7.3.1",
154
+ "@typescript-eslint/eslint-plugin": "^7.4.0",
155
+ "@typescript-eslint/parser": "^7.4.0",
153
156
  "@vue/eslint-config-prettier": "^9.0.0",
154
157
  "@vue/eslint-config-typescript": "^13.0.0",
155
158
  "acorn": "^8.11.3",
@@ -168,7 +171,7 @@
168
171
  "eslint-plugin-import": "^2.29.1",
169
172
  "eslint-plugin-prettier": "^5.1.3",
170
173
  "eslint-plugin-unicorn": "^51.0.1",
171
- "eslint-plugin-vue": "^9.23.0",
174
+ "eslint-plugin-vue": "^9.24.0",
172
175
  "fixturify": "^3.0.0",
173
176
  "flru": "^1.0.2",
174
177
  "fs-extra": "^11.2.0",
@@ -197,9 +200,9 @@
197
200
  "systemjs": "^6.14.3",
198
201
  "terser": "^5.29.2",
199
202
  "tslib": "^2.6.2",
200
- "typescript": "^5.4.2",
201
- "vite": "^5.1.6",
202
- "vitepress": "^1.0.0-rc.45",
203
+ "typescript": "^5.4.3",
204
+ "vite": "^5.2.6",
205
+ "vitepress": "^1.0.1",
203
206
  "vue": "^3.4.21",
204
207
  "wasm-pack": "^0.12.1",
205
208
  "weak-napi": "^2.0.2",