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 +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +9 -3
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/rollup.js +9 -3
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch-proxy.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
package/dist/bin/rollup
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.20.
|
|
4
|
-
|
|
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.
|
|
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;
|
package/dist/es/shared/watch.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.20.
|
|
4
|
-
|
|
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.
|
|
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;
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED