rollup 4.50.1 → 4.50.2-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/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 +33 -5
- 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 +1 -1
- 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 +33 -5
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +35 -35
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.50.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.50.2-2
|
|
5
|
+
Mon, 15 Sep 2025 05:32:50 GMT - commit 625576c5398dc1041f0069fc644ff97029eafa96
|
|
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.50.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.50.2-2
|
|
4
|
+
Mon, 15 Sep 2025 05:32:50 GMT - commit 625576c5398dc1041f0069fc644ff97029eafa96
|
|
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.50.
|
|
30
|
+
var version = "4.50.2-2";
|
|
31
31
|
|
|
32
32
|
// src/vlq.ts
|
|
33
33
|
var comma = ",".charCodeAt(0);
|
|
@@ -772,6 +772,10 @@ class MagicString {
|
|
|
772
772
|
if (chunk.outro.length) mappings.advance(chunk.outro);
|
|
773
773
|
});
|
|
774
774
|
|
|
775
|
+
if (this.outro) {
|
|
776
|
+
mappings.advance(this.outro);
|
|
777
|
+
}
|
|
778
|
+
|
|
775
779
|
return {
|
|
776
780
|
file: options.file ? options.file.split(/[/\\]/).pop() : undefined,
|
|
777
781
|
sources: [
|
|
@@ -1437,7 +1441,12 @@ class MagicString {
|
|
|
1437
1441
|
const index = original.indexOf(string);
|
|
1438
1442
|
|
|
1439
1443
|
if (index !== -1) {
|
|
1440
|
-
|
|
1444
|
+
if (typeof replacement === 'function') {
|
|
1445
|
+
replacement = replacement(string, index, original);
|
|
1446
|
+
}
|
|
1447
|
+
if (string !== replacement) {
|
|
1448
|
+
this.overwrite(index, index + string.length, replacement);
|
|
1449
|
+
}
|
|
1441
1450
|
}
|
|
1442
1451
|
|
|
1443
1452
|
return this;
|
|
@@ -1460,7 +1469,11 @@ class MagicString {
|
|
|
1460
1469
|
index = original.indexOf(string, index + stringLength)
|
|
1461
1470
|
) {
|
|
1462
1471
|
const previous = original.slice(index, index + stringLength);
|
|
1463
|
-
|
|
1472
|
+
let _replacement = replacement;
|
|
1473
|
+
if (typeof replacement === 'function') {
|
|
1474
|
+
_replacement = replacement(previous, index, original);
|
|
1475
|
+
}
|
|
1476
|
+
if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
|
|
1464
1477
|
}
|
|
1465
1478
|
|
|
1466
1479
|
return this;
|
|
@@ -11389,6 +11402,21 @@ class ArrayPattern extends NodeBase {
|
|
|
11389
11402
|
}
|
|
11390
11403
|
return this.included;
|
|
11391
11404
|
}
|
|
11405
|
+
render(code, options) {
|
|
11406
|
+
let removedStart = this.start + 1;
|
|
11407
|
+
for (const element of this.elements) {
|
|
11408
|
+
if (!element)
|
|
11409
|
+
continue;
|
|
11410
|
+
if (element.included) {
|
|
11411
|
+
element.render(code, options);
|
|
11412
|
+
removedStart = element.end;
|
|
11413
|
+
}
|
|
11414
|
+
else {
|
|
11415
|
+
code.remove(removedStart, this.end - 1);
|
|
11416
|
+
break;
|
|
11417
|
+
}
|
|
11418
|
+
}
|
|
11419
|
+
}
|
|
11392
11420
|
markDeclarationReached() {
|
|
11393
11421
|
for (const element of this.elements) {
|
|
11394
11422
|
element?.markDeclarationReached();
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/native.js
CHANGED
|
@@ -20,7 +20,7 @@ const bindingsByPlatformAndArch = {
|
|
|
20
20
|
linux: {
|
|
21
21
|
arm: { base: 'linux-arm-gnueabihf', musl: 'linux-arm-musleabihf' },
|
|
22
22
|
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
|
|
23
|
-
loong64: { base: 'linux-
|
|
23
|
+
loong64: { base: 'linux-loong64-gnu', musl: null },
|
|
24
24
|
ppc64: { base: 'linux-ppc64-gnu', musl: null },
|
|
25
25
|
riscv64: { base: 'linux-riscv64-gnu', musl: 'linux-riscv64-musl' },
|
|
26
26
|
s390x: { base: 'linux-s390x-gnu', musl: null },
|
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.50.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.50.2-2
|
|
4
|
+
Mon, 15 Sep 2025 05:32:50 GMT - commit 625576c5398dc1041f0069fc644ff97029eafa96
|
|
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.50.
|
|
45
|
+
var version = "4.50.2-2";
|
|
46
46
|
|
|
47
47
|
function ensureArray$1(items) {
|
|
48
48
|
if (Array.isArray(items)) {
|
|
@@ -4578,6 +4578,10 @@ class MagicString {
|
|
|
4578
4578
|
if (chunk.outro.length) mappings.advance(chunk.outro);
|
|
4579
4579
|
});
|
|
4580
4580
|
|
|
4581
|
+
if (this.outro) {
|
|
4582
|
+
mappings.advance(this.outro);
|
|
4583
|
+
}
|
|
4584
|
+
|
|
4581
4585
|
return {
|
|
4582
4586
|
file: options.file ? options.file.split(/[/\\]/).pop() : undefined,
|
|
4583
4587
|
sources: [
|
|
@@ -5243,7 +5247,12 @@ class MagicString {
|
|
|
5243
5247
|
const index = original.indexOf(string);
|
|
5244
5248
|
|
|
5245
5249
|
if (index !== -1) {
|
|
5246
|
-
|
|
5250
|
+
if (typeof replacement === 'function') {
|
|
5251
|
+
replacement = replacement(string, index, original);
|
|
5252
|
+
}
|
|
5253
|
+
if (string !== replacement) {
|
|
5254
|
+
this.overwrite(index, index + string.length, replacement);
|
|
5255
|
+
}
|
|
5247
5256
|
}
|
|
5248
5257
|
|
|
5249
5258
|
return this;
|
|
@@ -5266,7 +5275,11 @@ class MagicString {
|
|
|
5266
5275
|
index = original.indexOf(string, index + stringLength)
|
|
5267
5276
|
) {
|
|
5268
5277
|
const previous = original.slice(index, index + stringLength);
|
|
5269
|
-
|
|
5278
|
+
let _replacement = replacement;
|
|
5279
|
+
if (typeof replacement === 'function') {
|
|
5280
|
+
_replacement = replacement(previous, index, original);
|
|
5281
|
+
}
|
|
5282
|
+
if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
|
|
5270
5283
|
}
|
|
5271
5284
|
|
|
5272
5285
|
return this;
|
|
@@ -12998,6 +13011,21 @@ class ArrayPattern extends NodeBase {
|
|
|
12998
13011
|
}
|
|
12999
13012
|
return this.included;
|
|
13000
13013
|
}
|
|
13014
|
+
render(code, options) {
|
|
13015
|
+
let removedStart = this.start + 1;
|
|
13016
|
+
for (const element of this.elements) {
|
|
13017
|
+
if (!element)
|
|
13018
|
+
continue;
|
|
13019
|
+
if (element.included) {
|
|
13020
|
+
element.render(code, options);
|
|
13021
|
+
removedStart = element.end;
|
|
13022
|
+
}
|
|
13023
|
+
else {
|
|
13024
|
+
code.remove(removedStart, this.end - 1);
|
|
13025
|
+
break;
|
|
13026
|
+
}
|
|
13027
|
+
}
|
|
13028
|
+
}
|
|
13001
13029
|
markDeclarationReached() {
|
|
13002
13030
|
for (const element of this.elements) {
|
|
13003
13031
|
element?.markDeclarationReached();
|
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.50.
|
|
3
|
+
"version": "4.50.2-2",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -105,27 +105,27 @@
|
|
|
105
105
|
"homepage": "https://rollupjs.org/",
|
|
106
106
|
"optionalDependencies": {
|
|
107
107
|
"fsevents": "~2.3.2",
|
|
108
|
-
"@rollup/rollup-darwin-arm64": "4.50.
|
|
109
|
-
"@rollup/rollup-android-arm64": "4.50.
|
|
110
|
-
"@rollup/rollup-win32-arm64-msvc": "4.50.
|
|
111
|
-
"@rollup/rollup-freebsd-arm64": "4.50.
|
|
112
|
-
"@rollup/rollup-linux-arm64-gnu": "4.50.
|
|
113
|
-
"@rollup/rollup-linux-arm64-musl": "4.50.
|
|
114
|
-
"@rollup/rollup-android-arm-eabi": "4.50.
|
|
115
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.50.
|
|
116
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.50.
|
|
117
|
-
"@rollup/rollup-win32-ia32-msvc": "4.50.
|
|
118
|
-
"@rollup/rollup-linux-
|
|
119
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.50.
|
|
120
|
-
"@rollup/rollup-linux-riscv64-musl": "4.50.
|
|
121
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.50.
|
|
122
|
-
"@rollup/rollup-linux-s390x-gnu": "4.50.
|
|
123
|
-
"@rollup/rollup-darwin-x64": "4.50.
|
|
124
|
-
"@rollup/rollup-win32-x64-msvc": "4.50.
|
|
125
|
-
"@rollup/rollup-freebsd-x64": "4.50.
|
|
126
|
-
"@rollup/rollup-linux-x64-gnu": "4.50.
|
|
127
|
-
"@rollup/rollup-linux-x64-musl": "4.50.
|
|
128
|
-
"@rollup/rollup-openharmony-arm64": "4.50.
|
|
108
|
+
"@rollup/rollup-darwin-arm64": "4.50.2-2",
|
|
109
|
+
"@rollup/rollup-android-arm64": "4.50.2-2",
|
|
110
|
+
"@rollup/rollup-win32-arm64-msvc": "4.50.2-2",
|
|
111
|
+
"@rollup/rollup-freebsd-arm64": "4.50.2-2",
|
|
112
|
+
"@rollup/rollup-linux-arm64-gnu": "4.50.2-2",
|
|
113
|
+
"@rollup/rollup-linux-arm64-musl": "4.50.2-2",
|
|
114
|
+
"@rollup/rollup-android-arm-eabi": "4.50.2-2",
|
|
115
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.50.2-2",
|
|
116
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.50.2-2",
|
|
117
|
+
"@rollup/rollup-win32-ia32-msvc": "4.50.2-2",
|
|
118
|
+
"@rollup/rollup-linux-loong64-gnu": "4.50.2-2",
|
|
119
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.50.2-2",
|
|
120
|
+
"@rollup/rollup-linux-riscv64-musl": "4.50.2-2",
|
|
121
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.50.2-2",
|
|
122
|
+
"@rollup/rollup-linux-s390x-gnu": "4.50.2-2",
|
|
123
|
+
"@rollup/rollup-darwin-x64": "4.50.2-2",
|
|
124
|
+
"@rollup/rollup-win32-x64-msvc": "4.50.2-2",
|
|
125
|
+
"@rollup/rollup-freebsd-x64": "4.50.2-2",
|
|
126
|
+
"@rollup/rollup-linux-x64-gnu": "4.50.2-2",
|
|
127
|
+
"@rollup/rollup-linux-x64-musl": "4.50.2-2",
|
|
128
|
+
"@rollup/rollup-openharmony-arm64": "4.50.2-2"
|
|
129
129
|
},
|
|
130
130
|
"dependencies": {
|
|
131
131
|
"@types/estree": "1.0.8"
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"@codemirror/search": "^6.5.11",
|
|
141
141
|
"@codemirror/state": "^6.5.2",
|
|
142
142
|
"@codemirror/view": "^6.38.2",
|
|
143
|
-
"@eslint/js": "^9.
|
|
143
|
+
"@eslint/js": "^9.35.0",
|
|
144
144
|
"@inquirer/prompts": "^7.8.4",
|
|
145
145
|
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
146
146
|
"@mermaid-js/mermaid-cli": "^11.9.0",
|
|
@@ -153,12 +153,12 @@
|
|
|
153
153
|
"@rollup/plugin-replace": "^6.0.2",
|
|
154
154
|
"@rollup/plugin-terser": "^0.4.4",
|
|
155
155
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
156
|
-
"@rollup/pluginutils": "^5.
|
|
157
|
-
"@shikijs/vitepress-twoslash": "^3.12.
|
|
156
|
+
"@rollup/pluginutils": "^5.3.0",
|
|
157
|
+
"@shikijs/vitepress-twoslash": "^3.12.2",
|
|
158
158
|
"@types/mocha": "^10.0.10",
|
|
159
|
-
"@types/node": "^20.19.
|
|
159
|
+
"@types/node": "^20.19.13",
|
|
160
160
|
"@types/picomatch": "^4.0.2",
|
|
161
|
-
"@types/semver": "^7.7.
|
|
161
|
+
"@types/semver": "^7.7.1",
|
|
162
162
|
"@types/yargs-parser": "^21.0.3",
|
|
163
163
|
"@vue/language-server": "^3.0.6",
|
|
164
164
|
"acorn": "^8.15.0",
|
|
@@ -173,10 +173,10 @@
|
|
|
173
173
|
"date-time": "^4.0.0",
|
|
174
174
|
"es5-shim": "^4.6.7",
|
|
175
175
|
"es6-shim": "^0.35.8",
|
|
176
|
-
"eslint": "^9.
|
|
176
|
+
"eslint": "^9.35.0",
|
|
177
177
|
"eslint-config-prettier": "^10.1.8",
|
|
178
178
|
"eslint-plugin-prettier": "^5.5.4",
|
|
179
|
-
"eslint-plugin-unicorn": "^
|
|
179
|
+
"eslint-plugin-unicorn": "^61.0.2",
|
|
180
180
|
"eslint-plugin-vue": "^10.4.0",
|
|
181
181
|
"fixturify": "^3.0.0",
|
|
182
182
|
"flru": "^1.0.2",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"is-reference": "^3.0.3",
|
|
188
188
|
"lint-staged": "^16.1.6",
|
|
189
189
|
"locate-character": "^3.0.0",
|
|
190
|
-
"magic-string": "^0.30.
|
|
190
|
+
"magic-string": "^0.30.19",
|
|
191
191
|
"memfs": "^4.38.2",
|
|
192
192
|
"mocha": "^11.7.2",
|
|
193
193
|
"nodemon": "^3.1.10",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"pretty-bytes": "^7.0.1",
|
|
201
201
|
"pretty-ms": "^9.2.0",
|
|
202
202
|
"requirejs": "^2.3.7",
|
|
203
|
-
"rollup": "^4.50.
|
|
203
|
+
"rollup": "^4.50.1",
|
|
204
204
|
"rollup-plugin-license": "^3.6.0",
|
|
205
205
|
"rollup-plugin-string": "^3.0.0",
|
|
206
206
|
"semver": "^7.7.2",
|
|
@@ -209,13 +209,13 @@
|
|
|
209
209
|
"source-map": "^0.7.6",
|
|
210
210
|
"source-map-support": "^0.5.21",
|
|
211
211
|
"systemjs": "^6.15.1",
|
|
212
|
-
"terser": "^5.
|
|
212
|
+
"terser": "^5.44.0",
|
|
213
213
|
"tslib": "^2.8.1",
|
|
214
214
|
"typescript": "^5.9.2",
|
|
215
|
-
"typescript-eslint": "^8.
|
|
216
|
-
"vite": "^7.1.
|
|
215
|
+
"typescript-eslint": "^8.43.0",
|
|
216
|
+
"vite": "^7.1.5",
|
|
217
217
|
"vitepress": "^1.6.4",
|
|
218
|
-
"vue": "^3.5.
|
|
218
|
+
"vue": "^3.5.21",
|
|
219
219
|
"vue-eslint-parser": "^10.2.0",
|
|
220
220
|
"vue-tsc": "^2.2.12",
|
|
221
221
|
"wasm-pack": "^0.13.1",
|