rollup 3.15.1-0 → 3.16.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
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.15.1-0
6
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
5
+ Rollup.js v3.16.0
6
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/pr
16
16
  import { EventEmitter } from 'node:events';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version$1 = "3.15.1-0";
19
+ var version$1 = "3.16.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -370,6 +370,9 @@ class SourceMap {
370
370
  this.sourcesContent = properties.sourcesContent;
371
371
  this.names = properties.names;
372
372
  this.mappings = encode(properties.mappings);
373
+ if (typeof properties.x_google_ignoreList !== 'undefined') {
374
+ this.x_google_ignoreList = properties.x_google_ignoreList;
375
+ }
373
376
  }
374
377
 
375
378
  toString() {
@@ -16286,12 +16289,17 @@ function getChunkModulesBySignature(assignedEntriesByModule, allEntries) {
16286
16289
  * following the above rules (a) and (b), starting with the smallest chunks
16287
16290
  * to look for possible merge targets.
16288
16291
  */
16292
+ // TODO instead of picking the "closest" chunk, we could actually use a
16293
+ // technique similar to what we do for side effects to compare the size of the
16294
+ // static dependencies that are not part of the correlated dependencies
16289
16295
  function getOptimizedChunks(chunkModulesBySignature, numberOfEntries, minChunkSize) {
16290
16296
  timeStart('optimize chunks', 3);
16291
16297
  const chunkPartition = getPartitionedChunks(chunkModulesBySignature, numberOfEntries, minChunkSize);
16298
+ console.log('Before eliminating small chunks, there were\n', Object.keys(chunkModulesBySignature).length, 'chunks, of which\n', chunkPartition.small.size, 'were below minChunkSize.');
16292
16299
  if (chunkPartition.small.size > 0) {
16293
16300
  mergeChunks(chunkPartition, minChunkSize);
16294
16301
  }
16302
+ console.log('After merging chunks,\n', chunkPartition.small.size + chunkPartition.big.size, 'chunks remain, of which\n', chunkPartition.small.size, 'are below minChunkSize.');
16295
16303
  timeEnd('optimize chunks', 3);
16296
16304
  return [...chunkPartition.small, ...chunkPartition.big];
16297
16305
  }
@@ -16435,6 +16443,7 @@ function mergeChunks(chunkPartition, minChunkSize) {
16435
16443
  dependentChunk.dependencies.add(closestChunk);
16436
16444
  }
16437
16445
  dependencies.delete(closestChunk);
16446
+ dependentChunks.delete(closestChunk);
16438
16447
  getChunksInPartition(closestChunk, minChunkSize, chunkPartition).add(closestChunk);
16439
16448
  }
16440
16449
  }
@@ -16850,7 +16859,7 @@ async function transformChunk(magicString, fileName, usedModules, chunkGraph, op
16850
16859
  }
16851
16860
  return result.code;
16852
16861
  });
16853
- const { compact, dir, file, sourcemap, sourcemapExcludeSources, sourcemapFile, sourcemapPathTransform } = options;
16862
+ const { compact, dir, file, sourcemap, sourcemapExcludeSources, sourcemapFile, sourcemapPathTransform, sourcemapIgnoreList } = options;
16854
16863
  if (!compact && code[code.length - 1] !== '\n')
16855
16864
  code += '\n';
