rollup 4.44.1 → 4.44.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/LICENSE.md +5 -7
- 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 +154 -166
- 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 +154 -166
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +42 -41
package/LICENSE.md
CHANGED
|
@@ -18,12 +18,10 @@ MIT, ISC, 0BSD
|
|
|
18
18
|
# Bundled dependencies:
|
|
19
19
|
## @jridgewell/sourcemap-codec
|
|
20
20
|
License: MIT
|
|
21
|
-
By:
|
|
22
|
-
Repository: git+https://github.com/jridgewell/
|
|
21
|
+
By: Justin Ridgewell
|
|
22
|
+
Repository: git+https://github.com/jridgewell/sourcemaps.git
|
|
23
23
|
|
|
24
|
-
>
|
|
25
|
-
>
|
|
26
|
-
> Copyright (c) 2015 Rich Harris
|
|
24
|
+
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
|
27
25
|
>
|
|
28
26
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
29
27
|
> of this software and associated documentation files (the "Software"), to deal
|
|
@@ -40,8 +38,8 @@ Repository: git+https://github.com/jridgewell/sourcemap-codec.git
|
|
|
40
38
|
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
41
39
|
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
42
40
|
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
43
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
44
|
-
>
|
|
41
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
42
|
+
> SOFTWARE.
|
|
45
43
|
|
|
46
44
|
---------------------------------------
|
|
47
45
|
|
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.44.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.44.2
|
|
5
|
+
Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
|
|
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.44.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.44.2
|
|
4
|
+
Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,191 +27,178 @@ function _mergeNamespaces(n, m) {
|
|
|
27
27
|
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version = "4.44.
|
|
30
|
+
var version = "4.44.2";
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
// src/vlq.ts
|
|
33
|
+
var comma = ",".charCodeAt(0);
|
|
34
|
+
var semicolon = ";".charCodeAt(0);
|
|
35
|
+
var chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
36
|
+
var intToChar = new Uint8Array(64);
|
|
37
|
+
var charToInt = new Uint8Array(128);
|
|
37
38
|
for (let i = 0; i < chars$1.length; i++) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
const c = chars$1.charCodeAt(i);
|
|
40
|
+
intToChar[i] = c;
|
|
41
|
+
charToInt[c] = i;
|
|
41
42
|
}
|
|
42
43
|
function decodeInteger(reader, relative) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
let value = 0;
|
|
45
|
+
let shift = 0;
|
|
46
|
+
let integer = 0;
|
|
47
|
+
do {
|
|
48
|
+
const c = reader.next();
|
|
49
|
+
integer = charToInt[c];
|
|
50
|
+
value |= (integer & 31) << shift;
|
|
51
|
+
shift += 5;
|
|
52
|
+
} while (integer & 32);
|
|
53
|
+
const shouldNegate = value & 1;
|
|
54
|
+
value >>>= 1;
|
|
55
|
+
if (shouldNegate) {
|
|
56
|
+
value = -2147483648 | -value;
|
|
57
|
+
}
|
|
58
|
+
return relative + value;
|
|
58
59
|
}
|
|
59
60
|
function encodeInteger(builder, num, relative) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return num;
|
|
61
|
+
let delta = num - relative;
|
|
62
|
+
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
63
|
+
do {
|
|
64
|
+
let clamped = delta & 31;
|
|
65
|
+
delta >>>= 5;
|
|
66
|
+
if (delta > 0) clamped |= 32;
|
|
67
|
+
builder.write(intToChar[clamped]);
|
|
68
|
+
} while (delta > 0);
|
|
69
|
+
return num;
|
|
70
70
|
}
|
|
71
71
|
function hasMoreVlq(reader, max) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return reader.peek() !== comma;
|
|
72
|
+
if (reader.pos >= max) return false;
|
|
73
|
+
return reader.peek() !== comma;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
decode(buf) {
|
|
90
|
-
let out = '';
|
|
91
|
-
for (let i = 0; i < buf.length; i++) {
|
|
92
|
-
out += String.fromCharCode(buf[i]);
|
|
93
|
-
}
|
|
94
|
-
return out;
|
|
95
|
-
},
|
|
96
|
-
};
|
|
97
|
-
class StringWriter {
|
|
98
|
-
constructor() {
|
|
99
|
-
this.pos = 0;
|
|
100
|
-
this.out = '';
|
|
101
|
-
this.buffer = new Uint8Array(bufLength);
|
|
102
|
-
}
|
|
103
|
-
write(v) {
|
|
104
|
-
const { buffer } = this;
|
|
105
|
-
buffer[this.pos++] = v;
|
|
106
|
-
if (this.pos === bufLength) {
|
|
107
|
-
this.out += td.decode(buffer);
|
|
108
|
-
this.pos = 0;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
flush() {
|
|
112
|
-
const { buffer, out, pos } = this;
|
|
113
|
-
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
class StringReader {
|
|
117
|
-
constructor(buffer) {
|
|
118
|
-
this.pos = 0;
|
|
119
|
-
this.buffer = buffer;
|
|
120
|
-
}
|
|
121
|
-
next() {
|
|
122
|
-
return this.buffer.charCodeAt(this.pos++);
|
|
123
|
-
}
|
|
124
|
-
peek() {
|
|
125
|
-
return this.buffer.charCodeAt(this.pos);
|
|
76
|
+
// src/strings.ts
|
|
77
|
+
var bufLength = 1024 * 16;
|
|
78
|
+
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
|
|
79
|
+
decode(buf) {
|
|
80
|
+
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
81
|
+
return out.toString();
|
|
82
|
+
}
|
|
83
|
+
} : {
|
|
84
|
+
decode(buf) {
|
|
85
|
+
let out = "";
|
|
86
|
+
for (let i = 0; i < buf.length; i++) {
|
|
87
|
+
out += String.fromCharCode(buf[i]);
|
|
126
88
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
var StringWriter = class {
|
|
93
|
+
constructor() {
|
|
94
|
+
this.pos = 0;
|
|
95
|
+
this.out = "";
|
|
96
|
+
this.buffer = new Uint8Array(bufLength);
|
|
97
|
+
}
|
|
98
|
+
write(v) {
|
|
99
|
+
const { buffer } = this;
|
|
100
|
+
buffer[this.pos++] = v;
|
|
101
|
+
if (this.pos === bufLength) {
|
|
102
|
+
this.out += td.decode(buffer);
|
|
103
|
+
this.pos = 0;
|
|
131
104
|
}
|
|
132
|
-
}
|
|
105
|
+
}
|
|
106
|
+
flush() {
|
|
107
|
+
const { buffer, out, pos } = this;
|
|
108
|
+
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
var StringReader = class {
|
|
112
|
+
constructor(buffer) {
|
|
113
|
+
this.pos = 0;
|
|
114
|
+
this.buffer = buffer;
|
|
115
|
+
}
|
|
116
|
+
next() {
|
|
117
|
+
return this.buffer.charCodeAt(this.pos++);
|
|
118
|
+
}
|
|
119
|
+
peek() {
|
|
120
|
+
return this.buffer.charCodeAt(this.pos);
|
|
121
|
+
}
|
|
122
|
+
indexOf(char) {
|
|
123
|
+
const { buffer, pos } = this;
|
|
124
|
+
const idx = buffer.indexOf(char, pos);
|
|
125
|
+
return idx === -1 ? buffer.length : idx;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
133
128
|
|
|
129
|
+
// src/sourcemap-codec.ts
|
|
134
130
|
function decode(mappings) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
decoded.push(line);
|
|
176
|
-
reader.pos = semi + 1;
|
|
177
|
-
} while (reader.pos <= length);
|
|
178
|
-
return decoded;
|
|
131
|
+
const { length } = mappings;
|
|
132
|
+
const reader = new StringReader(mappings);
|
|
133
|
+
const decoded = [];
|
|
134
|
+
let genColumn = 0;
|
|
135
|
+
let sourcesIndex = 0;
|
|
136
|
+
let sourceLine = 0;
|
|
137
|
+
let sourceColumn = 0;
|
|
138
|
+
let namesIndex = 0;
|
|
139
|
+
do {
|
|
140
|
+
const semi = reader.indexOf(";");
|
|
141
|
+
const line = [];
|
|
142
|
+
let sorted = true;
|
|
143
|
+
let lastCol = 0;
|
|
144
|
+
genColumn = 0;
|
|
145
|
+
while (reader.pos < semi) {
|
|
146
|
+
let seg;
|
|
147
|
+
genColumn = decodeInteger(reader, genColumn);
|
|
148
|
+
if (genColumn < lastCol) sorted = false;
|
|
149
|
+
lastCol = genColumn;
|
|
150
|
+
if (hasMoreVlq(reader, semi)) {
|
|
151
|
+
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
|
152
|
+
sourceLine = decodeInteger(reader, sourceLine);
|
|
153
|
+
sourceColumn = decodeInteger(reader, sourceColumn);
|
|
154
|
+
if (hasMoreVlq(reader, semi)) {
|
|
155
|
+
namesIndex = decodeInteger(reader, namesIndex);
|
|
156
|
+
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
157
|
+
} else {
|
|
158
|
+
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
159
|
+
}
|
|
160
|
+
} else {
|
|
161
|
+
seg = [genColumn];
|
|
162
|
+
}
|
|
163
|
+
line.push(seg);
|
|
164
|
+
reader.pos++;
|
|
165
|
+
}
|
|
166
|
+
if (!sorted) sort(line);
|
|
167
|
+
decoded.push(line);
|
|
168
|
+
reader.pos = semi + 1;
|
|
169
|
+
} while (reader.pos <= length);
|
|
170
|
+
return decoded;
|
|
179
171
|
}
|
|
180
172
|
function sort(line) {
|
|
181
|
-
|
|
173
|
+
line.sort(sortComparator);
|
|
182
174
|
}
|
|
183
175
|
function sortComparator(a, b) {
|
|
184
|
-
|
|
176
|
+
return a[0] - b[0];
|
|
185
177
|
}
|
|
186
178
|
function encode(decoded) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
208
|
-
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
209
|
-
if (segment.length === 4)
|
|
210
|
-
continue;
|
|
211
|
-
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
212
|
-
}
|
|
179
|
+
const writer = new StringWriter();
|
|
180
|
+
let sourcesIndex = 0;
|
|
181
|
+
let sourceLine = 0;
|
|
182
|
+
let sourceColumn = 0;
|
|
183
|
+
let namesIndex = 0;
|
|
184
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
185
|
+
const line = decoded[i];
|
|
186
|
+
if (i > 0) writer.write(semicolon);
|
|
187
|
+
if (line.length === 0) continue;
|
|
188
|
+
let genColumn = 0;
|
|
189
|
+
for (let j = 0; j < line.length; j++) {
|
|
190
|
+
const segment = line[j];
|
|
191
|
+
if (j > 0) writer.write(comma);
|
|
192
|
+
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
193
|
+
if (segment.length === 1) continue;
|
|
194
|
+
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
195
|
+
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
196
|
+
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
197
|
+
if (segment.length === 4) continue;
|
|
198
|
+
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
213
199
|
}
|
|
214
|
-
|
|
200
|
+
}
|
|
201
|
+
return writer.flush();
|
|
215
202
|
}
|
|
216
203
|
|
|
217
204
|
class BitSet {
|
|
@@ -6535,6 +6522,7 @@ class BlockStatement extends NodeBase {
|
|
|
6535
6522
|
}
|
|
6536
6523
|
initialise() {
|
|
6537
6524
|
super.initialise();
|
|
6525
|
+
this.scope.context.magicString.addSourcemapLocation(this.end - 1);
|
|
6538
6526
|
const firstBodyStatement = this.body[0];
|
|
6539
6527
|
this.deoptimizeBody =
|
|
6540
6528
|
firstBodyStatement instanceof ExpressionStatement &&
|
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.44.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.44.2
|
|
4
|
+
Fri, 04 Jul 2025 12:55:10 GMT - commit d6dd1e7c6ee3f8fcfd77e5b8082cc62387a8ac4f
|
|
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.44.
|
|
45
|
+
var version = "4.44.2";
|
|
46
46
|
|
|
47
47
|
function ensureArray$1(items) {
|
|
48
48
|
if (Array.isArray(items)) {
|
|
@@ -3834,189 +3834,176 @@ function handleError(error, recover = false) {
|
|
|
3834
3834
|
process$1.exit(1);
|
|
3835
3835
|
}
|
|
3836
3836
|
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3837
|
+
// src/vlq.ts
|
|
3838
|
+
var comma = ",".charCodeAt(0);
|
|
3839
|
+
var semicolon = ";".charCodeAt(0);
|
|
3840
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
3841
|
+
var intToChar = new Uint8Array(64);
|
|
3842
|
+
var charToInt = new Uint8Array(128);
|
|
3842
3843
|
for (let i = 0; i < chars.length; i++) {
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3844
|
+
const c = chars.charCodeAt(i);
|
|
3845
|
+
intToChar[i] = c;
|
|
3846
|
+
charToInt[c] = i;
|
|
3846
3847
|
}
|
|
3847
3848
|
function decodeInteger(reader, relative) {
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3849
|
+
let value = 0;
|
|
3850
|
+
let shift = 0;
|
|
3851
|
+
let integer = 0;
|
|
3852
|
+
do {
|
|
3853
|
+
const c = reader.next();
|
|
3854
|
+
integer = charToInt[c];
|
|
3855
|
+
value |= (integer & 31) << shift;
|
|
3856
|
+
shift += 5;
|
|
3857
|
+
} while (integer & 32);
|
|
3858
|
+
const shouldNegate = value & 1;
|
|
3859
|
+
value >>>= 1;
|
|
3860
|
+
if (shouldNegate) {
|
|
3861
|
+
value = -2147483648 | -value;
|
|
3862
|
+
}
|
|
3863
|
+
return relative + value;
|
|
3863
3864
|
}
|
|
3864
3865
|
function encodeInteger(builder, num, relative) {
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
return num;
|
|
3866
|
+
let delta = num - relative;
|
|
3867
|
+
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
3868
|
+
do {
|
|
3869
|
+
let clamped = delta & 31;
|
|
3870
|
+
delta >>>= 5;
|
|
3871
|
+
if (delta > 0) clamped |= 32;
|
|
3872
|
+
builder.write(intToChar[clamped]);
|
|
3873
|
+
} while (delta > 0);
|
|
3874
|
+
return num;
|
|
3875
3875
|
}
|
|
3876
3876
|
function hasMoreVlq(reader, max) {
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
return reader.peek() !== comma;
|
|
3877
|
+
if (reader.pos >= max) return false;
|
|
3878
|
+
return reader.peek() !== comma;
|
|
3880
3879
|
}
|
|
3881
3880
|
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
decode(buf) {
|
|
3895
|
-
let out = '';
|
|
3896
|
-
for (let i = 0; i < buf.length; i++) {
|
|
3897
|
-
out += String.fromCharCode(buf[i]);
|
|
3898
|
-
}
|
|
3899
|
-
return out;
|
|
3900
|
-
},
|
|
3901
|
-
};
|
|
3902
|
-
class StringWriter {
|
|
3903
|
-
constructor() {
|
|
3904
|
-
this.pos = 0;
|
|
3905
|
-
this.out = '';
|
|
3906
|
-
this.buffer = new Uint8Array(bufLength);
|
|
3907
|
-
}
|
|
3908
|
-
write(v) {
|
|
3909
|
-
const { buffer } = this;
|
|
3910
|
-
buffer[this.pos++] = v;
|
|
3911
|
-
if (this.pos === bufLength) {
|
|
3912
|
-
this.out += td.decode(buffer);
|
|
3913
|
-
this.pos = 0;
|
|
3914
|
-
}
|
|
3915
|
-
}
|
|
3916
|
-
flush() {
|
|
3917
|
-
const { buffer, out, pos } = this;
|
|
3918
|
-
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
3919
|
-
}
|
|
3920
|
-
}
|
|
3921
|
-
class StringReader {
|
|
3922
|
-
constructor(buffer) {
|
|
3923
|
-
this.pos = 0;
|
|
3924
|
-
this.buffer = buffer;
|
|
3925
|
-
}
|
|
3926
|
-
next() {
|
|
3927
|
-
return this.buffer.charCodeAt(this.pos++);
|
|
3928
|
-
}
|
|
3929
|
-
peek() {
|
|
3930
|
-
return this.buffer.charCodeAt(this.pos);
|
|
3881
|
+
// src/strings.ts
|
|
3882
|
+
var bufLength = 1024 * 16;
|
|
3883
|
+
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
|
|
3884
|
+
decode(buf) {
|
|
3885
|
+
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
3886
|
+
return out.toString();
|
|
3887
|
+
}
|
|
3888
|
+
} : {
|
|
3889
|
+
decode(buf) {
|
|
3890
|
+
let out = "";
|
|
3891
|
+
for (let i = 0; i < buf.length; i++) {
|
|
3892
|
+
out += String.fromCharCode(buf[i]);
|
|
3931
3893
|
}
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3894
|
+
return out;
|
|
3895
|
+
}
|
|
3896
|
+
};
|
|
3897
|
+
var StringWriter = class {
|
|
3898
|
+
constructor() {
|
|
3899
|
+
this.pos = 0;
|
|
3900
|
+
this.out = "";
|
|
3901
|
+
this.buffer = new Uint8Array(bufLength);
|
|
3902
|
+
}
|
|
3903
|
+
write(v) {
|
|
3904
|
+
const { buffer } = this;
|
|
3905
|
+
buffer[this.pos++] = v;
|
|
3906
|
+
if (this.pos === bufLength) {
|
|
3907
|
+
this.out += td.decode(buffer);
|
|
3908
|
+
this.pos = 0;
|
|
3936
3909
|
}
|
|
3937
|
-
}
|
|
3910
|
+
}
|
|
3911
|
+
flush() {
|
|
3912
|
+
const { buffer, out, pos } = this;
|
|
3913
|
+
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
3914
|
+
}
|
|
3915
|
+
};
|
|
3916
|
+
var StringReader = class {
|
|
3917
|
+
constructor(buffer) {
|
|
3918
|
+
this.pos = 0;
|
|
3919
|
+
this.buffer = buffer;
|
|
3920
|
+
}
|
|
3921
|
+
next() {
|
|
3922
|
+
return this.buffer.charCodeAt(this.pos++);
|
|
3923
|
+
}
|
|
3924
|
+
peek() {
|
|
3925
|
+
return this.buffer.charCodeAt(this.pos);
|
|
3926
|
+
}
|
|
3927
|
+
indexOf(char) {
|
|
3928
|
+
const { buffer, pos } = this;
|
|
3929
|
+
const idx = buffer.indexOf(char, pos);
|
|
3930
|
+
return idx === -1 ? buffer.length : idx;
|
|
3931
|
+
}
|
|
3932
|
+
};
|
|
3938
3933
|
|
|
3934
|
+
// src/sourcemap-codec.ts
|
|
3939
3935
|
function decode(mappings) {
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
decoded.push(line);
|
|
3981
|
-
reader.pos = semi + 1;
|
|
3982
|
-
} while (reader.pos <= length);
|
|
3983
|
-
return decoded;
|
|
3936
|
+
const { length } = mappings;
|
|
3937
|
+
const reader = new StringReader(mappings);
|
|
3938
|
+
const decoded = [];
|
|
3939
|
+
let genColumn = 0;
|
|
3940
|
+
let sourcesIndex = 0;
|
|
3941
|
+
let sourceLine = 0;
|
|
3942
|
+
let sourceColumn = 0;
|
|
3943
|
+
let namesIndex = 0;
|
|
3944
|
+
do {
|
|
3945
|
+
const semi = reader.indexOf(";");
|
|
3946
|
+
const line = [];
|
|
3947
|
+
let sorted = true;
|
|
3948
|
+
let lastCol = 0;
|
|
3949
|
+
genColumn = 0;
|
|
3950
|
+
while (reader.pos < semi) {
|
|
3951
|
+
let seg;
|
|
3952
|
+
genColumn = decodeInteger(reader, genColumn);
|
|
3953
|
+
if (genColumn < lastCol) sorted = false;
|
|
3954
|
+
lastCol = genColumn;
|
|
3955
|
+
if (hasMoreVlq(reader, semi)) {
|
|
3956
|
+
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
|
3957
|
+
sourceLine = decodeInteger(reader, sourceLine);
|
|
3958
|
+
sourceColumn = decodeInteger(reader, sourceColumn);
|
|
3959
|
+
if (hasMoreVlq(reader, semi)) {
|
|
3960
|
+
namesIndex = decodeInteger(reader, namesIndex);
|
|
3961
|
+
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
3962
|
+
} else {
|
|
3963
|
+
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
3964
|
+
}
|
|
3965
|
+
} else {
|
|
3966
|
+
seg = [genColumn];
|
|
3967
|
+
}
|
|
3968
|
+
line.push(seg);
|
|
3969
|
+
reader.pos++;
|
|
3970
|
+
}
|
|
3971
|
+
if (!sorted) sort(line);
|
|
3972
|
+
decoded.push(line);
|
|
3973
|
+
reader.pos = semi + 1;
|
|
3974
|
+
} while (reader.pos <= length);
|
|
3975
|
+
return decoded;
|
|
3984
3976
|
}
|
|
3985
3977
|
function sort(line) {
|
|
3986
|
-
|
|
3978
|
+
line.sort(sortComparator);
|
|
3987
3979
|
}
|
|
3988
3980
|
function sortComparator(a, b) {
|
|
3989
|
-
|
|
3981
|
+
return a[0] - b[0];
|
|
3990
3982
|
}
|
|
3991
3983
|
function encode(decoded) {
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
4013
|
-
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
4014
|
-
if (segment.length === 4)
|
|
4015
|
-
continue;
|
|
4016
|
-
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
4017
|
-
}
|
|
3984
|
+
const writer = new StringWriter();
|
|
3985
|
+
let sourcesIndex = 0;
|
|
3986
|
+
let sourceLine = 0;
|
|
3987
|
+
let sourceColumn = 0;
|
|
3988
|
+
let namesIndex = 0;
|
|
3989
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
3990
|
+
const line = decoded[i];
|
|
3991
|
+
if (i > 0) writer.write(semicolon);
|
|
3992
|
+
if (line.length === 0) continue;
|
|
3993
|
+
let genColumn = 0;
|
|
3994
|
+
for (let j = 0; j < line.length; j++) {
|
|
3995
|
+
const segment = line[j];
|
|
3996
|
+
if (j > 0) writer.write(comma);
|
|
3997
|
+
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
3998
|
+
if (segment.length === 1) continue;
|
|
3999
|
+
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
4000
|
+
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
4001
|
+
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
4002
|
+
if (segment.length === 4) continue;
|
|
4003
|
+
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
4018
4004
|
}
|
|
4019
|
-
|
|
4005
|
+
}
|
|
4006
|
+
return writer.flush();
|
|
4020
4007
|
}
|
|
4021
4008
|
|
|
4022
4009
|
class BitSet {
|
|
@@ -10310,6 +10297,7 @@ class BlockStatement extends NodeBase {
|
|
|
10310
10297
|
}
|
|
10311
10298
|
initialise() {
|
|
10312
10299
|
super.initialise();
|
|
10300
|
+
this.scope.context.magicString.addSourcemapLocation(this.end - 1);
|
|
10313
10301
|
const firstBodyStatement = this.body[0];
|
|
10314
10302
|
this.deoptimizeBody =
|
|
10315
10303
|
firstBodyStatement instanceof ExpressionStatement &&
|
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.44.
|
|
3
|
+
"version": "4.44.2",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -109,26 +109,26 @@
|
|
|
109
109
|
"homepage": "https://rollupjs.org/",
|
|
110
110
|
"optionalDependencies": {
|
|
111
111
|
"fsevents": "~2.3.2",
|
|
112
|
-
"@rollup/rollup-darwin-arm64": "4.44.
|
|
113
|
-
"@rollup/rollup-android-arm64": "4.44.
|
|
114
|
-
"@rollup/rollup-win32-arm64-msvc": "4.44.
|
|
115
|
-
"@rollup/rollup-freebsd-arm64": "4.44.
|
|
116
|
-
"@rollup/rollup-linux-arm64-gnu": "4.44.
|
|
117
|
-
"@rollup/rollup-linux-arm64-musl": "4.44.
|
|
118
|
-
"@rollup/rollup-android-arm-eabi": "4.44.
|
|
119
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.44.
|
|
120
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.44.
|
|
121
|
-
"@rollup/rollup-win32-ia32-msvc": "4.44.
|
|
122
|
-
"@rollup/rollup-linux-loongarch64-gnu": "4.44.
|
|
123
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.44.
|
|
124
|
-
"@rollup/rollup-linux-riscv64-musl": "4.44.
|
|
125
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "4.44.
|
|
126
|
-
"@rollup/rollup-linux-s390x-gnu": "4.44.
|
|
127
|
-
"@rollup/rollup-darwin-x64": "4.44.
|
|
128
|
-
"@rollup/rollup-win32-x64-msvc": "4.44.
|
|
129
|
-
"@rollup/rollup-freebsd-x64": "4.44.
|
|
130
|
-
"@rollup/rollup-linux-x64-gnu": "4.44.
|
|
131
|
-
"@rollup/rollup-linux-x64-musl": "4.44.
|
|
112
|
+
"@rollup/rollup-darwin-arm64": "4.44.2",
|
|
113
|
+
"@rollup/rollup-android-arm64": "4.44.2",
|
|
114
|
+
"@rollup/rollup-win32-arm64-msvc": "4.44.2",
|
|
115
|
+
"@rollup/rollup-freebsd-arm64": "4.44.2",
|
|
116
|
+
"@rollup/rollup-linux-arm64-gnu": "4.44.2",
|
|
117
|
+
"@rollup/rollup-linux-arm64-musl": "4.44.2",
|
|
118
|
+
"@rollup/rollup-android-arm-eabi": "4.44.2",
|
|
119
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.44.2",
|
|
120
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.44.2",
|
|
121
|
+
"@rollup/rollup-win32-ia32-msvc": "4.44.2",
|
|
122
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.44.2",
|
|
123
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.44.2",
|
|
124
|
+
"@rollup/rollup-linux-riscv64-musl": "4.44.2",
|
|
125
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.44.2",
|
|
126
|
+
"@rollup/rollup-linux-s390x-gnu": "4.44.2",
|
|
127
|
+
"@rollup/rollup-darwin-x64": "4.44.2",
|
|
128
|
+
"@rollup/rollup-win32-x64-msvc": "4.44.2",
|
|
129
|
+
"@rollup/rollup-freebsd-x64": "4.44.2",
|
|
130
|
+
"@rollup/rollup-linux-x64-gnu": "4.44.2",
|
|
131
|
+
"@rollup/rollup-linux-x64-musl": "4.44.2"
|
|
132
132
|
},
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"@types/estree": "1.0.8"
|
|
@@ -139,27 +139,27 @@
|
|
|
139
139
|
"devDependencies": {
|
|
140
140
|
"@codemirror/commands": "^6.8.1",
|
|
141
141
|
"@codemirror/lang-javascript": "^6.2.4",
|
|
142
|
-
"@codemirror/language": "^6.11.
|
|
142
|
+
"@codemirror/language": "^6.11.2",
|
|
143
143
|
"@codemirror/search": "^6.5.11",
|
|
144
144
|
"@codemirror/state": "^6.5.2",
|
|
145
|
-
"@codemirror/view": "^6.
|
|
146
|
-
"@eslint/js": "^9.
|
|
145
|
+
"@codemirror/view": "^6.38.0",
|
|
146
|
+
"@eslint/js": "^9.30.0",
|
|
147
147
|
"@inquirer/prompts": "^7.5.3",
|
|
148
|
-
"@jridgewell/sourcemap-codec": "^1.5.
|
|
149
|
-
"@mermaid-js/mermaid-cli": "^11.
|
|
148
|
+
"@jridgewell/sourcemap-codec": "^1.5.3",
|
|
149
|
+
"@mermaid-js/mermaid-cli": "^11.6.0",
|
|
150
150
|
"@napi-rs/cli": "^2.18.4",
|
|
151
151
|
"@rollup/plugin-alias": "^5.1.1",
|
|
152
152
|
"@rollup/plugin-buble": "^1.0.3",
|
|
153
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
153
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
154
154
|
"@rollup/plugin-json": "^6.1.0",
|
|
155
155
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
156
156
|
"@rollup/plugin-replace": "^6.0.2",
|
|
157
157
|
"@rollup/plugin-terser": "^0.4.4",
|
|
158
|
-
"@rollup/plugin-typescript": "^12.1.
|
|
159
|
-
"@rollup/pluginutils": "^5.
|
|
160
|
-
"@shikijs/vitepress-twoslash": "^3.
|
|
158
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
159
|
+
"@rollup/pluginutils": "^5.2.0",
|
|
160
|
+
"@shikijs/vitepress-twoslash": "^3.7.0",
|
|
161
161
|
"@types/mocha": "^10.0.10",
|
|
162
|
-
"@types/node": "^
|
|
162
|
+
"@types/node": "^20.19.0",
|
|
163
163
|
"@types/picomatch": "^4.0.0",
|
|
164
164
|
"@types/semver": "^7.7.0",
|
|
165
165
|
"@types/yargs-parser": "^21.0.3",
|
|
@@ -170,15 +170,15 @@
|
|
|
170
170
|
"buble": "^0.20.0",
|
|
171
171
|
"builtin-modules": "^5.0.0",
|
|
172
172
|
"chokidar": "^3.6.0",
|
|
173
|
-
"concurrently": "^9.
|
|
173
|
+
"concurrently": "^9.2.0",
|
|
174
174
|
"core-js": "3.38.1",
|
|
175
175
|
"cross-env": "^7.0.3",
|
|
176
176
|
"date-time": "^4.0.0",
|
|
177
177
|
"es5-shim": "^4.6.7",
|
|
178
178
|
"es6-shim": "^0.35.8",
|
|
179
|
-
"eslint": "^9.
|
|
179
|
+
"eslint": "^9.30.0",
|
|
180
180
|
"eslint-config-prettier": "^10.1.5",
|
|
181
|
-
"eslint-plugin-prettier": "^5.
|
|
181
|
+
"eslint-plugin-prettier": "^5.5.1",
|
|
182
182
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
183
183
|
"eslint-plugin-vue": "^10.2.0",
|
|
184
184
|
"fixturify": "^3.0.0",
|
|
@@ -192,18 +192,18 @@
|
|
|
192
192
|
"locate-character": "^3.0.0",
|
|
193
193
|
"magic-string": "^0.30.17",
|
|
194
194
|
"memfs": "^4.17.2",
|
|
195
|
-
"mocha": "^11.
|
|
195
|
+
"mocha": "^11.7.1",
|
|
196
196
|
"nodemon": "^3.1.10",
|
|
197
197
|
"nyc": "^17.1.0",
|
|
198
198
|
"picocolors": "^1.1.1",
|
|
199
199
|
"picomatch": "^4.0.2",
|
|
200
200
|
"pinia": "^3.0.3",
|
|
201
|
-
"prettier": "^3.
|
|
201
|
+
"prettier": "^3.6.2",
|
|
202
202
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
203
203
|
"pretty-bytes": "^7.0.0",
|
|
204
204
|
"pretty-ms": "^9.2.0",
|
|
205
205
|
"requirejs": "^2.3.7",
|
|
206
|
-
"rollup": "^4.
|
|
206
|
+
"rollup": "^4.44.1",
|
|
207
207
|
"rollup-plugin-license": "^3.6.0",
|
|
208
208
|
"rollup-plugin-string": "^3.0.0",
|
|
209
209
|
"semver": "^7.7.2",
|
|
@@ -212,13 +212,14 @@
|
|
|
212
212
|
"source-map": "^0.7.4",
|
|
213
213
|
"source-map-support": "^0.5.21",
|
|
214
214
|
"systemjs": "^6.15.1",
|
|
215
|
-
"terser": "^5.
|
|
215
|
+
"terser": "^5.43.1",
|
|
216
216
|
"tslib": "^2.8.1",
|
|
217
217
|
"typescript": "^5.8.3",
|
|
218
|
-
"typescript-eslint": "^8.
|
|
219
|
-
"vite": "^
|
|
218
|
+
"typescript-eslint": "^8.35.1",
|
|
219
|
+
"vite": "^7.0.0",
|
|
220
220
|
"vitepress": "^1.6.3",
|
|
221
|
-
"vue": "^3.5.
|
|
221
|
+
"vue": "^3.5.17",
|
|
222
|
+
"vue-eslint-parser": "^10.2.0",
|
|
222
223
|
"vue-tsc": "^2.2.10",
|
|
223
224
|
"wasm-pack": "^0.13.1",
|
|
224
225
|
"yargs-parser": "^21.1.1"
|