rollup 3.22.0-0 → 3.22.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.22.0-0
6
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
5
+ Rollup.js v3.22.0
6
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
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.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
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.22.0-0";
19
+ var version$1 = "3.22.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -12993,14 +12993,14 @@ class NamespaceVariable extends Variable {
12993
12993
  const memberVariables = this.getMemberVariables();
12994
12994
  const members = Object.entries(memberVariables)
12995
12995
  .filter(([_, variable]) => variable.included)
12996
- .map(([name, original]) => {
12997
- if (this.referencedEarly || original.isReassigned) {
12996
+ .map(([name, variable]) => {
12997
+ if (this.referencedEarly || variable.isReassigned || variable === this) {
12998
12998
  return [
12999
12999
  null,
13000
- `get ${name}${_}()${_}{${_}return ${original.getName(getPropertyAccess)}${s}${_}}`
13000
+ `get ${name}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
13001
13001
  ];
13002
13002
  }
13003
- return [name, original.getName(getPropertyAccess)];
13003
+ return [name, variable.getName(getPropertyAccess)];
13004
13004
  });
13005
13005
  members.unshift([null, `__proto__:${_}null`]);
13006
13006
  let output = getObject(members, { lineBreakIndent: { base: '', t } });
@@ -16813,9 +16813,7 @@ function getOptimizedChunks(initialChunks, numberOfEntries, minChunkSize) {
16813
16813
  }
16814
16814
  minChunkSize > 1 &&
16815
16815
  console.log('Before eliminating small chunks, there were\n', initialChunks.length, 'chunks, of which\n', chunkPartition.small.size, 'were below minChunkSize.');
16816
- if (chunkPartition.small.size > 0) {
16817
- mergeChunks(chunkPartition, minChunkSize);
16818
- }
16816
+ mergeChunks(chunkPartition, minChunkSize);
16819
16817
  minChunkSize > 1 &&
16820
16818
  console.log('After merging chunks,\n', chunkPartition.small.size + chunkPartition.big.size, 'chunks remain, of which\n', chunkPartition.small.size, 'are below minChunkSize.');
16821
16819
  timeEnd('optimize chunks', 3);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
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 v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
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.22.0-0";
34
+ var version$1 = "3.22.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -13488,14 +13488,14 @@ class NamespaceVariable extends Variable {
13488
13488
  const memberVariables = this.getMemberVariables();
13489
13489
  const members = Object.entries(memberVariables)
13490
13490
  .filter(([_, variable]) => variable.included)
13491
- .map(([name, original]) => {
13492
- if (this.referencedEarly || original.isReassigned) {
13491
+ .map(([name, variable]) => {
13492
+ if (this.referencedEarly || variable.isReassigned || variable === this) {
13493
13493
  return [
13494
13494
  null,
13495
- `get ${name}${_}()${_}{${_}return ${original.getName(getPropertyAccess)}${s}${_}}`
13495
+ `get ${name}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
13496
13496
  ];
13497
13497
  }
13498
- return [name, original.getName(getPropertyAccess)];
13498
+ return [name, variable.getName(getPropertyAccess)];
13499
13499
  });
13500
13500
  members.unshift([null, `__proto__:${_}null`]);
13501
13501
  let output = getObject(members, { lineBreakIndent: { base: '', t } });
@@ -17308,9 +17308,7 @@ function getOptimizedChunks(initialChunks, numberOfEntries, minChunkSize) {
17308
17308
  }
17309
17309
  minChunkSize > 1 &&
17310
17310
  console.log('Before eliminating small chunks, there were\n', initialChunks.length, 'chunks, of which\n', chunkPartition.small.size, 'were below minChunkSize.');
17311
- if (chunkPartition.small.size > 0) {
17312
- mergeChunks(chunkPartition, minChunkSize);
17313
- }
17311
+ mergeChunks(chunkPartition, minChunkSize);
17314
17312
  minChunkSize > 1 &&
17315
17313
  console.log('After merging chunks,\n', chunkPartition.small.size + chunkPartition.big.size, 'chunks remain, of which\n', chunkPartition.small.size, 'are below minChunkSize.');
17316
17314
  timeEnd('optimize chunks', 3);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.22.0-0
4
- Sat, 13 May 2023 13:21:30 GMT - commit b7e90ac1d307b0549254f282ccf7eb7ead6f93de
3
+ Rollup.js v3.22.0
4
+ Wed, 17 May 2023 04:19:47 GMT - commit 9f05b91e5e1862f7ea7a728fb63fb2750dfe7392
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.22.0-0",
3
+ "version": "3.22.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",