rollup 3.18.0-0 → 3.18.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.18.0-0
6
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
5
+ Rollup.js v3.18.0
6
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
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.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
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.18.0-0";
19
+ var version$1 = "3.18.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -17065,18 +17065,16 @@ async function transformChunk(magicString, fileName, usedModules, chunkGraph, op
17065
17065
  for (let sourcesIndex = 0; sourcesIndex < map.sources.length; ++sourcesIndex) {
17066
17066
  let sourcePath = map.sources[sourcesIndex];
17067
17067
  const sourcemapPath = `${resultingFile}.map`;
17068
- if (sourcemapIgnoreList) {
17069
- const ignoreList = sourcemapIgnoreList(sourcePath, sourcemapPath);
17070
- if (typeof ignoreList !== 'boolean') {
17071
- error(errorFailedValidation('sourcemapIgnoreList function must return a boolean.'));
17068
+ const ignoreList = sourcemapIgnoreList(sourcePath, sourcemapPath);
17069
+ if (typeof ignoreList !== 'boolean') {
17070
+ error(errorFailedValidation('sourcemapIgnoreList function must return a boolean.'));
17071
+ }
17072
+ if (ignoreList) {
17073
+ if (map.x_google_ignoreList === undefined) {
17074
+ map.x_google_ignoreList = [];
17072
17075
  }
17073
- if (ignoreList) {
17074
- if (map.x_google_ignoreList === undefined) {
17075
- map.x_google_ignoreList = [];
17076
- }
17077
- if (!map.x_google_ignoreList.includes(sourcesIndex)) {
17078
- map.x_google_ignoreList.push(sourcesIndex);
17079
- }
17076
+ if (!map.x_google_ignoreList.includes(sourcesIndex)) {
17077
+ map.x_google_ignoreList.push(sourcesIndex);
17080
17078
  }
17081
17079
  }
17082
17080
  if (sourcemapPathTransform) {
@@ -17111,11 +17109,10 @@ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGrap
17111
17109
  };
17112
17110
  const { code } = transformedChunk;
17113
17111
  if (hashPlaceholder) {
17114
- const hash = createHash();
17115
17112
  // To create a reproducible content-only hash, all placeholders are
17116
17113
  // replaced with the same value before hashing
17117
17114
  const { containedPlaceholders, transformedCode } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(code, placeholders);
17118
- hash.update(transformedCode);
17115
+ const hash = createHash().update(transformedCode);
17119
17116
  const hashAugmentation = pluginDriver.hookReduceValueSync('augmentChunkHash', '', [chunk.getRenderedChunkInfo()], (augmentation, pluginHash) => {
17120
17117
  if (pluginHash) {
17121
17118
  augmentation += pluginHash;
@@ -17159,8 +17156,7 @@ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlac
17159
17156
  do {
17160
17157
  // In case of a hash collision, create a hash of the hash
17161
17158
  if (finalHash) {
17162
- hash = createHash();
17163
- hash.update(finalHash);
17159
+ hash = createHash().update(finalHash);
17164
17160
  }
17165
17161
  finalHash = hash.digest('hex').slice(0, placeholder.length);
17166
17162
  finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash);
@@ -25150,7 +25146,11 @@ async function normalizeOutputOptions(config, inputOptions, unsetInputOptions) {
25150
25146
  sourcemapBaseUrl: getSourcemapBaseUrl(config),
25151
25147
  sourcemapExcludeSources: config.sourcemapExcludeSources || false,
25152
25148
  sourcemapFile: config.sourcemapFile,
25153
- sourcemapIgnoreList: config.sourcemapIgnoreList,
25149
+ sourcemapIgnoreList: typeof config.sourcemapIgnoreList === 'function'
25150
+ ? config.sourcemapIgnoreList
25151
+ : config.sourcemapIgnoreList === false
25152
+ ? () => false
25153
+ : relativeSourcePath => relativeSourcePath.includes('node_modules'),
25154
25154
  sourcemapPathTransform: config.sourcemapPathTransform,
25155
25155
  strict: config.strict ?? true,
25156
25156
  systemNullSetters: config.systemNullSetters ?? true,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -693,7 +693,7 @@ export interface OutputOptions {
693
693
  sourcemapBaseUrl?: string;
694
694
  sourcemapExcludeSources?: boolean;
695
695
  sourcemapFile?: string;
696
- sourcemapIgnoreList?: SourcemapIgnoreListOption;
696
+ sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
697
697
  sourcemapPathTransform?: SourcemapPathTransformOption;
698
698
  strict?: boolean;
699
699
  systemNullSetters?: boolean;
@@ -748,7 +748,7 @@ export interface NormalizedOutputOptions {
748
748
  sourcemapBaseUrl: string | undefined;
749
749
  sourcemapExcludeSources: boolean;
750
750
  sourcemapFile: string | undefined;
751
- sourcemapIgnoreList: SourcemapIgnoreListOption | undefined;
751
+ sourcemapIgnoreList: SourcemapIgnoreListOption;
752
752
  sourcemapPathTransform: SourcemapPathTransformOption | undefined;
753
753
  strict: boolean;
754
754
  systemNullSetters: boolean;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
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.18.0-0";
34
+ var version$1 = "3.18.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -17563,18 +17563,16 @@ async function transformChunk(magicString, fileName, usedModules, chunkGraph, op
17563
17563
  for (let sourcesIndex = 0; sourcesIndex < map.sources.length; ++sourcesIndex) {
17564
17564
  let sourcePath = map.sources[sourcesIndex];
17565
17565
  const sourcemapPath = `${resultingFile}.map`;
17566
- if (sourcemapIgnoreList) {
17567
- const ignoreList = sourcemapIgnoreList(sourcePath, sourcemapPath);
17568
- if (typeof ignoreList !== 'boolean') {
17569
- error(errorFailedValidation('sourcemapIgnoreList function must return a boolean.'));
17566
+ const ignoreList = sourcemapIgnoreList(sourcePath, sourcemapPath);
17567
+ if (typeof ignoreList !== 'boolean') {
17568
+ error(errorFailedValidation('sourcemapIgnoreList function must return a boolean.'));
17569
+ }
17570
+ if (ignoreList) {
17571
+ if (map.x_google_ignoreList === undefined) {
17572
+ map.x_google_ignoreList = [];
17570
17573
  }
17571
- if (ignoreList) {
17572
- if (map.x_google_ignoreList === undefined) {
17573
- map.x_google_ignoreList = [];
17574
- }
17575
- if (!map.x_google_ignoreList.includes(sourcesIndex)) {
17576
- map.x_google_ignoreList.push(sourcesIndex);
17577
- }
17574
+ if (!map.x_google_ignoreList.includes(sourcesIndex)) {
17575
+ map.x_google_ignoreList.push(sourcesIndex);
17578
17576
  }
17579
17577
  }
17580
17578
  if (sourcemapPathTransform) {
@@ -17609,11 +17607,10 @@ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGrap
17609
17607
  };
17610
17608
  const { code } = transformedChunk;
17611
17609
  if (hashPlaceholder) {
17612
- const hash = createHash();
17613
17610
  // To create a reproducible content-only hash, all placeholders are
17614
17611
  // replaced with the same value before hashing
17615
17612
  const { containedPlaceholders, transformedCode } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(code, placeholders);
17616
- hash.update(transformedCode);
17613
+ const hash = createHash().update(transformedCode);
17617
17614
  const hashAugmentation = pluginDriver.hookReduceValueSync('augmentChunkHash', '', [chunk.getRenderedChunkInfo()], (augmentation, pluginHash) => {
17618
17615
  if (pluginHash) {
17619
17616
  augmentation += pluginHash;
@@ -17657,8 +17654,7 @@ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlac
17657
17654
  do {
17658
17655
  // In case of a hash collision, create a hash of the hash
17659
17656
  if (finalHash) {
17660
- hash = createHash();
17661
- hash.update(finalHash);
17657
+ hash = createHash().update(finalHash);
17662
17658
  }
17663
17659
  finalHash = hash.digest('hex').slice(0, placeholder.length);
17664
17660
  finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash);
@@ -25552,7 +25548,11 @@ async function normalizeOutputOptions(config, inputOptions, unsetInputOptions) {
25552
25548
  sourcemapBaseUrl: getSourcemapBaseUrl(config),
25553
25549
  sourcemapExcludeSources: config.sourcemapExcludeSources || false,
25554
25550
  sourcemapFile: config.sourcemapFile,
25555
- sourcemapIgnoreList: config.sourcemapIgnoreList,
25551
+ sourcemapIgnoreList: typeof config.sourcemapIgnoreList === 'function'
25552
+ ? config.sourcemapIgnoreList
25553
+ : config.sourcemapIgnoreList === false
25554
+ ? () => false
25555
+ : relativeSourcePath => relativeSourcePath.includes('node_modules'),
25556
25556
  sourcemapPathTransform: config.sourcemapPathTransform,
25557
25557
  strict: config.strict ?? true,
25558
25558
  systemNullSetters: config.systemNullSetters ?? true,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0-0
4
- Mon, 27 Feb 2023 06:19:25 GMT - commit a4bb325dbdad691e53bd6e969816d43c41d9e37e
3
+ Rollup.js v3.18.0
4
+ Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
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.18.0-0",
3
+ "version": "3.18.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",