rollup 3.21.3 → 3.21.5
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 +22 -4
- 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 +22 -4
- package/dist/shared/watch-cli.js +5 -2
- package/dist/shared/watch-proxy.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +2 -5
package/dist/bin/rollup
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.21.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.21.5
|
|
4
|
+
Fri, 05 May 2023 04:33:53 GMT - commit 68f64245539b968d5c18ea51255bb6e335bd2498
|
|
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.21.
|
|
19
|
+
var version$1 = "3.21.5";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -5264,6 +5264,7 @@ function getMemberReturnExpressionWhenCalled(members, memberName) {
|
|
|
5264
5264
|
|
|
5265
5265
|
// AST walker module for Mozilla Parser API compatible trees
|
|
5266
5266
|
|
|
5267
|
+
|
|
5267
5268
|
function skipThrough(node, st, c) { c(node, st); }
|
|
5268
5269
|
function ignore(_node, _st, _c) {}
|
|
5269
5270
|
|
|
@@ -11862,6 +11863,14 @@ class Program extends NodeBase {
|
|
|
11862
11863
|
code.remove(0, start);
|
|
11863
11864
|
}
|
|
11864
11865
|
if (this.body.length > 0) {
|
|
11866
|
+
// Keep all consecutive lines that start with a comment
|
|
11867
|
+
while (code.original[start] === '/' && /[*/]/.test(code.original[start + 1])) {
|
|
11868
|
+
const firstLineBreak = findFirstLineBreakOutsideComment(code.original.slice(start, this.body[0].start));
|
|
11869
|
+
if (firstLineBreak[0] === -1) {
|
|
11870
|
+
break;
|
|
11871
|
+
}
|
|
11872
|
+
start += firstLineBreak[1];
|
|
11873
|
+
}
|
|
11865
11874
|
renderStatementList(this.body, code, start, this.end, options);
|
|
11866
11875
|
}
|
|
11867
11876
|
else {
|
|
@@ -12105,6 +12114,7 @@ SwitchCase.prototype.needsBoundaries = true;
|
|
|
12105
12114
|
|
|
12106
12115
|
class SwitchStatement extends NodeBase {
|
|
12107
12116
|
createScope(parentScope) {
|
|
12117
|
+
this.parentScope = parentScope;
|
|
12108
12118
|
this.scope = new BlockScope(parentScope);
|
|
12109
12119
|
}
|
|
12110
12120
|
hasEffects(context) {
|
|
@@ -12173,6 +12183,10 @@ class SwitchStatement extends NodeBase {
|
|
|
12173
12183
|
}
|
|
12174
12184
|
this.defaultCase = null;
|
|
12175
12185
|
}
|
|
12186
|
+
parseNode(esTreeNode) {
|
|
12187
|
+
this.discriminant = new (this.context.getNodeConstructor(esTreeNode.discriminant.type))(esTreeNode.discriminant, this, this.parentScope);
|
|
12188
|
+
super.parseNode(esTreeNode);
|
|
12189
|
+
}
|
|
12176
12190
|
render(code, options) {
|
|
12177
12191
|
this.discriminant.render(code, options);
|
|
12178
12192
|
if (this.cases.length > 0) {
|
|
@@ -13706,7 +13720,11 @@ class Module {
|
|
|
13706
13720
|
isIncluded() {
|
|
13707
13721
|
// Modules where this.ast is missing have been loaded via this.load and are
|
|
13708
13722
|
// not yet fully processed, hence they cannot be included.
|
|
13709
|
-
return (this.ast &&
|
|
13723
|
+
return (this.ast &&
|
|
13724
|
+
(this.ast.included ||
|
|
13725
|
+
this.namespace.included ||
|
|
13726
|
+
this.importedFromNotTreeshaken ||
|
|
13727
|
+
this.exportShimVariable.included));
|
|
13710
13728
|
}
|
|
13711
13729
|
linkImports() {
|
|
13712
13730
|
this.addModulesToImportDescriptions(this.importDescriptions);
|
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.21.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.21.5
|
|
4
|
+
Fri, 05 May 2023 04:33:53 GMT - commit 68f64245539b968d5c18ea51255bb6e335bd2498
|
|
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.21.
|
|
34
|
+
var version$1 = "3.21.5";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -5759,6 +5759,7 @@ function getMemberReturnExpressionWhenCalled(members, memberName) {
|
|
|
5759
5759
|
|
|
5760
5760
|
// AST walker module for Mozilla Parser API compatible trees
|
|
5761
5761
|
|
|
5762
|
+
|
|
5762
5763
|
function skipThrough(node, st, c) { c(node, st); }
|
|
5763
5764
|
function ignore(_node, _st, _c) {}
|
|
5764
5765
|
|
|
@@ -12357,6 +12358,14 @@ class Program extends NodeBase {
|
|
|
12357
12358
|
code.remove(0, start);
|
|
12358
12359
|
}
|
|
12359
12360
|
if (this.body.length > 0) {
|
|
12361
|
+
// Keep all consecutive lines that start with a comment
|
|
12362
|
+
while (code.original[start] === '/' && /[*/]/.test(code.original[start + 1])) {
|
|
12363
|
+
const firstLineBreak = findFirstLineBreakOutsideComment(code.original.slice(start, this.body[0].start));
|
|
12364
|
+
if (firstLineBreak[0] === -1) {
|
|
12365
|
+
break;
|
|
12366
|
+
}
|
|
12367
|
+
start += firstLineBreak[1];
|
|
12368
|
+
}
|
|
12360
12369
|
renderStatementList(this.body, code, start, this.end, options);
|
|
12361
12370
|
}
|
|
12362
12371
|
else {
|
|
@@ -12600,6 +12609,7 @@ SwitchCase.prototype.needsBoundaries = true;
|
|
|
12600
12609
|
|
|
12601
12610
|
class SwitchStatement extends NodeBase {
|
|
12602
12611
|
createScope(parentScope) {
|
|
12612
|
+
this.parentScope = parentScope;
|
|
12603
12613
|
this.scope = new BlockScope(parentScope);
|
|
12604
12614
|
}
|
|
12605
12615
|
hasEffects(context) {
|
|
@@ -12668,6 +12678,10 @@ class SwitchStatement extends NodeBase {
|
|
|
12668
12678
|
}
|
|
12669
12679
|
this.defaultCase = null;
|
|
12670
12680
|
}
|
|
12681
|
+
parseNode(esTreeNode) {
|
|
12682
|
+
this.discriminant = new (this.context.getNodeConstructor(esTreeNode.discriminant.type))(esTreeNode.discriminant, this, this.parentScope);
|
|
12683
|
+
super.parseNode(esTreeNode);
|
|
12684
|
+
}
|
|
12671
12685
|
render(code, options) {
|
|
12672
12686
|
this.discriminant.render(code, options);
|
|
12673
12687
|
if (this.cases.length > 0) {
|
|
@@ -14201,7 +14215,11 @@ class Module {
|
|
|
14201
14215
|
isIncluded() {
|
|
14202
14216
|
// Modules where this.ast is missing have been loaded via this.load and are
|
|
14203
14217
|
// not yet fully processed, hence they cannot be included.
|
|
14204
|
-
return (this.ast &&
|
|
14218
|
+
return (this.ast &&
|
|
14219
|
+
(this.ast.included ||
|
|
14220
|
+
this.namespace.included ||
|
|
14221
|
+
this.importedFromNotTreeshaken ||
|
|
14222
|
+
this.exportShimVariable.included));
|
|
14205
14223
|
}
|
|
14206
14224
|
linkImports() {
|
|
14207
14225
|
this.addModulesToImportDescriptions(this.importDescriptions);
|
package/dist/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.21.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.21.5
|
|
4
|
+
Fri, 05 May 2023 04:33:53 GMT - commit 68f64245539b968d5c18ea51255bb6e335bd2498
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -111,6 +111,9 @@ if (process.platform === 'linux') {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// Note: since nyc uses this module to output coverage, any lines
|
|
114
|
+
// that are in the direct sync flow of nyc's outputCoverage are
|
|
115
|
+
// ignored, since we can never get coverage for them.
|
|
116
|
+
// grab a reference to node's real process object right away
|
|
114
117
|
const processOk = (process) => !!process &&
|
|
115
118
|
typeof process === 'object' &&
|
|
116
119
|
typeof process.removeListener === 'function' &&
|
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "3.21.
|
|
3
|
+
"version": "3.21.5",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@rollup/pluginutils": "^5.0.2",
|
|
83
83
|
"@types/estree": "1.0.1",
|
|
84
84
|
"@types/mocha": "^10.0.1",
|
|
85
|
-
"@types/node": "
|
|
85
|
+
"@types/node": "~14.18.42",
|
|
86
86
|
"@types/yargs-parser": "^21.0.0",
|
|
87
87
|
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
|
88
88
|
"@typescript-eslint/parser": "^5.59.1",
|
|
@@ -143,9 +143,6 @@
|
|
|
143
143
|
"weak-napi": "^2.0.2",
|
|
144
144
|
"yargs-parser": "^21.1.1"
|
|
145
145
|
},
|
|
146
|
-
"overrides": {
|
|
147
|
-
"d3": "7.8.0"
|
|
148
|
-
},
|
|
149
146
|
"files": [
|
|
150
147
|
"dist/**/*.js",
|
|
151
148
|
"dist/*.d.ts",
|