rollup 4.30.0 → 4.30.1
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/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +17 -12
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.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/parseAst.js +2 -2
- package/dist/shared/rollup.js +17 -12
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +20 -20
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.30.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.30.1
|
|
5
|
+
Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.30.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.30.1
|
|
4
|
+
Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
|
|
|
15
15
|
import { performance } from 'node:perf_hooks';
|
|
16
16
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
17
17
|
|
|
18
|
-
var version = "4.30.
|
|
18
|
+
var version = "4.30.1";
|
|
19
19
|
|
|
20
20
|
const comma = ','.charCodeAt(0);
|
|
21
21
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -13635,19 +13635,19 @@ class SwitchCase extends NodeBase {
|
|
|
13635
13635
|
}
|
|
13636
13636
|
}
|
|
13637
13637
|
render(code, options, nodeRenderOptions) {
|
|
13638
|
-
if (this.
|
|
13639
|
-
|
|
13640
|
-
|
|
13638
|
+
if (this.test) {
|
|
13639
|
+
this.test.render(code, options);
|
|
13640
|
+
if (this.test.start === this.start + 4) {
|
|
13641
|
+
code.prependLeft(this.test.start, ' ');
|
|
13641
13642
|
}
|
|
13643
|
+
}
|
|
13644
|
+
if (this.consequent.length > 0) {
|
|
13642
13645
|
const testEnd = this.test
|
|
13643
13646
|
? this.test.end
|
|
13644
13647
|
: findFirstOccurrenceOutsideComment(code.original, 'default', this.start) + 7;
|
|
13645
13648
|
const consequentStart = findFirstOccurrenceOutsideComment(code.original, ':', testEnd) + 1;
|
|
13646
13649
|
renderStatementList(this.consequent, code, consequentStart, nodeRenderOptions.end, options);
|
|
13647
13650
|
}
|
|
13648
|
-
else {
|
|
13649
|
-
super.render(code, options);
|
|
13650
|
-
}
|
|
13651
13651
|
}
|
|
13652
13652
|
}
|
|
13653
13653
|
SwitchCase.prototype.needsBoundaries = true;
|
|
@@ -14042,7 +14042,7 @@ class UnaryExpression extends NodeBase {
|
|
|
14042
14042
|
return this.renderedLiteralValue;
|
|
14043
14043
|
return (this.renderedLiteralValue = includeChildrenRecursively
|
|
14044
14044
|
? UnknownValue
|
|
14045
|
-
:
|
|
14045
|
+
: getRenderedLiteralValue(this.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this)));
|
|
14046
14046
|
}
|
|
14047
14047
|
include(context, includeChildrenRecursively, _options) {
|
|
14048
14048
|
if (!this.deoptimized)
|
|
@@ -14059,11 +14059,16 @@ class UnaryExpression extends NodeBase {
|
|
|
14059
14059
|
super.render(code, options);
|
|
14060
14060
|
}
|
|
14061
14061
|
else {
|
|
14062
|
-
|
|
14062
|
+
let value = this.renderedLiteralValue;
|
|
14063
|
+
if (!CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE.test(code.original[this.start - 1])) {
|
|
14064
|
+
value = ` ${value}`;
|
|
14065
|
+
}
|
|
14066
|
+
code.overwrite(this.start, this.end, value);
|
|
14063
14067
|
}
|
|
14064
14068
|
}
|
|
14065
14069
|
}
|
|
14066
|
-
|
|
14070
|
+
const CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE = /[\s([=%&*+-/<>^|,?:;]/;
|
|
14071
|
+
function getRenderedLiteralValue(value) {
|
|
14067
14072
|
if (value === undefined || typeof value === 'boolean') {
|
|
14068
14073
|
return String(value);
|
|
14069
14074
|
}
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.30.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.30.1
|
|
4
|
+
Tue, 07 Jan 2025 10:35:22 GMT - commit 94917087deb9103fbf605c68670ceb3e71a67bf7
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
|
|
|
17
17
|
const node_perf_hooks = require('node:perf_hooks');
|
|
18
18
|
const promises = require('node:fs/promises');
|
|
19
19
|
|
|
20
|
-
var version = "4.30.
|
|
20
|
+
var version = "4.30.1";
|
|
21
21
|
|
|
22
22
|
function ensureArray$1(items) {
|
|
23
23
|
if (Array.isArray(items)) {
|
|
@@ -15103,19 +15103,19 @@ class SwitchCase extends NodeBase {
|
|
|
15103
15103
|
}
|
|
15104
15104
|
}
|
|
15105
15105
|
render(code, options, nodeRenderOptions) {
|
|
15106
|
-
if (this.
|
|
15107
|
-
|
|
15108
|
-
|
|
15106
|
+
if (this.test) {
|
|
15107
|
+
this.test.render(code, options);
|
|
15108
|
+
if (this.test.start === this.start + 4) {
|
|
15109
|
+
code.prependLeft(this.test.start, ' ');
|
|
15109
15110
|
}
|
|
15111
|
+
}
|
|
15112
|
+
if (this.consequent.length > 0) {
|
|
15110
15113
|
const testEnd = this.test
|
|
15111
15114
|
? this.test.end
|
|
15112
15115
|
: findFirstOccurrenceOutsideComment(code.original, 'default', this.start) + 7;
|
|
15113
15116
|
const consequentStart = findFirstOccurrenceOutsideComment(code.original, ':', testEnd) + 1;
|
|
15114
15117
|
renderStatementList(this.consequent, code, consequentStart, nodeRenderOptions.end, options);
|
|
15115
15118
|
}
|
|
15116
|
-
else {
|
|
15117
|
-
super.render(code, options);
|
|
15118
|
-
}
|
|
15119
15119
|
}
|
|
15120
15120
|
}
|
|
15121
15121
|
SwitchCase.prototype.needsBoundaries = true;
|
|
@@ -15510,7 +15510,7 @@ class UnaryExpression extends NodeBase {
|
|
|
15510
15510
|
return this.renderedLiteralValue;
|
|
15511
15511
|
return (this.renderedLiteralValue = includeChildrenRecursively
|
|
15512
15512
|
? UnknownValue
|
|
15513
|
-
:
|
|
15513
|
+
: getRenderedLiteralValue(this.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this)));
|
|
15514
15514
|
}
|
|
15515
15515
|
include(context, includeChildrenRecursively, _options) {
|
|
15516
15516
|
if (!this.deoptimized)
|
|
@@ -15527,11 +15527,16 @@ class UnaryExpression extends NodeBase {
|
|
|
15527
15527
|
super.render(code, options);
|
|
15528
15528
|
}
|
|
15529
15529
|
else {
|
|
15530
|
-
|
|
15530
|
+
let value = this.renderedLiteralValue;
|
|
15531
|
+
if (!CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE.test(code.original[this.start - 1])) {
|
|
15532
|
+
value = ` ${value}`;
|
|
15533
|
+
}
|
|
15534
|
+
code.overwrite(this.start, this.end, value);
|
|
15531
15535
|
}
|
|
15532
15536
|
}
|
|
15533
15537
|
}
|
|
15534
|
-
|
|
15538
|
+
const CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE = /[\s([=%&*+-/<>^|,?:;]/;
|
|
15539
|
+
function getRenderedLiteralValue(value) {
|
|
15535
15540
|
if (value === undefined || typeof value === 'boolean') {
|
|
15536
15541
|
return String(value);
|
|
15537
15542
|
}
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "4.30.
|
|
3
|
+
"version": "4.30.1",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -110,25 +110,25 @@
|
|
|
110
110
|
"homepage": "https://rollupjs.org/",
|
|
111
111
|
"optionalDependencies": {
|
|
112
112
|
"fsevents": "~2.3.2",
|
|
113
|
-
"@rollup/rollup-darwin-arm64": "4.30.
|
|
114
|
-
"@rollup/rollup-android-arm64": "4.30.
|
|
115
|
-
"@rollup/rollup-win32-arm64-msvc": "4.30.
|
|
116
|
-
"@rollup/rollup-freebsd-arm64": "4.30.
|
|
117
|
-
"@rollup/rollup-linux-arm64-gnu": "4.30.
|
|
118
|
-
"@rollup/rollup-linux-arm64-musl": "4.30.
|
|
119
|
-
"@rollup/rollup-android-arm-eabi": "4.30.
|
|
120
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.30.
|
|
121
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.30.
|
|
122
|
-
"@rollup/rollup-win32-ia32-msvc": "4.30.
|
|
123
|
-
"@rollup/rollup-linux-loongarch64-gnu": "4.30.
|
|
124
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.30.
|
|
125
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "4.30.
|
|
126
|
-
"@rollup/rollup-linux-s390x-gnu": "4.30.
|
|
127
|
-
"@rollup/rollup-darwin-x64": "4.30.
|
|
128
|
-
"@rollup/rollup-win32-x64-msvc": "4.30.
|
|
129
|
-
"@rollup/rollup-freebsd-x64": "4.30.
|
|
130
|
-
"@rollup/rollup-linux-x64-gnu": "4.30.
|
|
131
|
-
"@rollup/rollup-linux-x64-musl": "4.30.
|
|
113
|
+
"@rollup/rollup-darwin-arm64": "4.30.1",
|
|
114
|
+
"@rollup/rollup-android-arm64": "4.30.1",
|
|
115
|
+
"@rollup/rollup-win32-arm64-msvc": "4.30.1",
|
|
116
|
+
"@rollup/rollup-freebsd-arm64": "4.30.1",
|
|
117
|
+
"@rollup/rollup-linux-arm64-gnu": "4.30.1",
|
|
118
|
+
"@rollup/rollup-linux-arm64-musl": "4.30.1",
|
|
119
|
+
"@rollup/rollup-android-arm-eabi": "4.30.1",
|
|
120
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.30.1",
|
|
121
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.30.1",
|
|
122
|
+
"@rollup/rollup-win32-ia32-msvc": "4.30.1",
|
|
123
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.30.1",
|
|
124
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.30.1",
|
|
125
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.30.1",
|
|
126
|
+
"@rollup/rollup-linux-s390x-gnu": "4.30.1",
|
|
127
|
+
"@rollup/rollup-darwin-x64": "4.30.1",
|
|
128
|
+
"@rollup/rollup-win32-x64-msvc": "4.30.1",
|
|
129
|
+
"@rollup/rollup-freebsd-x64": "4.30.1",
|
|
130
|
+
"@rollup/rollup-linux-x64-gnu": "4.30.1",
|
|
131
|
+
"@rollup/rollup-linux-x64-musl": "4.30.1"
|
|
132
132
|
},
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"@types/estree": "1.0.6"
|