rollup 3.20.1 → 3.20.2

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.20.1
6
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
5
+ Rollup.js v3.20.2
6
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
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.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
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.20.1";
19
+ var version$1 = "3.20.2";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -2030,6 +2030,9 @@ const MIN_CHARACTERS_SHOWN_AFTER_LOCATION = 10;
2030
2030
  const ELLIPSIS = '...';
2031
2031
  function getCodeFrame(source, line, column) {
2032
2032
  let lines = source.split('\n');
2033
+ // Needed if a plugin did not generate correct sourcemaps
2034
+ if (line > lines.length)
2035
+ return '';
2033
2036
  const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length +
2034
2037
  MIN_CHARACTERS_SHOWN_AFTER_LOCATION +
2035
2038
  ELLIPSIS.length, LINE_TRUNCATE_LENGTH);
@@ -11626,6 +11629,9 @@ class Program extends NodeBase {
11626
11629
  this.hasLoggedEffect = false;
11627
11630
  }
11628
11631
  hasCachedEffects() {
11632
+ if (!this.included) {
11633
+ return false;
11634
+ }
11629
11635
  return this.hasCachedEffect === null
11630
11636
  ? (this.hasCachedEffect = this.hasEffects(createHasEffectsContext()))
11631
11637
  : this.hasCachedEffect;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
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.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
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.20.1";
34
+ var version$1 = "3.20.2";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -147,6 +147,9 @@ const MIN_CHARACTERS_SHOWN_AFTER_LOCATION = 10;
147
147
  const ELLIPSIS = '...';
148
148
  function getCodeFrame(source, line, column) {
149
149
  let lines = source.split('\n');
150
+ // Needed if a plugin did not generate correct sourcemaps
151
+ if (line > lines.length)
152
+ return '';
150
153
  const maxLineLength = Math.max(tabsToSpaces(lines[line - 1].slice(0, column)).length +
151
154
  MIN_CHARACTERS_SHOWN_AFTER_LOCATION +
152
155
  ELLIPSIS.length, LINE_TRUNCATE_LENGTH);
@@ -12124,6 +12127,9 @@ class Program extends NodeBase {
12124
12127
  this.hasLoggedEffect = false;
12125
12128
  }
12126
12129
  hasCachedEffects() {
12130
+ if (!this.included) {
12131
+ return false;
12132
+ }
12127
12133
  return this.hasCachedEffect === null
12128
12134
  ? (this.hasCachedEffect = this.hasEffects(createHasEffectsContext()))
12129
12135
  : this.hasCachedEffect;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.20.1
4
- Thu, 23 Mar 2023 08:52:57 GMT - commit 75c5113e24f5857abf845776423f55f70b8d1c13
3
+ Rollup.js v3.20.2
4
+ Fri, 24 Mar 2023 06:17:57 GMT - commit 1517d0360d66893d5cacdbaf7bc9d841c1c38069
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.20.1",
3
+ "version": "3.20.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",