@rollup/wasm-node 4.44.1 → 4.45.0

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 CHANGED
@@ -18,12 +18,10 @@ MIT, ISC, 0BSD
18
18
  # Bundled dependencies:
19
19
  ## @jridgewell/sourcemap-codec
20
20
  License: MIT
21
- By: Rich Harris
22
- Repository: git+https://github.com/jridgewell/sourcemap-codec.git
21
+ By: Justin Ridgewell
22
+ Repository: git+https://github.com/jridgewell/sourcemaps.git
23
23
 
24
- > The MIT License
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
- > THE SOFTWARE.
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.1
5
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
4
+ Rollup.js v4.45.0
5
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
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.1";
30
+ var version = "4.45.0";
31
31
 
32
- const comma = ','.charCodeAt(0);
33
- const semicolon = ';'.charCodeAt(0);
34
- const chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
35
- const intToChar = new Uint8Array(64); // 64 possible chars.
36
- const charToInt = new Uint8Array(128); // z is 122 in ASCII
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
- const c = chars$1.charCodeAt(i);
39
- intToChar[i] = c;
40
- charToInt[c] = i;
39
+ const c = chars$1.charCodeAt(i);
40
+ intToChar[i] = c;
41
+ charToInt[c] = i;
41
42
  }
42
43
  function decodeInteger(reader, relative) {
43
- let value = 0;
44
- let shift = 0;
45
- let integer = 0;
46
- do {
47
- const c = reader.next();
48
- integer = charToInt[c];
49
- value |= (integer & 31) << shift;
50
- shift += 5;
51
- } while (integer & 32);
52
- const shouldNegate = value & 1;
53
- value >>>= 1;
54
- if (shouldNegate) {
55
- value = -2147483648 | -value;
56
- }
57
- return relative + value;
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
- let delta = num - relative;
61
- delta = delta < 0 ? (-delta << 1) | 1 : delta << 1;
62
- do {
63
- let clamped = delta & 0b011111;
64
- delta >>>= 5;
65
- if (delta > 0)
66
- clamped |= 0b100000;
67
- builder.write(intToChar[clamped]);
68
- } while (delta > 0);
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
- if (reader.pos >= max)
73
- return false;
74
- return reader.peek() !== comma;
72
+ if (reader.pos >= max) return false;
73
+ return reader.peek() !== comma;
75
74
  }
76
75
 
