rollup 4.52.2 → 4.52.4-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 +54 -27
- 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 +3 -3
- 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/native.js +16 -4
- 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 +3 -3
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +37 -37
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.52.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.52.4-1
|
|
5
|
+
Sun, 28 Sep 2025 14:11:43 GMT - commit e2a2f6a3c809dd7dda3bda2f7622c4c7cb2e154b
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
@@ -1584,7 +1584,7 @@ const log10 = numberOrBigInt => {
|
|
|
1584
1584
|
|
|
1585
1585
|
const string = numberOrBigInt.toString(10);
|
|
1586
1586
|
|
|
1587
|
-
return string.length + Math.log10(
|
|
1587
|
+
return string.length + Math.log10(`0.${string.slice(0, 15)}`);
|
|
1588
1588
|
};
|
|
1589
1589
|
|
|
1590
1590
|
const log = numberOrBigInt => {
|
|
@@ -1605,6 +1605,36 @@ const divide = (numberOrBigInt, divisor) => {
|
|
|
1605
1605
|
return Number(integerPart) + (Number(remainder) / divisor);
|
|
1606
1606
|
};
|
|
1607
1607
|
|
|
1608
|
+
const applyFixedWidth = (result, fixedWidth) => {
|
|
1609
|
+
if (fixedWidth === undefined) {
|
|
1610
|
+
return result;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
if (typeof fixedWidth !== 'number' || !Number.isSafeInteger(fixedWidth) || fixedWidth < 0) {
|
|
1614
|
+
throw new TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof fixedWidth}: ${fixedWidth}`);
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
if (fixedWidth === 0) {
|
|
1618
|
+
return result;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
return result.length < fixedWidth ? result.padStart(fixedWidth, ' ') : result;
|
|
1622
|
+
};
|
|
1623
|
+
|
|
1624
|
+
const buildLocaleOptions = options => {
|
|
1625
|
+
const {minimumFractionDigits, maximumFractionDigits} = options;
|
|
1626
|
+
|
|
1627
|
+
if (minimumFractionDigits === undefined && maximumFractionDigits === undefined) {
|
|
1628
|
+
return undefined;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
return {
|
|
1632
|
+
...(minimumFractionDigits !== undefined && {minimumFractionDigits}),
|
|
1633
|
+
...(maximumFractionDigits !== undefined && {maximumFractionDigits}),
|
|
1634
|
+
roundingMode: 'trunc',
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1608
1638
|
function prettyBytes(number, options) {
|
|
1609
1639
|
if (typeof number !== 'bigint' && !Number.isFinite(number)) {
|
|
1610
1640
|
throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`);
|
|
@@ -1614,6 +1644,7 @@ function prettyBytes(number, options) {
|
|
|
1614
1644
|
bits: false,
|
|
1615
1645
|
binary: false,
|
|
1616
1646
|
space: true,
|
|
1647
|
+
nonBreakingSpace: false,
|
|
1617
1648
|
...options,
|
|
1618
1649
|
};
|
|
1619
1650
|
|
|
@@ -1621,10 +1652,13 @@ function prettyBytes(number, options) {
|
|
|
1621
1652
|
? (options.binary ? BIBIT_UNITS : BIT_UNITS)
|
|
1622
1653
|
: (options.binary ? BIBYTE_UNITS : BYTE_UNITS);
|
|
1623
1654
|
|
|
1624
|
-
const separator = options.space ? ' ' : '';
|
|
1655
|
+
const separator = options.space ? (options.nonBreakingSpace ? '\u00A0' : ' ') : '';
|
|
1625
1656
|
|
|
1626
|
-
|
|
1627
|
-
|
|
1657
|
+
// Handle signed zero case
|
|
1658
|
+
const isZero = typeof number === 'number' ? number === 0 : number === 0n;
|
|
1659
|
+
if (options.signed && isZero) {
|
|
1660
|
+
const result = ` 0${separator}${UNITS[0]}`;
|
|
1661
|
+
return applyFixedWidth(result, options.fixedWidth);
|
|
1628
1662
|
}
|
|
1629
1663
|
|
|
1630
1664
|
const isNegative = number < 0;
|
|
@@ -1634,34 +1668,27 @@ function prettyBytes(number, options) {
|
|
|
1634
1668
|
number = -number;
|
|
1635
1669
|
}
|
|
1636
1670
|
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
if (options.minimumFractionDigits !== undefined) {
|
|
1640
|
-
localeOptions = {minimumFractionDigits: options.minimumFractionDigits};
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
if (options.maximumFractionDigits !== undefined) {
|
|
1644
|
-
localeOptions = {maximumFractionDigits: options.maximumFractionDigits, ...localeOptions};
|
|
1645
|
-
}
|
|
1671
|
+
const localeOptions = buildLocaleOptions(options);
|
|
1672
|
+
let result;
|
|
1646
1673
|
|
|
1647
1674
|
if (number < 1) {
|
|
1648
1675
|
const numberString = toLocaleString(number, options.locale, localeOptions);
|
|
1649
|
-
|
|
1650
|
-
}
|
|
1676
|
+
result = prefix + numberString + separator + UNITS[0];
|
|
1677
|
+
} else {
|
|
1678
|
+
const exponent = Math.min(Math.floor(options.binary ? log(number) / Math.log(1024) : log10(number) / 3), UNITS.length - 1);
|
|
1679
|
+
number = divide(number, (options.binary ? 1024 : 1000) ** exponent);
|
|
1651
1680
|
|
|
1652
|
-
|
|
1653
|
-
|
|
1681
|
+
if (!localeOptions) {
|
|
1682
|
+
const minPrecision = Math.max(3, Math.floor(number).toString().length);
|
|
1683
|
+
number = number.toPrecision(minPrecision);
|
|
1684
|
+
}
|
|
1654
1685
|
|
|
1655
|
-
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1686
|
+
const numberString = toLocaleString(Number(number), options.locale, localeOptions);
|
|
1687
|
+
const unit = UNITS[exponent];
|
|
1688
|
+
result = prefix + numberString + separator + unit;
|
|
1658
1689
|
}
|
|
1659
1690
|
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
const unit = UNITS[exponent];
|
|
1663
|
-
|
|
1664
|
-
return prefix + numberString + separator + unit;
|
|
1691
|
+
return applyFixedWidth(result, options.fixedWidth);
|
|
1665
1692
|
}
|
|
1666
1693
|
|
|
1667
1694
|
function printTimings(timings) {
|
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.52.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.52.4-1
|
|
4
|
+
Sun, 28 Sep 2025 14:11:43 GMT - commit e2a2f6a3c809dd7dda3bda2f7622c4c7cb2e154b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
|
|
|
27
27
|
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version = "4.52.
|
|
30
|
+
var version = "4.52.4-1";
|
|
31
31
|
|
|
32
32
|
// src/vlq.ts
|
|
33
33
|
var comma = ",".charCodeAt(0);
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/native.js
CHANGED
|
@@ -2,7 +2,21 @@ const { existsSync } = require('node:fs');
|
|
|
2
2
|
const path = require('node:path');
|
|
3
3
|
const { platform, arch, report } = require('node:process');
|
|
4
4
|
|
|
5
|
-
const isMusl = () =>
|
|
5
|
+
const isMusl = () => {
|
|
6
|
+
try {
|
|
7
|
+
return !report.getReport().header.glibcVersionRuntime;
|
|
8
|
+
} catch {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const isMingw32 = () => {
|
|
14
|
+
try {
|
|
15
|
+
return report.getReport().header.osName.startsWith('MINGW32_NT');
|
|
16
|
+
} catch {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
6
20
|
|
|
7
21
|
const bindingsByPlatformAndArch = {
|
|
8
22
|
android: {
|
|
@@ -33,9 +47,7 @@ const bindingsByPlatformAndArch = {
|
|
|
33
47
|
arm64: { base: 'win32-arm64-msvc' },
|
|
34
48
|
ia32: { base: 'win32-ia32-msvc' },
|
|
35
49
|
x64: {
|
|
36
|
-
base:
|
|
37
|
-
? 'win32-x64-gnu'
|
|
38
|
-
: 'win32-x64-msvc'
|
|
50
|
+
base: isMingw32() ? 'win32-x64-gnu' : 'win32-x64-msvc'
|
|
39
51
|
}
|
|
40
52
|
}
|
|
41
53
|
};
|
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.52.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.52.4-1
|
|
4
|
+
Sun, 28 Sep 2025 14:11:43 GMT - commit e2a2f6a3c809dd7dda3bda2f7622c4c7cb2e154b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
|
|
|
42
42
|
|
|
43
43
|
const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
|
|
44
44
|
|
|
45
|
-
var version = "4.52.
|
|
45
|
+
var version = "4.52.4-1";
|
|
46
46
|
|
|
47
47
|
function ensureArray$1(items) {
|
|
48
48
|
if (Array.isArray(items)) {
|
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.52.
|
|
3
|
+
"version": "4.52.4-1",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -106,28 +106,28 @@
|
|
|
106
106
|
"homepage": "https://rollupjs.org/",
|
|
107
107
|
"optionalDependencies": {
|
|
108
108
|
"fsevents": "~2.3.2",
|
|
109
|
-
"@rollup/rollup-darwin-arm64": "4.52.
|
|
110
|
-
"@rollup/rollup-android-arm64": "4.52.
|
|
111
|
-
"@rollup/rollup-win32-arm64-msvc": "4.52.
|
|
112
|
-
"@rollup/rollup-freebsd-arm64": "4.52.
|
|
113
|
-
"@rollup/rollup-linux-arm64-gnu": "4.52.
|
|
114
|
-
"@rollup/rollup-linux-arm64-musl": "4.52.
|
|
115
|
-
"@rollup/rollup-android-arm-eabi": "4.52.
|
|
116
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.52.
|
|
117
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.52.
|
|
118
|
-
"@rollup/rollup-win32-ia32-msvc": "4.52.
|
|
119
|
-
"@rollup/rollup-linux-loong64-gnu": "4.52.
|
|
120
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.52.
|
|
121
|
-
"@rollup/rollup-linux-riscv64-musl": "4.52.
|
|
122
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.52.
|
|
123
|
-
"@rollup/rollup-linux-s390x-gnu": "4.52.
|
|
124
|
-
"@rollup/rollup-darwin-x64": "4.52.
|
|
125
|
-
"@rollup/rollup-win32-x64-gnu": "4.52.
|
|
126
|
-
"@rollup/rollup-win32-x64-msvc": "4.52.
|
|
127
|
-
"@rollup/rollup-freebsd-x64": "4.52.
|
|
128
|
-
"@rollup/rollup-linux-x64-gnu": "4.52.
|
|
129
|
-
"@rollup/rollup-linux-x64-musl": "4.52.
|
|
130
|
-
"@rollup/rollup-openharmony-arm64": "4.52.
|
|
109
|
+
"@rollup/rollup-darwin-arm64": "4.52.4-1",
|
|
110
|
+
"@rollup/rollup-android-arm64": "4.52.4-1",
|
|
111
|
+
"@rollup/rollup-win32-arm64-msvc": "4.52.4-1",
|
|
112
|
+
"@rollup/rollup-freebsd-arm64": "4.52.4-1",
|
|
113
|
+
"@rollup/rollup-linux-arm64-gnu": "4.52.4-1",
|
|
114
|
+
"@rollup/rollup-linux-arm64-musl": "4.52.4-1",
|
|
115
|
+
"@rollup/rollup-android-arm-eabi": "4.52.4-1",
|
|
116
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.52.4-1",
|
|
117
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.52.4-1",
|
|
118
|
+
"@rollup/rollup-win32-ia32-msvc": "4.52.4-1",
|
|
119
|
+
"@rollup/rollup-linux-loong64-gnu": "4.52.4-1",
|
|
120
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.52.4-1",
|
|
121
|
+
"@rollup/rollup-linux-riscv64-musl": "4.52.4-1",
|
|
122
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.52.4-1",
|
|
123
|
+
"@rollup/rollup-linux-s390x-gnu": "4.52.4-1",
|
|
124
|
+
"@rollup/rollup-darwin-x64": "4.52.4-1",
|
|
125
|
+
"@rollup/rollup-win32-x64-gnu": "4.52.4-1",
|
|
126
|
+
"@rollup/rollup-win32-x64-msvc": "4.52.4-1",
|
|
127
|
+
"@rollup/rollup-freebsd-x64": "4.52.4-1",
|
|
128
|
+
"@rollup/rollup-linux-x64-gnu": "4.52.4-1",
|
|
129
|
+
"@rollup/rollup-linux-x64-musl": "4.52.4-1",
|
|
130
|
+
"@rollup/rollup-openharmony-arm64": "4.52.4-1"
|
|
131
131
|
},
|
|
132
132
|
"dependencies": {
|
|
133
133
|
"@types/estree": "1.0.8"
|
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
"@codemirror/language": "^6.11.3",
|
|
142
142
|
"@codemirror/search": "^6.5.11",
|
|
143
143
|
"@codemirror/state": "^6.5.2",
|
|
144
|
-
"@codemirror/view": "^6.38.
|
|
145
|
-
"@eslint/js": "^9.
|
|
144
|
+
"@codemirror/view": "^6.38.3",
|
|
145
|
+
"@eslint/js": "^9.36.0",
|
|
146
146
|
"@inquirer/prompts": "^7.8.6",
|
|
147
147
|
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
148
148
|
"@mermaid-js/mermaid-cli": "^11.10.1",
|
|
@@ -156,13 +156,13 @@
|
|
|
156
156
|
"@rollup/plugin-terser": "^0.4.4",
|
|
157
157
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
158
158
|
"@rollup/pluginutils": "^5.3.0",
|
|
159
|
-
"@shikijs/vitepress-twoslash": "^3.
|
|
159
|
+
"@shikijs/vitepress-twoslash": "^3.13.0",
|
|
160
160
|
"@types/mocha": "^10.0.10",
|
|
161
|
-
"@types/node": "^20.19.
|
|
161
|
+
"@types/node": "^20.19.17",
|
|
162
162
|
"@types/picomatch": "^4.0.2",
|
|
163
163
|
"@types/semver": "^7.7.1",
|
|
164
164
|
"@types/yargs-parser": "^21.0.3",
|
|
165
|
-
"@vue/language-server": "^3.0.
|
|
165
|
+
"@vue/language-server": "^3.0.8",
|
|
166
166
|
"acorn": "^8.15.0",
|
|
167
167
|
"acorn-import-assertions": "^1.9.0",
|
|
168
168
|
"acorn-jsx": "^5.3.2",
|
|
@@ -175,11 +175,11 @@
|
|
|
175
175
|
"date-time": "^4.0.0",
|
|
176
176
|
"es5-shim": "^4.6.7",
|
|
177
177
|
"es6-shim": "^0.35.8",
|
|
178
|
-
"eslint": "^9.
|
|
178
|
+
"eslint": "^9.36.0",
|
|
179
179
|
"eslint-config-prettier": "^10.1.8",
|
|
180
180
|
"eslint-plugin-prettier": "^5.5.4",
|
|
181
181
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
182
|
-
"eslint-plugin-vue": "^10.
|
|
182
|
+
"eslint-plugin-vue": "^10.5.0",
|
|
183
183
|
"fixturify": "^3.0.0",
|
|
184
184
|
"flru": "^1.0.2",
|
|
185
185
|
"fs-extra": "^11.3.2",
|
|
@@ -187,10 +187,10 @@
|
|
|
187
187
|
"globals": "^16.4.0",
|
|
188
188
|
"husky": "^9.1.7",
|
|
189
189
|
"is-reference": "^3.0.3",
|
|
190
|
-
"lint-staged": "^16.
|
|
190
|
+
"lint-staged": "^16.2.0",
|
|
191
191
|
"locate-character": "^3.0.0",
|
|
192
192
|
"magic-string": "^0.30.19",
|
|
193
|
-
"memfs": "^4.
|
|
193
|
+
"memfs": "^4.43.0",
|
|
194
194
|
"mocha": "^11.7.2",
|
|
195
195
|
"nodemon": "^3.1.10",
|
|
196
196
|
"nyc": "^17.1.0",
|
|
@@ -198,11 +198,11 @@
|
|
|
198
198
|
"picomatch": "^4.0.3",
|
|
199
199
|
"pinia": "^3.0.3",
|
|
200
200
|
"prettier": "^3.6.2",
|
|
201
|
-
"prettier-plugin-organize-imports": "^4.
|
|
202
|
-
"pretty-bytes": "^7.0
|
|
201
|
+
"prettier-plugin-organize-imports": "^4.3.0",
|
|
202
|
+
"pretty-bytes": "^7.1.0",
|
|
203
203
|
"pretty-ms": "^9.3.0",
|
|
204
204
|
"requirejs": "^2.3.7",
|
|
205
|
-
"rollup": "^4.
|
|
205
|
+
"rollup": "^4.52.1",
|
|
206
206
|
"rollup-plugin-license": "^3.6.0",
|
|
207
207
|
"rollup-plugin-string": "^3.0.0",
|
|
208
208
|
"semver": "^7.7.2",
|
|
@@ -214,8 +214,8 @@
|
|
|
214
214
|
"terser": "^5.44.0",
|
|
215
215
|
"tslib": "^2.8.1",
|
|
216
216
|
"typescript": "^5.9.2",
|
|
217
|
-
"typescript-eslint": "^8.44.
|
|
218
|
-
"vite": "^7.1.
|
|
217
|
+
"typescript-eslint": "^8.44.1",
|
|
218
|
+
"vite": "^7.1.7",
|
|
219
219
|
"vitepress": "^1.6.4",
|
|
220
220
|
"vue": "^3.5.21",
|
|
221
221
|
"vue-eslint-parser": "^10.2.0",
|