16856
16865
  if (sourcemap) {
@@ -16864,18 +16873,31 @@ async function transformChunk(magicString, fileName, usedModules, chunkGraph, op
16864
16873
  resultingFile = resolve(fileName);
16865
16874
  const decodedMap = magicString.generateDecodedMap({});
16866
16875
  map = collapseSourcemaps(resultingFile, decodedMap, usedModules, sourcemapChain, sourcemapExcludeSources, onwarn);
16867
- map.sources = map.sources
16868
- .map(sourcePath => {
16876
+ for (let sourcesIndex = 0; sourcesIndex < map.sources.length; ++sourcesIndex) {
16877
+ let sourcePath = map.sources[sourcesIndex];
16878
+ const sourcemapPath = `${resultingFile}.map`;
16879
+ if (sourcemapIgnoreList) {
16880
+ const ignoreList = sourcemapIgnoreList(sourcePath, sourcemapPath);
16881
+ if (typeof ignoreList !== 'boolean') {
16882
+ error(errorFailedValidation('sourcemapIgnoreList function must return a boolean.'));
16883
+ }
16884
+ if (ignoreList) {
16885
+ if (map.x_google_ignoreList === undefined) {
16886
+ map.x_google_ignoreList = [];
16887
+ }
16888
+ if (!map.x_google_ignoreList.includes(sourcesIndex)) {
16889
+ map.x_google_ignoreList.push(sourcesIndex);
16890
+ }
16891
+ }
16892
+ }
16869
16893
  if (sourcemapPathTransform) {
16870
- const newSourcePath = sourcemapPathTransform(sourcePath, `${resultingFile}.map`);
16871
- if (typeof newSourcePath !== 'string') {
16894
+ sourcePath = sourcemapPathTransform(sourcePath, sourcemapPath);
16895
+ if (typeof sourcePath !== 'string') {
16872
16896
  error(errorFailedValidation(`sourcemapPathTransform function must return a string.`));
16873
16897
  }
16874
- return newSourcePath;
16875
16898
  }
16876
- return sourcePath;
16877
- })
16878
- .map(normalize);
16899
+ map.sources[sourcesIndex] = normalize(sourcePath);
16900
+ }
16879
16901
  timeEnd('sourcemaps', 3);
16880
16902
  }
16881
16903
  return {
@@ -24242,7 +24264,8 @@ class Graph {
24242
24264
  }
24243
24265
  }
24244
24266
  includeStatements() {
24245
- for (const module of [...this.entryModules, ...this.implicitEntryModules]) {
24267
+ const entryModules = [...this.entryModules, ...this.implicitEntryModules];
24268
+ for (const module of entryModules) {
24246
24269
  markModuleAndImpureDependenciesAsExecuted(module);
24247
24270
  }
24248
24271
  if (this.options.treeshake) {
@@ -24263,7 +24286,7 @@ class Graph {
24263
24286
  if (treeshakingPass === 1) {
24264
24287
  // We only include exports after the first pass to avoid issues with
24265
24288
  // the TDZ detection logic
24266
- for (const module of [...this.entryModules, ...this.implicitEntryModules]) {
24289
+ for (const module of entryModules) {
24267
24290
  if (module.preserveSignature !== false) {
24268
24291
  module.includeAllExports(false);
24269
24292
  this.needsTreeshakingPass = true;
@@ -24751,7 +24774,9 @@ const getAcornInjectPlugins = (config) => [
24751
24774
  importAssertions,
24752
24775
  ...ensureArray(config.acornInjectPlugins)
24753
24776
  ];
24754
- const getCache = (config) => config.cache?.cache || config.cache;
24777
+ const getCache = (config) => config.cache === true // `true` is the default
24778
+ ? undefined
24779
+ : config.cache?.cache || config.cache;
24755
24780
  const getIdMatcher = (option) => {
24756
24781
  if (option === true) {
24757
24782
  return () => true;
@@ -24935,6 +24960,7 @@ async function normalizeOutputOptions(config, inputOptions, unsetInputOptions) {
24935
24960
  sourcemapBaseUrl: getSourcemapBaseUrl(config),
24936
24961
  sourcemapExcludeSources: config.sourcemapExcludeSources || false,
24937
24962
  sourcemapFile: config.sourcemapFile,
24963
+ sourcemapIgnoreList: config.sourcemapIgnoreList,
24938
24964
  sourcemapPathTransform: config.sourcemapPathTransform,
24939
24965
  strict: config.strict ?? true,
24940
24966
  systemNullSetters: config.systemNullSetters ?? true,
@@ -25488,7 +25514,7 @@ async function mergeOptions(config, rawCommandOptions = EMPTY_COMMAND_OPTIONS, d
25488
25514
  const outputOptions = await Promise.all(outputOptionsArray.map(singleOutputOptions => mergeOutputOptions(singleOutputOptions, command, warn)));
25489
25515
  warnUnknownOptions(command, [
25490
25516
  ...Object.keys(inputOptions),
25491
- ...Object.keys(outputOptions[0]).filter(option => option !== 'sourcemapPathTransform'),
25517
+ ...Object.keys(outputOptions[0]).filter(option => option !== 'sourcemapIgnoreList' && option !== 'sourcemapPathTransform'),
25492
25518
  ...Object.keys(commandAliases),
25493
25519
  'bundleConfigAsCjs',
25494
25520
  'config',
@@ -25623,6 +25649,7 @@ async function mergeOutputOptions(config, overrides, warn) {
25623
25649
  sourcemapBaseUrl: getOption('sourcemapBaseUrl'),
25624
25650
  sourcemapExcludeSources: getOption('sourcemapExcludeSources'),
25625
25651
  sourcemapFile: getOption('sourcemapFile'),
25652
+ sourcemapIgnoreList: getOption('sourcemapIgnoreList'),
25626
25653
  sourcemapPathTransform: getOption('sourcemapPathTransform'),
25627
25654
  strict: getOption('strict'),
25628
25655
  systemNullSetters: getOption('systemNullSetters'),
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -52,8 +52,9 @@ export interface ExistingDecodedSourceMap {
52
52
  names: string[];
53
53
  sourceRoot?: string;
54
54
  sources: string[];
55
- sourcesContent?: string[];
55
+ sourcesContent?: (string | null)[];
56
56
  version: number;
57
+ x_google_ignoreList?: number[];
57
58
  }
58
59
 
59
60
  export interface ExistingRawSourceMap {
@@ -62,8 +63,9 @@ export interface ExistingRawSourceMap {
62
63
  names: string[];
63
64
  sourceRoot?: string;
64
65
  sources: string[];
65
- sourcesContent?: string[];
66
+ sourcesContent?: (string | null)[];
66
67
  version: number;
68
+ x_google_ignoreList?: number[];
67
69
  }
68
70
 
69
71
  export type DecodedSourceMapOrMissing =
@@ -79,7 +81,7 @@ export interface SourceMap {
79
81
  mappings: string;
80
82
  names: string[];
81
83
  sources: string[];
82
- sourcesContent: string[];
84
+ sourcesContent: (string | null)[];
83
85
  version: number;
84
86
  toString(): string;
85
87
  toUrl(): string;
@@ -507,13 +509,17 @@ export type SourcemapPathTransformOption = (
507
509
  relativeSourcePath: string,
508
510
  sourcemapPath: string
509
511
  ) => string;
512
+ export type SourcemapIgnoreListOption = (
513
+ relativeSourcePath: string,
514
+ sourcemapPath: string
515
+ ) => boolean;
510
516
 
511
517
  export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputPluginOption[]>;
512
518
 
513
519
  export interface InputOptions {
514
520
  acorn?: Record<string, unknown>;
515
521
  acornInjectPlugins?: (() => unknown)[] | (() => unknown);
516
- cache?: false | RollupCache;
522
+ cache?: boolean | RollupCache;
517
523
  context?: string;
518
524
  experimentalCacheExpiry?: number;
519
525
  external?: ExternalOption;
@@ -683,6 +689,7 @@ export interface OutputOptions {
683
689
  sourcemapBaseUrl?: string;
684
690
  sourcemapExcludeSources?: boolean;
685
691
  sourcemapFile?: string;
692
+ sourcemapIgnoreList?: SourcemapIgnoreListOption;
686
693
  sourcemapPathTransform?: SourcemapPathTransformOption;
687
694
  strict?: boolean;
688
695
  systemNullSetters?: boolean;
@@ -736,6 +743,7 @@ export interface NormalizedOutputOptions {
736
743
  sourcemapBaseUrl: string | undefined;
737
744
  sourcemapExcludeSources: boolean;
738
745
  sourcemapFile: string | undefined;
746
+ sourcemapIgnoreList: SourcemapIgnoreListOption | undefined;
739
747
  sourcemapPathTransform: SourcemapPathTransformOption | undefined;
740
748
  strict: boolean;
741
749
  systemNullSetters: boolean;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
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$1 = "3.15.1-0";
34
+ var version$1 = "3.16.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -973,7 +973,7 @@ async function mergeOptions(config, rawCommandOptions = EMPTY_COMMAND_OPTIONS, d
973
973
  const outputOptions = await Promise.all(outputOptionsArray.map(singleOutputOptions => mergeOutputOptions(singleOutputOptions, command, warn)));
974
974
  warnUnknownOptions(command, [
975
975
  ...Object.keys(inputOptions),
976
- ...Object.keys(outputOptions[0]).filter(option => option !== 'sourcemapPathTransform'),
976
+ ...Object.keys(outputOptions[0]).filter(option => option !== 'sourcemapIgnoreList' && option !== 'sourcemapPathTransform'),
977
977
  ...Object.keys(commandAliases),
978
978
  'bundleConfigAsCjs',
979
979
  'config',
@@ -1114,6 +1114,7 @@ async function mergeOutputOptions(config, overrides, warn) {
1114
1114
  sourcemapBaseUrl: getOption('sourcemapBaseUrl'),
1115
1115
  sourcemapExcludeSources: getOption('sourcemapExcludeSources'),
1116
1116
  sourcemapFile: getOption('sourcemapFile'),
1117
+ sourcemapIgnoreList: getOption('sourcemapIgnoreList'),
1117
1118
  sourcemapPathTransform: getOption('sourcemapPathTransform'),
1118
1119
  strict: getOption('strict'),
1119
1120
  systemNullSetters: getOption('systemNullSetters'),
@@ -1641,6 +1642,9 @@ class SourceMap {
1641
1642
  this.sourcesContent = properties.sourcesContent;
1642
1643
  this.names = properties.names;
1643
1644
  this.mappings = encode(properties.mappings);
1645
+ if (typeof properties.x_google_ignoreList !== 'undefined') {
1646
+ this.x_google_ignoreList = properties.x_google_ignoreList;
1647
+ }
1644
1648
  }
1645
1649
 
1646
1650
  toString() {
@@ -16805,12 +16809,17 @@ function getChunkModulesBySignature(assignedEntriesByModule, allEntries) {
16805
16809
  * following the above rules (a) and (b), starting with the smallest chunks
16806
16810
  * to look for possible merge targets.
16807
16811
  */
16812
+ // TODO instead of picking the "closest" chunk, we could actually use a
16813
+ // technique similar to what we do for side effects to compare the size of the
16814
+ // static dependencies that are not part of the correlated dependencies
16808
16815
  function getOptimizedChunks(chunkModulesBySignature, numberOfEntries, minChunkSize) {
16809
16816
  timeStart('optimize chunks', 3);
16810
16817
  const chunkPartition = getPartitionedChunks(chunkModulesBySignature, numberOfEntries, minChunkSize);
16818
+ console.log('Before eliminating small chunks, there were\n', Object.keys(chunkModulesBySignature).length, 'chunks, of which\n', chunkPartition.small.size, 'were below minChunkSize.');
16811
16819
  if (chunkPartition.small.size > 0) {
16812
16820
  mergeChunks(chunkPartition, minChunkSize);
16813
16821
  }
16822
+ console.log('After merging chunks,\n', chunkPartition.small.size + chunkPartition.big.size, 'chunks remain, of which\n', chunkPartition.small.size, 'are below minChunkSize.');
16814
16823
  timeEnd('optimize chunks', 3);
16815
16824
  return [...chunkPartition.small, ...chunkPartition.big];
16816
16825
  }
@@ -16954,6 +16963,7 @@ function mergeChunks(chunkPartition, minChunkSize) {
16954
16963
  dependentChunk.dependencies.add(closestChunk);
16955
16964
  }
16956
16965
  dependencies.delete(closestChunk);
16966
+ dependentChunks.delete(closestChunk);
16957
16967
  getChunksInPartition(closestChunk, minChunkSize, chunkPartition).add(closestChunk);
16958
16968
  }
16959
16969
  }
@@ -17369,7 +17379,7 @@ async function transformChunk(magicString, fileName, usedModules, chunkGraph, op
17369
17379
  }
17370
17380
  return result.code;
17371
17381
  });
17372
- const { compact, dir, file, sourcemap, sourcemapExcludeSources, sourcemapFile, sourcemapPathTransform } = options;
17382
+ const { compact, dir, file, sourcemap, sourcemapExcludeSources, sourcemapFile, sourcemapPathTransform, sourcemapIgnoreList } = options;
17373
17383
  if (!compact && code[code.length - 1] !== '\n')
17374
17384
  code += '\n';
17375
17385
  if (sourcemap) {
@@ -17383,18 +17393,31 @@ async function transformChunk(magicString, fileName, usedModules, chunkGraph, op
17383
17393
  resultingFile = node_path.resolve(fileName);
17384
17394
  const decodedMap = magicString.generateDecodedMap({});
17385
17395
  map = collapseSourcemaps(resultingFile, decodedMap, usedModules, sourcemapChain, sourcemapExcludeSources, onwarn);
17386
- map.sources = map.sources
17387
- .map(sourcePath => {
17396
+ for (let sourcesIndex = 0; sourcesIndex < map.sources.length; ++sourcesIndex) {
17397
+ let sourcePath = map.sources[sourcesIndex];
17398
+ const sourcemapPath = `${resultingFile}.map`;
17399
+ if (sourcemapIgnoreList) {
17400
+ const ignoreList = sourcemapIgnoreList(sourcePath, sourcemapPath);
17401
+ if (typeof ignoreList !== 'boolean') {
17402
+ error(errorFailedValidation('sourcemapIgnoreList function must return a boolean.'));
17403
+ }
17404
+ if (ignoreList) {
17405
+ if (map.x_google_ignoreList === undefined) {
17406
+ map.x_google_ignoreList = [];
17407
+ }
17408
+ if (!map.x_google_ignoreList.includes(sourcesIndex)) {
17409
+ map.x_google_ignoreList.push(sourcesIndex);
17410
+ }
17411
+ }
17412
+ }
17388
17413
  if (sourcemapPathTransform) {
17389
- const newSourcePath = sourcemapPathTransform(sourcePath, `${resultingFile}.map`);
17390
- if (typeof newSourcePath !== 'string') {
17414
+ sourcePath = sourcemapPathTransform(sourcePath, sourcemapPath);
17415
+ if (typeof sourcePath !== 'string') {
17391
17416
  error(errorFailedValidation(`sourcemapPathTransform function must return a string.`));
17392
17417
  }
17393
- return newSourcePath;
17394
17418
  }
17395
- return sourcePath;
17396
- })
17397
- .map(normalize);
17419
+ map.sources[sourcesIndex] = normalize(sourcePath);
17420
+ }
17398
17421
  timeEnd('sourcemaps', 3);
17399
17422
  }
17400
17423
  return {
@@ -24761,7 +24784,8 @@ class Graph {
24761
24784
  }
24762
24785
  }
24763
24786
  includeStatements() {
24764
- for (const module of [...this.entryModules, ...this.implicitEntryModules]) {
24787
+ const entryModules = [...this.entryModules, ...this.implicitEntryModules];
24788
+ for (const module of entryModules) {
24765
24789
  markModuleAndImpureDependenciesAsExecuted(module);
24766
24790
  }
24767
24791
  if (this.options.treeshake) {
@@ -24782,7 +24806,7 @@ class Graph {
24782
24806
  if (treeshakingPass === 1) {
24783
24807
  // We only include exports after the first pass to avoid issues with
24784
24808
  // the TDZ detection logic
24785
- for (const module of [...this.entryModules, ...this.implicitEntryModules]) {
24809
+ for (const module of entryModules) {
24786
24810
  if (module.preserveSignature !== false) {
24787
24811
  module.includeAllExports(false);
24788
24812
  this.needsTreeshakingPass = true;
@@ -25174,7 +25198,9 @@ const getAcornInjectPlugins = (config) => [
25174
25198
  importAssertions,
25175
25199
  ...ensureArray$1(config.acornInjectPlugins)
25176
25200
  ];
25177
- const getCache = (config) => config.cache?.cache || config.cache;
25201
+ const getCache = (config) => config.cache === true // `true` is the default
25202
+ ? undefined
25203
+ : config.cache?.cache || config.cache;
25178
25204
  const getIdMatcher = (option) => {
25179
25205
  if (option === true) {
25180
25206
  return () => true;
@@ -25358,6 +25384,7 @@ async function normalizeOutputOptions(config, inputOptions, unsetInputOptions) {
25358
25384
  sourcemapBaseUrl: getSourcemapBaseUrl(config),
25359
25385
  sourcemapExcludeSources: config.sourcemapExcludeSources || false,
25360
25386
  sourcemapFile: config.sourcemapFile,
25387
+ sourcemapIgnoreList: config.sourcemapIgnoreList,
25361
25388
  sourcemapPathTransform: config.sourcemapPathTransform,
25362
25389
  strict: config.strict ?? true,
25363
25390
  systemNullSetters: config.systemNullSetters ?? true,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.15.1-0
4
- Mon, 13 Feb 2023 06:03:56 GMT - commit b3866fb81e367d24d78e7aaa93ec0fa794d63fe2
3
+ Rollup.js v3.16.0
4
+ Fri, 17 Feb 2023 13:26:29 GMT - commit 8ba73f4f643e5ffe01fc9ad846748f6d5b7963c2
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": "3.15.1-0",
3
+ "version": "3.16.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -116,7 +116,7 @@
116
116
  "is-reference": "^3.0.1",
117
117
  "lint-staged": "^13.1.0",
118
118
  "locate-character": "^2.0.5",
119
- "magic-string": "^0.27.0",
119
+ "magic-string": "^0.29.0",
120
120
  "mocha": "^10.2.0",
121
121
  "nyc": "^15.1.0",
122
122
  "pinia": "^2.0.29",