77
- const bufLength = 1024 * 16;
78
- // Provide a fallback for older environments.
79
- const td = typeof TextDecoder !== 'undefined'
80
- ? /* #__PURE__ */ new TextDecoder()
81
- : typeof Buffer !== 'undefined'
82
- ? {
83
- decode(buf) {
84
- const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
85
- return out.toString();
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
- indexOf(char) {
128
- const { buffer, pos } = this;
129
- const idx = buffer.indexOf(char, pos);
130
- return idx === -1 ? buffer.length : idx;
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
- const { length } = mappings;
136
- const reader = new StringReader(mappings);
137
- const decoded = [];
138
- let genColumn = 0;
139
- let sourcesIndex = 0;
140
- let sourceLine = 0;
141
- let sourceColumn = 0;
142
- let namesIndex = 0;
143
- do {
144
- const semi = reader.indexOf(';');
145
- const line = [];
146
- let sorted = true;
147
- let lastCol = 0;
148
- genColumn = 0;
149
- while (reader.pos < semi) {
150
- let seg;
151
- genColumn = decodeInteger(reader, genColumn);
152
- if (genColumn < lastCol)
153
- sorted = false;
154
- lastCol = genColumn;
155
- if (hasMoreVlq(reader, semi)) {
156
- sourcesIndex = decodeInteger(reader, sourcesIndex);
157
- sourceLine = decodeInteger(reader, sourceLine);
158
- sourceColumn = decodeInteger(reader, sourceColumn);
159
- if (hasMoreVlq(reader, semi)) {
160
- namesIndex = decodeInteger(reader, namesIndex);
161
- seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
162
- }
163
- else {
164
- seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
165
- }
166
- }
167
- else {
168
- seg = [genColumn];
169
- }
170
- line.push(seg);
171
- reader.pos++;
172
- }
173
- if (!sorted)
174
- sort(line);
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
- line.sort(sortComparator);
173
+ line.sort(sortComparator);
182
174
  }
183
175
  function sortComparator(a, b) {
184
- return a[0] - b[0];
176
+ return a[0] - b[0];
185
177
  }
186
178
  function encode(decoded) {
187
- const writer = new StringWriter();
188
- let sourcesIndex = 0;
189
- let sourceLine = 0;
190
- let sourceColumn = 0;
191
- let namesIndex = 0;
192
- for (let i = 0; i < decoded.length; i++) {
193
- const line = decoded[i];
194
- if (i > 0)
195
- writer.write(semicolon);
196
- if (line.length === 0)
197
- continue;
198
- let genColumn = 0;
199
- for (let j = 0; j < line.length; j++) {
200
- const segment = line[j];
201
- if (j > 0)
202
- writer.write(comma);
203
- genColumn = encodeInteger(writer, segment[0], genColumn);
204
- if (segment.length === 1)
205
- continue;
206
- sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
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
- return writer.flush();
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 &&
@@ -12270,8 +12258,20 @@ class ConditionalExpression extends NodeBase {
12270
12258
  }
12271
12259
  getLiteralValueAtPath(path, recursionTracker, origin) {
12272
12260
  const usedBranch = this.getUsedBranch();
12273
- if (!usedBranch)
12274
- return UnknownValue;
12261
+ if (!usedBranch) {
12262
+ const consequentValue = this.consequent.getLiteralValueAtPath(path, recursionTracker, origin);
12263
+ const castedConsequentValue = tryCastLiteralValueToBoolean(consequentValue);
12264
+ if (castedConsequentValue === UnknownValue)
12265
+ return UnknownValue;
12266
+ const alternateValue = this.alternate.getLiteralValueAtPath(path, recursionTracker, origin);
12267
+ const castedAlternateValue = tryCastLiteralValueToBoolean(alternateValue);
12268
+ if (castedConsequentValue !== castedAlternateValue)
12269
+ return UnknownValue;
12270
+ this.expressionsToBeDeoptimized.push(origin);
12271
+ if (consequentValue !== alternateValue)
12272
+ return castedConsequentValue ? UnknownTruthyValue : UnknownFalsyValue;
12273
+ return consequentValue;
12274
+ }
12275
12275
  this.expressionsToBeDeoptimized.push(origin);
12276
12276
  return usedBranch.getLiteralValueAtPath(path, recursionTracker, origin);
12277
12277
  }
@@ -15734,7 +15734,10 @@ const bufferParsers = [
15734
15734
  const body = (node.body = new Array(length));
15735
15735
  for (let index = 0; index < length; index++) {
15736
15736
  const nodePosition = buffer[bodyPosition + 1 + index];
15737
- body[index] = convertNode(node, (buffer[nodePosition + 3] & 1) === 0 ? scope.instanceScope : scope, nodePosition, buffer);
15737
+ body[index] = convertNode(node, buffer[nodePosition] !== 79 &&
15738
+ (buffer[nodePosition + 3] & /* the static flag is always first */ 1) === 0
15739
+ ? scope.instanceScope
15740
+ : scope, nodePosition, buffer);
15738
15741
  }
15739
15742
  }
15740
15743
  else {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
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.1";
45
+ var version = "4.45.0";
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
- const comma = ','.charCodeAt(0);
3838
- const semicolon = ';'.charCodeAt(0);
3839
- const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
3840
- const intToChar = new Uint8Array(64); // 64 possible chars.
3841
- const charToInt = new Uint8Array(128); // z is 122 in ASCII
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
- const c = chars.charCodeAt(i);
3844
- intToChar[i] = c;
3845
- charToInt[c] = i;
3844
+ const c = chars.charCodeAt(i);
3845
+ intToChar[i] = c;
3846
+ charToInt[c] = i;
3846
3847
  }
3847
3848
  function decodeInteger(reader, relative) {
3848
- let value = 0;
3849
- let shift = 0;
3850
- let integer = 0;
3851
- do {
3852
- const c = reader.next();
3853
- integer = charToInt[c];
3854
- value |= (integer & 31) << shift;
3855
- shift += 5;
3856
- } while (integer & 32);
3857
- const shouldNegate = value & 1;
3858
- value >>>= 1;
3859
- if (shouldNegate) {
3860
- value = -2147483648 | -value;
3861
- }
3862
- return relative + value;
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
- let delta = num - relative;
3866
- delta = delta < 0 ? (-delta << 1) | 1 : delta << 1;
3867
- do {
3868
- let clamped = delta & 0b011111;
3869
- delta >>>= 5;
3870
- if (delta > 0)
3871
- clamped |= 0b100000;
3872
- builder.write(intToChar[clamped]);
3873
- } while (delta > 0);
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
- if (reader.pos >= max)
3878
- return false;
3879
- return reader.peek() !== comma;
3877
+ if (reader.pos >= max) return false;
3878
+ return reader.peek() !== comma;
3880
3879
  }
3881
3880
 
3882
- const bufLength = 1024 * 16;
3883
- // Provide a fallback for older environments.
3884
- const td = typeof TextDecoder !== 'undefined'
3885
- ? /* #__PURE__ */ new TextDecoder()
3886
- : typeof Buffer !== 'undefined'
3887
- ? {
3888
- decode(buf) {
3889
- const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
3890
- return out.toString();
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
- indexOf(char) {
3933
- const { buffer, pos } = this;
3934
- const idx = buffer.indexOf(char, pos);
3935
- return idx === -1 ? buffer.length : idx;
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
- const { length } = mappings;
3941
- const reader = new StringReader(mappings);
3942
- const decoded = [];
3943
- let genColumn = 0;
3944
- let sourcesIndex = 0;
3945
- let sourceLine = 0;
3946
- let sourceColumn = 0;
3947
- let namesIndex = 0;
3948
- do {
3949
- const semi = reader.indexOf(';');
3950
- const line = [];
3951
- let sorted = true;
3952
- let lastCol = 0;
3953
- genColumn = 0;
3954
- while (reader.pos < semi) {
3955
- let seg;
3956
- genColumn = decodeInteger(reader, genColumn);
3957
- if (genColumn < lastCol)
3958
- sorted = false;
3959
- lastCol = genColumn;
3960
- if (hasMoreVlq(reader, semi)) {
3961
- sourcesIndex = decodeInteger(reader, sourcesIndex);
3962
- sourceLine = decodeInteger(reader, sourceLine);
3963
- sourceColumn = decodeInteger(reader, sourceColumn);
3964
- if (hasMoreVlq(reader, semi)) {
3965
- namesIndex = decodeInteger(reader, namesIndex);
3966
- seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
3967
- }
3968
- else {
3969
- seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
3970
- }
3971
- }
3972
- else {
3973
- seg = [genColumn];
3974
- }
3975
- line.push(seg);
3976
- reader.pos++;
3977
- }
3978
- if (!sorted)
3979
- sort(line);
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
- line.sort(sortComparator);
3978
+ line.sort(sortComparator);
3987
3979
  }
3988
3980
  function sortComparator(a, b) {
3989
- return a[0] - b[0];
3981
+ return a[0] - b[0];
3990
3982
  }
3991
3983
  function encode(decoded) {
3992
- const writer = new StringWriter();
3993
- let sourcesIndex = 0;
3994
- let sourceLine = 0;
3995
- let sourceColumn = 0;
3996
- let namesIndex = 0;
3997
- for (let i = 0; i < decoded.length; i++) {
3998
- const line = decoded[i];
3999
- if (i > 0)
4000
- writer.write(semicolon);
4001
- if (line.length === 0)
4002
- continue;
4003
- let genColumn = 0;
4004
- for (let j = 0; j < line.length; j++) {
4005
- const segment = line[j];
4006
- if (j > 0)
4007
- writer.write(comma);
4008
- genColumn = encodeInteger(writer, segment[0], genColumn);
4009
- if (segment.length === 1)
4010
- continue;
4011
- sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
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
- return writer.flush();
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 &&
@@ -13879,8 +13867,20 @@ class ConditionalExpression extends NodeBase {
13879
13867
  }
13880
13868
  getLiteralValueAtPath(path, recursionTracker, origin) {
13881
13869
  const usedBranch = this.getUsedBranch();
13882
- if (!usedBranch)
13883
- return UnknownValue;
13870
+ if (!usedBranch) {
13871
+ const consequentValue = this.consequent.getLiteralValueAtPath(path, recursionTracker, origin);
13872
+ const castedConsequentValue = tryCastLiteralValueToBoolean(consequentValue);
13873
+ if (castedConsequentValue === UnknownValue)
13874
+ return UnknownValue;
13875
+ const alternateValue = this.alternate.getLiteralValueAtPath(path, recursionTracker, origin);
13876
+ const castedAlternateValue = tryCastLiteralValueToBoolean(alternateValue);
13877
+ if (castedConsequentValue !== castedAlternateValue)
13878
+ return UnknownValue;
13879
+ this.expressionsToBeDeoptimized.push(origin);
13880
+ if (consequentValue !== alternateValue)
13881
+ return castedConsequentValue ? UnknownTruthyValue : UnknownFalsyValue;
13882
+ return consequentValue;
13883
+ }
13884
13884
  this.expressionsToBeDeoptimized.push(origin);
13885
13885
  return usedBranch.getLiteralValueAtPath(path, recursionTracker, origin);
13886
13886
  }
@@ -17343,7 +17343,10 @@ const bufferParsers = [
17343
17343
  const body = (node.body = new Array(length));
17344
17344
  for (let index = 0; index < length; index++) {
17345
17345
  const nodePosition = buffer[bodyPosition + 1 + index];
17346
- body[index] = convertNode(node, (buffer[nodePosition + 3] & 1) === 0 ? scope.instanceScope : scope, nodePosition, buffer);
17346
+ body[index] = convertNode(node, buffer[nodePosition] !== 79 &&
17347
+ (buffer[nodePosition + 3] & /* the static flag is always first */ 1) === 0
17348
+ ? scope.instanceScope
17349
+ : scope, nodePosition, buffer);
17347
17350
  }
17348
17351
  }
17349
17352
  else {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.44.1
4
- Thu, 26 Jun 2025 04:33:05 GMT - commit 5a7f9e215a11de165b85dafd64350474847ec6db
3
+ Rollup.js v4.45.0
4
+ Sat, 12 Jul 2025 05:53:06 GMT - commit b7c7c1159f70ebe8ad6f94c942ebab2fa59c7982
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.44.1",
3
+ "version": "4.45.0",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -34,27 +34,27 @@
34
34
  "devDependencies": {
35
35
  "@codemirror/commands": "^6.8.1",
36
36
  "@codemirror/lang-javascript": "^6.2.4",
37
- "@codemirror/language": "^6.11.1",
37
+ "@codemirror/language": "^6.11.2",
38
38
  "@codemirror/search": "^6.5.11",
39
39
  "@codemirror/state": "^6.5.2",
40
- "@codemirror/view": "^6.37.2",
41
- "@eslint/js": "^9.29.0",
40
+ "@codemirror/view": "^6.38.0",
41
+ "@eslint/js": "^9.30.0",
42
42
  "@inquirer/prompts": "^7.5.3",
43
- "@jridgewell/sourcemap-codec": "^1.5.0",
44
- "@mermaid-js/mermaid-cli": "^11.4.3",
43
+ "@jridgewell/sourcemap-codec": "^1.5.3",
44
+ "@mermaid-js/mermaid-cli": "^11.6.0",
45
45
  "@napi-rs/cli": "^2.18.4",
46
46
  "@rollup/plugin-alias": "^5.1.1",
47
47
  "@rollup/plugin-buble": "^1.0.3",
48
- "@rollup/plugin-commonjs": "^28.0.5",
48
+ "@rollup/plugin-commonjs": "^28.0.6",
49
49
  "@rollup/plugin-json": "^6.1.0",
50
50
  "@rollup/plugin-node-resolve": "^16.0.1",
51
51
  "@rollup/plugin-replace": "^6.0.2",
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
- "@rollup/plugin-typescript": "^12.1.2",
54
- "@rollup/pluginutils": "^5.1.4",
55
- "@shikijs/vitepress-twoslash": "^3.6.0",
53
+ "@rollup/plugin-typescript": "^12.1.4",
54
+ "@rollup/pluginutils": "^5.2.0",
55
+ "@shikijs/vitepress-twoslash": "^3.7.0",
56
56
  "@types/mocha": "^10.0.10",
57
- "@types/node": "^18.19.112",
57
+ "@types/node": "^20.19.0",
58
58
  "@types/picomatch": "^4.0.0",
59
59
  "@types/semver": "^7.7.0",
60
60
  "@types/yargs-parser": "^21.0.3",
@@ -65,15 +65,15 @@
65
65
  "buble": "^0.20.0",
66
66
  "builtin-modules": "^5.0.0",
67
67
  "chokidar": "^3.6.0",
68
- "concurrently": "^9.1.2",
68
+ "concurrently": "^9.2.0",
69
69
  "core-js": "3.38.1",
70
70
  "cross-env": "^7.0.3",
71
71
  "date-time": "^4.0.0",
72
72
  "es5-shim": "^4.6.7",
73
73
  "es6-shim": "^0.35.8",
74
- "eslint": "^9.29.0",
74
+ "eslint": "^9.30.0",
75
75
  "eslint-config-prettier": "^10.1.5",
76
- "eslint-plugin-prettier": "^5.4.1",
76
+ "eslint-plugin-prettier": "^5.5.1",
77
77
  "eslint-plugin-unicorn": "^59.0.1",
78
78
  "eslint-plugin-vue": "^10.2.0",
79
79
  "fixturify": "^3.0.0",
@@ -87,18 +87,18 @@
87
87
  "locate-character": "^3.0.0",
88
88
  "magic-string": "^0.30.17",
89
89
  "memfs": "^4.17.2",
90
- "mocha": "^11.6.0",
90
+ "mocha": "^11.7.1",
91
91
  "nodemon": "^3.1.10",
92
92
  "nyc": "^17.1.0",
93
93
  "picocolors": "^1.1.1",
94
94
  "picomatch": "^4.0.2",
95
95
  "pinia": "^3.0.3",
96
- "prettier": "^3.5.3",
96
+ "prettier": "^3.6.2",
97
97
  "prettier-plugin-organize-imports": "^4.1.0",
98
98
  "pretty-bytes": "^7.0.0",
99
99
  "pretty-ms": "^9.2.0",
100
100
  "requirejs": "^2.3.7",
101
- "rollup": "^4.43.0",
101
+ "rollup": "^4.44.1",
102
102
  "rollup-plugin-license": "^3.6.0",
103
103
  "rollup-plugin-string": "^3.0.0",
104
104
  "semver": "^7.7.2",
@@ -107,13 +107,14 @@
107
107
  "source-map": "^0.7.4",
108
108
  "source-map-support": "^0.5.21",
109
109
  "systemjs": "^6.15.1",
110
- "terser": "^5.42.0",
110
+ "terser": "^5.43.1",
111
111
  "tslib": "^2.8.1",
112
112
  "typescript": "^5.8.3",
113
- "typescript-eslint": "^8.34.1",
114
- "vite": "^6.3.5",
113
+ "typescript-eslint": "^8.35.1",
114
+ "vite": "^7.0.0",
115
115
  "vitepress": "^1.6.3",
116
- "vue": "^3.5.16",
116
+ "vue": "^3.5.17",
117
+ "vue-eslint-parser": "^10.2.0",
117
118
  "vue-tsc": "^2.2.10",
118
119
  "wasm-pack": "^0.13.1",
119
120
  "yargs-parser": "^21.1.1"
@@ -142,8 +143,8 @@
142
143
  "exports": {
143
144
  ".": {
144
145
  "types": "./dist/rollup.d.ts",
145
- "require": "./dist/rollup.js",
146
- "import": "./dist/es/rollup.js"
146
+ "import": "./dist/es/rollup.js",
147
+ "require": "./dist/rollup.js"
147
148
  },
148
149
  "./loadConfigFile": {
149
150
  "types": "./dist/loadConfigFile.d.ts",
@@ -152,13 +153,13 @@
152
153
  },
153
154
  "./getLogFilter": {
154
155
  "types": "./dist/getLogFilter.d.ts",
155
- "require": "./dist/getLogFilter.js",
156
- "import": "./dist/es/getLogFilter.js"
156
+ "import": "./dist/es/getLogFilter.js",
157
+ "require": "./dist/getLogFilter.js"
157
158
  },
158
159
  "./parseAst": {
159
160
  "types": "./dist/parseAst.d.ts",
160
- "require": "./dist/parseAst.js",
161
- "import": "./dist/es/parseAst.js"
161
+ "import": "./dist/es/parseAst.js",
162
+ "require": "./dist/parseAst.js"
162
163
  },
163
164
  "./dist/*": "./dist/*",
164
165
  "./package.json": "./package.json"