rollup 4.19.1 → 4.20.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.19.1
5
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
4
+ Rollup.js v4.20.0
5
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
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.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
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.19.1";
19
+ var version = "4.20.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -958,8 +958,10 @@ class MagicString {
958
958
  update(start, end, content, options) {
959
959
  if (typeof content !== 'string') throw new TypeError('replacement content must be a string');
960
960
 
961
- while (start < 0) start += this.original.length;
962
- while (end < 0) end += this.original.length;
961
+ if (this.original.length !== 0) {
962
+ while (start < 0) start += this.original.length;
963
+ while (end < 0) end += this.original.length;
964
+ }
963
965
 
964
966
  if (end > this.original.length) throw new Error('end is out of bounds');
965
967
  if (start === end)
@@ -1055,8 +1057,10 @@ class MagicString {
1055
1057
  }
1056
1058
 
1057
1059
  remove(start, end) {
1058
- while (start < 0) start += this.original.length;
1059
- while (end < 0) end += this.original.length;
1060
+ if (this.original.length !== 0) {
1061
+ while (start < 0) start += this.original.length;
1062
+ while (end < 0) end += this.original.length;
1063
+ }
1060
1064
 
1061
1065
  if (start === end) return this;
1062
1066
 
@@ -1079,8 +1083,10 @@ class MagicString {
1079
1083
  }
1080
1084
 
1081
1085
  reset(start, end) {
1082
- while (start < 0) start += this.original.length;
1083
- while (end < 0) end += this.original.length;
1086
+ if (this.original.length !== 0) {
1087
+ while (start < 0) start += this.original.length;
1088
+ while (end < 0) end += this.original.length;
1089
+ }
1084
1090
 
1085
1091
  if (start === end) return this;
1086
1092
 
@@ -1142,8 +1148,10 @@ class MagicString {
1142
1148
  }
1143
1149
 
1144
1150
  slice(start = 0, end = this.original.length) {
1145
- while (start < 0) start += this.original.length;
1146
- while (end < 0) end += this.original.length;
1151
+ if (this.original.length !== 0) {
1152
+ while (start < 0) start += this.original.length;
1153
+ while (end < 0) end += this.original.length;
1154
+ }
1147
1155
 
1148
1156
  let result = '';
1149
1157
 
@@ -8891,6 +8899,12 @@ class MemberExpression extends NodeBase {
8891
8899
  return UnknownValue;
8892
8900
  }
8893
8901
  getLiteralValueAtPathAsChainElement(path, recursionTracker, origin) {
8902
+ if (this.variable) {
8903
+ return this.variable.getLiteralValueAtPath(path, recursionTracker, origin);
8904
+ }
8905
+ if (this.isUndefined) {
8906
+ return undefined;
8907
+ }
8894
8908
  return getChainElementLiteralValueAtPath(this, this.object, path, recursionTracker, origin);
8895
8909
  }
8896
8910
  getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin) {
@@ -18199,7 +18213,12 @@ function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, so
18199
18213
  url = sourcemapBaseUrl
18200
18214
  ? new URL(sourcemapFileName, sourcemapBaseUrl).toString()
18201
18215
  : sourcemapFileName;
18202
- pluginDriver.emitFile({ fileName, source: map.toString(), type: 'asset' });
18216
+ pluginDriver.emitFile({
18217
+ fileName,
18218
+ originalFileName: null,
18219
+ source: map.toString(),
18220
+ type: 'asset'
18221
+ });
18203
18222
  }
18204
18223
  return sourcemap === 'hidden' ? '' : `//# ${SOURCEMAPPING_URL}=${url}\n`;
18205
18224
  }
@@ -19301,10 +19320,10 @@ class GlobalScope extends Scope {
19301
19320
  }
19302
19321
  }
19303
19322
 
19304
- function generateAssetFileName(name, source, sourceHash, outputOptions, bundle) {
19323
+ function generateAssetFileName(name, source, originalFileName, sourceHash, outputOptions, bundle) {
19305
19324
  const emittedName = outputOptions.sanitizeFileName(name || 'asset');
19306
19325
  return makeUnique(renderNamePattern(typeof outputOptions.assetFileNames === 'function'
19307
- ? outputOptions.assetFileNames({ name, source, type: 'asset' })
19326
+ ? outputOptions.assetFileNames({ name, originalFileName, source, type: 'asset' })
19308
19327
  : outputOptions.assetFileNames, 'output.assetFileNames', {
19309
19328
  ext: () => extname(emittedName).slice(1),
19310
19329
  extname: () => extname(emittedName),
@@ -19496,10 +19515,15 @@ class FileEmitter {
19496
19515
  const source = emittedAsset.source === undefined
19497
19516
  ? undefined
19498
19517
  : getValidSource(emittedAsset.source, emittedAsset, null);
19518
+ const originalFileName = emittedAsset.originalFileName || null;
19519
+ if (typeof originalFileName === 'string') {
19520
+ this.graph.watchFiles[originalFileName] = true;
19521
+ }
19499
19522
  const consumedAsset = {
19500
19523
  fileName: emittedAsset.fileName,
19501
19524
  name: emittedAsset.name,
19502
19525
  needsCodeReference: !!emittedAsset.needsCodeReference,
19526
+ originalFileName,
19503
19527
  referenceId: '',
19504
19528
  source,
19505
19529
  type: 'asset'
@@ -19571,13 +19595,13 @@ class FileEmitter {
19571
19595
  return referenceId;
19572
19596
  }
19573
19597
  finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, getHash, outputOptions }) {
19574
- let { fileName, needsCodeReference, referenceId } = consumedFile;
19598
+ let { fileName, needsCodeReference, originalFileName, referenceId } = consumedFile;
19575
19599
  // Deduplicate assets if an explicit fileName is not provided
19576
19600
  if (!fileName) {
19577
19601
  const sourceHash = getHash(source);
19578
19602
  fileName = fileNamesBySource.get(sourceHash);
19579
19603
  if (!fileName) {
19580
- fileName = generateAssetFileName(consumedFile.name, source, sourceHash, outputOptions, bundle);
19604
+ fileName = generateAssetFileName(consumedFile.name, source, originalFileName, sourceHash, outputOptions, bundle);
19581
19605
  fileNamesBySource.set(sourceHash, fileName);
19582
19606
  }
19583
19607
  }
@@ -19593,6 +19617,7 @@ class FileEmitter {
19593
19617
  fileName,
19594
19618
  name: consumedFile.name,
19595
19619
  needsCodeReference,
19620
+ originalFileName,
19596
19621
  source,
19597
19622
  type: 'asset'
19598
19623
  };
@@ -19604,7 +19629,7 @@ class FileEmitter {
19604
19629
  let needsCodeReference = true;
19605
19630
  for (const consumedFile of consumedFiles) {
19606
19631
  needsCodeReference &&= consumedFile.needsCodeReference;
19607
- const assetFileName = generateAssetFileName(consumedFile.name, consumedFile.source, sourceHash, outputOptions, bundle);
19632
+ const assetFileName = generateAssetFileName(consumedFile.name, consumedFile.source, consumedFile.originalFileName, sourceHash, outputOptions, bundle);
19608
19633
  if (!fileName ||
19609
19634
  assetFileName.length < fileName.length ||
19610
19635
  (assetFileName.length === fileName.length && assetFileName < fileName)) {
@@ -19622,6 +19647,7 @@ class FileEmitter {
19622
19647
  fileName,
19623
19648
  name: usedConsumedFile.name,
19624
19649
  needsCodeReference,
19650
+ originalFileName: usedConsumedFile.originalFileName,
19625
19651
  source: usedConsumedFile.source,
19626
19652
  type: 'asset'
19627
19653
  };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
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.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -161,6 +161,7 @@ export interface EmittedAsset {
161
161
  fileName?: string;
162
162
  name?: string;
163
163
  needsCodeReference?: boolean;
164
+ originalFileName?: string | null;
164
165
  source?: string | Uint8Array;
165
166
  type: 'asset';
166
167
  }
@@ -821,6 +822,7 @@ export interface SerializedTimings {
821
822
 
822
823
  export interface PreRenderedAsset {
823
824
  name: string | undefined;
825
+ originalFileName: string | null;
824
826
  source: string | Uint8Array;
825
827
  type: 'asset';
826
828
  }
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -490,7 +490,7 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
490
490
  const { bundleConfigAsCjs, configPlugin, silent } = commandOptions;
491
491
  const warnings = batchWarnings(commandOptions);
492
492
  const inputOptions = {
493
- external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
493
+ external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5) === '.json',
494
494
  input: fileName,
495
495
  onwarn: warnings.add,
496
496
  plugins: [],
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
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.19.1";
34
+ var version = "4.20.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -203,10 +203,10 @@ function makeUnique(name, { [lowercaseBundleKeys]: reservedLowercaseBundleKeys }
203
203
  return uniqueName;
204
204
  }
205
205
 
206
- function generateAssetFileName(name, source, sourceHash, outputOptions, bundle) {
206
+ function generateAssetFileName(name, source, originalFileName, sourceHash, outputOptions, bundle) {
207
207
  const emittedName = outputOptions.sanitizeFileName(name || 'asset');
208
208
  return makeUnique(renderNamePattern(typeof outputOptions.assetFileNames === 'function'
209
- ? outputOptions.assetFileNames({ name, source, type: 'asset' })
209
+ ? outputOptions.assetFileNames({ name, originalFileName, source, type: 'asset' })
210
210
  : outputOptions.assetFileNames, 'output.assetFileNames', {
211
211
  ext: () => path$2.extname(emittedName).slice(1),
212
212
  extname: () => path$2.extname(emittedName),
@@ -398,10 +398,15 @@ class FileEmitter {
398
398
  const source = emittedAsset.source === undefined
399
399
  ? undefined
400
400
  : getValidSource(emittedAsset.source, emittedAsset, null);
401
+ const originalFileName = emittedAsset.originalFileName || null;
402
+ if (typeof originalFileName === 'string') {
403
+ this.graph.watchFiles[originalFileName] = true;
404
+ }
401
405
  const consumedAsset = {
402
406
  fileName: emittedAsset.fileName,
403
407
  name: emittedAsset.name,
404
408
  needsCodeReference: !!emittedAsset.needsCodeReference,
409
+ originalFileName,
405
410
  referenceId: '',
406
411
  source,
407
412
  type: 'asset'
@@ -473,13 +478,13 @@ class FileEmitter {
473
478
  return referenceId;
474
479
  }
475
480
  finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, getHash, outputOptions }) {
476
- let { fileName, needsCodeReference, referenceId } = consumedFile;
481
+ let { fileName, needsCodeReference, originalFileName, referenceId } = consumedFile;
477
482
  // Deduplicate assets if an explicit fileName is not provided
478
483
  if (!fileName) {
479
484
  const sourceHash = getHash(source);
480
485
  fileName = fileNamesBySource.get(sourceHash);
481
486
  if (!fileName) {
482
- fileName = generateAssetFileName(consumedFile.name, source, sourceHash, outputOptions, bundle);
487
+ fileName = generateAssetFileName(consumedFile.name, source, originalFileName, sourceHash, outputOptions, bundle);
483
488
  fileNamesBySource.set(sourceHash, fileName);
484
489
  }
485
490
  }
@@ -495,6 +500,7 @@ class FileEmitter {
495
500
  fileName,
496
501
  name: consumedFile.name,
497
502
  needsCodeReference,
503
+ originalFileName,
498
504
  source,
499
505
  type: 'asset'
500
506
  };
@@ -506,7 +512,7 @@ class FileEmitter {
506
512
  let needsCodeReference = true;
507
513
  for (const consumedFile of consumedFiles) {
508
514
  needsCodeReference &&= consumedFile.needsCodeReference;
509
- const assetFileName = generateAssetFileName(consumedFile.name, consumedFile.source, sourceHash, outputOptions, bundle);
515
+ const assetFileName = generateAssetFileName(consumedFile.name, consumedFile.source, consumedFile.originalFileName, sourceHash, outputOptions, bundle);
510
516
  if (!fileName ||
511
517
  assetFileName.length < fileName.length ||
512
518
  (assetFileName.length === fileName.length && assetFileName < fileName)) {
@@ -524,6 +530,7 @@ class FileEmitter {
524
530
  fileName,
525
531
  name: usedConsumedFile.name,
526
532
  needsCodeReference,
533
+ originalFileName: usedConsumedFile.originalFileName,
527
534
  source: usedConsumedFile.source,
528
535
  type: 'asset'
529
536
  };
@@ -2430,8 +2437,10 @@ class MagicString {
2430
2437
  update(start, end, content, options) {
2431
2438
  if (typeof content !== 'string') throw new TypeError('replacement content must be a string');
2432
2439
 
2433
- while (start < 0) start += this.original.length;
2434
- while (end < 0) end += this.original.length;
2440
+ if (this.original.length !== 0) {
2441
+ while (start < 0) start += this.original.length;
2442
+ while (end < 0) end += this.original.length;
2443
+ }
2435
2444
 
2436
2445
  if (end > this.original.length) throw new Error('end is out of bounds');
2437
2446
  if (start === end)
@@ -2527,8 +2536,10 @@ class MagicString {
2527
2536
  }
2528
2537
 
2529
2538
  remove(start, end) {
2530
- while (start < 0) start += this.original.length;
2531
- while (end < 0) end += this.original.length;
2539
+ if (this.original.length !== 0) {
2540
+ while (start < 0) start += this.original.length;
2541
+ while (end < 0) end += this.original.length;
2542
+ }
2532
2543
 
2533
2544
  if (start === end) return this;
2534
2545
 
@@ -2551,8 +2562,10 @@ class MagicString {
2551
2562
  }
2552
2563
 
2553
2564
  reset(start, end) {
2554
- while (start < 0) start += this.original.length;
2555
- while (end < 0) end += this.original.length;
2565
+ if (this.original.length !== 0) {
2566
+ while (start < 0) start += this.original.length;
2567
+ while (end < 0) end += this.original.length;
2568
+ }
2556
2569
 
2557
2570
  if (start === end) return this;
2558
2571
 
@@ -2614,8 +2627,10 @@ class MagicString {
2614
2627
  }
2615
2628
 
2616
2629
  slice(start = 0, end = this.original.length) {
2617
- while (start < 0) start += this.original.length;
2618
- while (end < 0) end += this.original.length;
2630
+ if (this.original.length !== 0) {
2631
+ while (start < 0) start += this.original.length;
2632
+ while (end < 0) end += this.original.length;
2633
+ }
2619
2634
 
2620
2635
  let result = '';
2621
2636
 
@@ -10333,6 +10348,12 @@ class MemberExpression extends NodeBase {
10333
10348
  return UnknownValue;
10334
10349
  }
10335
10350
  getLiteralValueAtPathAsChainElement(path, recursionTracker, origin) {
10351
+ if (this.variable) {
10352
+ return this.variable.getLiteralValueAtPath(path, recursionTracker, origin);
10353
+ }
10354
+ if (this.isUndefined) {
10355
+ return undefined;
10356
+ }
10336
10357
  return getChainElementLiteralValueAtPath(this, this.object, path, recursionTracker, origin);
10337
10358
  }
10338
10359
  getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin) {
@@ -19509,7 +19530,12 @@ function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, so
19509
19530
  url = sourcemapBaseUrl
19510
19531
  ? new URL(sourcemapFileName, sourcemapBaseUrl).toString()
19511
19532
  : sourcemapFileName;
19512
- pluginDriver.emitFile({ fileName, source: map.toString(), type: 'asset' });
19533
+ pluginDriver.emitFile({
19534
+ fileName,
19535
+ originalFileName: null,
19536
+ source: map.toString(),
19537
+ type: 'asset'
19538
+ });
19513
19539
  }
19514
19540
  return sourcemap === 'hidden' ? '' : `//# ${SOURCEMAPPING_URL}=${url}\n`;
19515
19541
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.19.1
4
- Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
3
+ Rollup.js v4.20.0
4
+ Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
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.19.1",
3
+ "version": "4.20.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -107,22 +107,22 @@
107
107
  "homepage": "https://rollupjs.org/",
108
108
  "optionalDependencies": {
109
109
  "fsevents": "~2.3.2",
110
- "@rollup/rollup-darwin-arm64": "4.19.1",
111
- "@rollup/rollup-android-arm64": "4.19.1",
112
- "@rollup/rollup-win32-arm64-msvc": "4.19.1",
113
- "@rollup/rollup-linux-arm64-gnu": "4.19.1",
114
- "@rollup/rollup-linux-arm64-musl": "4.19.1",
115
- "@rollup/rollup-android-arm-eabi": "4.19.1",
116
- "@rollup/rollup-linux-arm-gnueabihf": "4.19.1",
117
- "@rollup/rollup-linux-arm-musleabihf": "4.19.1",
118
- "@rollup/rollup-win32-ia32-msvc": "4.19.1",
119
- "@rollup/rollup-linux-riscv64-gnu": "4.19.1",
120
- "@rollup/rollup-linux-powerpc64le-gnu": "4.19.1",
121
- "@rollup/rollup-linux-s390x-gnu": "4.19.1",
122
- "@rollup/rollup-darwin-x64": "4.19.1",
123
- "@rollup/rollup-win32-x64-msvc": "4.19.1",
124
- "@rollup/rollup-linux-x64-gnu": "4.19.1",
125
- "@rollup/rollup-linux-x64-musl": "4.19.1"
110
+ "@rollup/rollup-darwin-arm64": "4.20.0",
111
+ "@rollup/rollup-android-arm64": "4.20.0",
112
+ "@rollup/rollup-win32-arm64-msvc": "4.20.0",
113
+ "@rollup/rollup-linux-arm64-gnu": "4.20.0",
114
+ "@rollup/rollup-linux-arm64-musl": "4.20.0",
115
+ "@rollup/rollup-android-arm-eabi": "4.20.0",
116
+ "@rollup/rollup-linux-arm-gnueabihf": "4.20.0",
117
+ "@rollup/rollup-linux-arm-musleabihf": "4.20.0",
118
+ "@rollup/rollup-win32-ia32-msvc": "4.20.0",
119
+ "@rollup/rollup-linux-riscv64-gnu": "4.20.0",
120
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0",
121
+ "@rollup/rollup-linux-s390x-gnu": "4.20.0",
122
+ "@rollup/rollup-darwin-x64": "4.20.0",
123
+ "@rollup/rollup-win32-x64-msvc": "4.20.0",
124
+ "@rollup/rollup-linux-x64-gnu": "4.20.0",
125
+ "@rollup/rollup-linux-x64-musl": "4.20.0"
126
126
  },
127
127
  "dependencies": {
128
128
  "@types/estree": "1.0.5"
@@ -137,7 +137,7 @@
137
137
  "@codemirror/language": "^6.10.2",
138
138
  "@codemirror/search": "^6.5.6",
139
139
  "@codemirror/state": "^6.4.1",
140
- "@codemirror/view": "^6.28.6",
140
+ "@codemirror/view": "^6.29.1",
141
141
  "@jridgewell/sourcemap-codec": "^1.5.0",
142
142
  "@mermaid-js/mermaid-cli": "^10.9.1",
143
143
  "@napi-rs/cli": "^2.18.4",
@@ -150,15 +150,15 @@
150
150
  "@rollup/plugin-terser": "^0.4.4",
151
151
  "@rollup/plugin-typescript": "^11.1.6",
152
152
  "@rollup/pluginutils": "^5.1.0",
153
- "@shikijs/vitepress-twoslash": "^1.11.0",
153
+ "@shikijs/vitepress-twoslash": "^1.12.0",
154
154
  "@types/eslint": "^8.56.11",
155
155
  "@types/inquirer": "^9.0.7",
156
156
  "@types/mocha": "^10.0.7",
157
157
  "@types/node": "~18.18.14",
158
158
  "@types/semver": "^7.5.8",
159
159
  "@types/yargs-parser": "^21.0.3",
160
- "@typescript-eslint/eslint-plugin": "^7.17.0",
161
- "@typescript-eslint/parser": "^7.17.0",
160
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
161
+ "@typescript-eslint/parser": "^7.18.0",
162
162
  "@vue/eslint-config-prettier": "^9.0.0",
163
163
  "@vue/eslint-config-typescript": "^13.0.0",
164
164
  "acorn": "^8.12.1",
@@ -177,28 +177,28 @@
177
177
  "eslint-config-prettier": "^9.1.0",
178
178
  "eslint-plugin-import": "^2.29.1",
179
179
  "eslint-plugin-prettier": "^5.2.1",
180
- "eslint-plugin-unicorn": "^54.0.0",
180
+ "eslint-plugin-unicorn": "^55.0.0",
181
181
  "eslint-plugin-vue": "^9.27.0",
182
182
  "fixturify": "^3.0.0",
183
183
  "flru": "^1.0.2",
184
184
  "fs-extra": "^11.2.0",
185
185
  "github-api": "^3.4.0",
186
- "husky": "^9.1.1",
187
- "inquirer": "^10.1.2",
186
+ "husky": "^9.1.4",
187
+ "inquirer": "^10.1.5",
188
188
  "is-reference": "^3.0.2",
189
189
  "lint-staged": "^15.2.7",
190
190
  "locate-character": "^3.0.0",
191
- "magic-string": "^0.30.10",
191
+ "magic-string": "^0.30.11",
192
192
  "mocha": "^10.7.0",
193
193
  "nodemon": "^3.1.4",
194
194
  "npm-audit-resolver": "^3.0.0-RC.0",
195
195
  "nyc": "^17.0.0",
196
- "pinia": "^2.1.7",
196
+ "pinia": "^2.2.0",
197
197
  "prettier": "^3.3.3",
198
198
  "pretty-bytes": "^6.1.1",
199
- "pretty-ms": "^9.0.0",
199
+ "pretty-ms": "^9.1.0",
200
200
  "requirejs": "^2.3.7",
201
- "rollup": "^4.19.0",
201
+ "rollup": "^4.19.1",
202
202
  "rollup-plugin-license": "^3.5.2",
203
203
  "rollup-plugin-string": "^3.0.0",
204
204
  "semver": "^7.6.3",
@@ -210,9 +210,9 @@
210
210
  "terser": "^5.31.3",
211
211
  "tslib": "^2.6.3",
212
212
  "typescript": "^5.5.4",
213
- "vite": "^5.3.4",
213
+ "vite": "^5.3.5",
214
214
  "vitepress": "^1.3.1",
215
- "vue": "^3.4.33",
215
+ "vue": "^3.4.34",
216
216
  "wasm-pack": "^0.13.0",
217
217
  "yargs-parser": "^21.1.1"
218
218
  },