@rollup/wasm-node 4.18.1 → 4.19.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 +8 -5
- 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 +258 -135
- package/dist/es/shared/parseAst.js +25 -13
- 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.d.ts +19 -3
- 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 +25 -13
- package/dist/shared/rollup.js +258 -135
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +26 -25
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.19.1
|
|
4
|
+
Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -1204,27 +1204,29 @@ const nodeConverters = [
|
|
|
1204
1204
|
};
|
|
1205
1205
|
},
|
|
1206
1206
|
function classDeclaration(position, buffer) {
|
|
1207
|
-
const idPosition = buffer[position +
|
|
1208
|
-
const superClassPosition = buffer[position +
|
|
1207
|
+
const idPosition = buffer[position + 3];
|
|
1208
|
+
const superClassPosition = buffer[position + 4];
|
|
1209
1209
|
return {
|
|
1210
1210
|
type: 'ClassDeclaration',
|
|
1211
1211
|
start: buffer[position],
|
|
1212
1212
|
end: buffer[position + 1],
|
|
1213
|
+
decorators: convertNodeList(buffer[position + 2], buffer),
|
|
1213
1214
|
id: idPosition === 0 ? null : convertNode(idPosition, buffer),
|
|
1214
1215
|
superClass: superClassPosition === 0 ? null : convertNode(superClassPosition, buffer),
|
|
1215
|
-
body: convertNode(buffer[position +
|
|
1216
|
+
body: convertNode(buffer[position + 5], buffer)
|
|
1216
1217
|
};
|
|
1217
1218
|
},
|
|
1218
1219
|
function classExpression(position, buffer) {
|
|
1219
|
-
const idPosition = buffer[position +
|
|
1220
|
-
const superClassPosition = buffer[position +
|
|
1220
|
+
const idPosition = buffer[position + 3];
|
|
1221
|
+
const superClassPosition = buffer[position + 4];
|
|
1221
1222
|
return {
|
|
1222
1223
|
type: 'ClassExpression',
|
|
1223
1224
|
start: buffer[position],
|
|
1224
1225
|
end: buffer[position + 1],
|
|
1226
|
+
decorators: convertNodeList(buffer[position + 2], buffer),
|
|
1225
1227
|
id: idPosition === 0 ? null : convertNode(idPosition, buffer),
|
|
1226
1228
|
superClass: superClassPosition === 0 ? null : convertNode(superClassPosition, buffer),
|
|
1227
|
-
body: convertNode(buffer[position +
|
|
1229
|
+
body: convertNode(buffer[position + 5], buffer)
|
|
1228
1230
|
};
|
|
1229
1231
|
},
|
|
1230
1232
|
function conditionalExpression(position, buffer) {
|
|
@@ -1253,6 +1255,14 @@ const nodeConverters = [
|
|
|
1253
1255
|
end: buffer[position + 1]
|
|
1254
1256
|
};
|
|
1255
1257
|
},
|
|
1258
|
+
function decorator(position, buffer) {
|
|
1259
|
+
return {
|
|
1260
|
+
type: 'Decorator',
|
|
1261
|
+
start: buffer[position],
|
|
1262
|
+
end: buffer[position + 1],
|
|
1263
|
+
expression: convertNode(buffer[position + 2], buffer)
|
|
1264
|
+
};
|
|
1265
|
+
},
|
|
1256
1266
|
function directive(position, buffer) {
|
|
1257
1267
|
return {
|
|
1258
1268
|
type: 'ExpressionStatement',
|
|
@@ -1585,9 +1595,10 @@ const nodeConverters = [
|
|
|
1585
1595
|
end: buffer[position + 1],
|
|
1586
1596
|
static: (flags & 1) === 1,
|
|
1587
1597
|
computed: (flags & 2) === 2,
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1598
|
+
decorators: convertNodeList(buffer[position + 3], buffer),
|
|
1599
|
+
key: convertNode(buffer[position + 4], buffer),
|
|
1600
|
+
value: convertNode(buffer[position + 5], buffer),
|
|
1601
|
+
kind: FIXED_STRINGS[buffer[position + 6]]
|
|
1591
1602
|
};
|
|
1592
1603
|
},
|
|
1593
1604
|
function newExpression(position, buffer) {
|
|
@@ -1654,14 +1665,15 @@ const nodeConverters = [
|
|
|
1654
1665
|
},
|
|
1655
1666
|
function propertyDefinition(position, buffer) {
|
|
1656
1667
|
const flags = buffer[position + 2];
|
|
1657
|
-
const valuePosition = buffer[position +
|
|
1668
|
+
const valuePosition = buffer[position + 5];
|
|
1658
1669
|
return {
|
|
1659
1670
|
type: 'PropertyDefinition',
|
|
1660
1671
|
start: buffer[position],
|
|
1661
1672
|
end: buffer[position + 1],
|
|
1662
1673
|
static: (flags & 1) === 1,
|
|
1663
1674
|
computed: (flags & 2) === 2,
|
|
1664
|
-
|
|
1675
|
+
decorators: convertNodeList(buffer[position + 3], buffer),
|
|
1676
|
+
key: convertNode(buffer[position + 4], buffer),
|
|
1665
1677
|
value: valuePosition === 0 ? null : convertNode(valuePosition, buffer)
|
|
1666
1678
|
};
|
|
1667
1679
|
},
|
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.d.ts
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as estree from 'estree';
|
|
2
|
+
|
|
3
|
+
declare module 'estree' {
|
|
4
|
+
export interface Decorator extends estree.BaseNode {
|
|
5
|
+
type: 'Decorator';
|
|
6
|
+
expression: estree.Expression;
|
|
7
|
+
}
|
|
8
|
+
interface PropertyDefinition {
|
|
9
|
+
decorators: estree.Decorator[];
|
|
10
|
+
}
|
|
11
|
+
interface MethodDefinition {
|
|
12
|
+
decorators: estree.Decorator[];
|
|
13
|
+
}
|
|
14
|
+
interface BaseClass {
|
|
15
|
+
decorators: estree.Decorator[];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
2
18
|
|
|
3
19
|
export const VERSION: string;
|
|
4
20
|
|
|
@@ -996,8 +1012,8 @@ type OmittedEstreeKeys =
|
|
|
996
1012
|
| 'comments';
|
|
997
1013
|
type RollupAstNode<T> = Omit<T, OmittedEstreeKeys> & AstNodeLocation;
|
|
998
1014
|
|
|
999
|
-
type ProgramNode = RollupAstNode<Program>;
|
|
1000
|
-
export type AstNode = RollupAstNode<
|
|
1015
|
+
type ProgramNode = RollupAstNode<estree.Program>;
|
|
1016
|
+
export type AstNode = RollupAstNode<estree.Node>;
|
|
1001
1017
|
|
|
1002
1018
|
export function defineConfig(options: RollupOptions): RollupOptions;
|
|
1003
1019
|
export function defineConfig(options: RollupOptions[]): RollupOptions[];
|
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.19.1
|
|
4
|
+
Sat, 27 Jul 2024 04:53:31 GMT - commit 8b967917c2923dc6a02ca1238261387aefa2cb2f
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -1267,27 +1267,29 @@ const nodeConverters = [
|
|
|
1267
1267
|
};
|
|
1268
1268
|
},
|
|
1269
1269
|
function classDeclaration(position, buffer) {
|
|
1270
|
-
const idPosition = buffer[position +
|
|
1271
|
-
const superClassPosition = buffer[position +
|
|
1270
|
+
const idPosition = buffer[position + 3];
|
|
1271
|
+
const superClassPosition = buffer[position + 4];
|
|
1272
1272
|
return {
|
|
1273
1273
|
type: 'ClassDeclaration',
|
|
1274
1274
|
start: buffer[position],
|
|
1275
1275
|
end: buffer[position + 1],
|
|
1276
|
+
decorators: convertNodeList(buffer[position + 2], buffer),
|
|
1276
1277
|
id: idPosition === 0 ? null : convertNode(idPosition, buffer),
|
|
1277
1278
|
superClass: superClassPosition === 0 ? null : convertNode(superClassPosition, buffer),
|
|
1278
|
-
body: convertNode(buffer[position +
|
|
1279
|
+
body: convertNode(buffer[position + 5], buffer)
|
|
1279
1280
|
};
|
|
1280
1281
|
},
|
|
1281
1282
|
function classExpression(position, buffer) {
|
|
1282
|
-
const idPosition = buffer[position +
|
|
1283
|
-
const superClassPosition = buffer[position +
|
|
1283
|
+
const idPosition = buffer[position + 3];
|
|
1284
|
+
const superClassPosition = buffer[position + 4];
|
|
1284
1285
|
return {
|
|
1285
1286
|
type: 'ClassExpression',
|
|
1286
1287
|
start: buffer[position],
|
|
1287
1288
|
end: buffer[position + 1],
|
|
1289
|
+
decorators: convertNodeList(buffer[position + 2], buffer),
|
|
1288
1290
|
id: idPosition === 0 ? null : convertNode(idPosition, buffer),
|
|
1289
1291
|
superClass: superClassPosition === 0 ? null : convertNode(superClassPosition, buffer),
|
|
1290
|
-
body: convertNode(buffer[position +
|
|
1292
|
+
body: convertNode(buffer[position + 5], buffer)
|
|
1291
1293
|
};
|
|
1292
1294
|
},
|
|
1293
1295
|
function conditionalExpression(position, buffer) {
|
|
@@ -1316,6 +1318,14 @@ const nodeConverters = [
|
|
|
1316
1318
|
end: buffer[position + 1]
|
|
1317
1319
|
};
|
|
1318
1320
|
},
|
|
1321
|
+
function decorator(position, buffer) {
|
|
1322
|
+
return {
|
|
1323
|
+
type: 'Decorator',
|
|
1324
|
+
start: buffer[position],
|
|
1325
|
+
end: buffer[position + 1],
|
|
1326
|
+
expression: convertNode(buffer[position + 2], buffer)
|
|
1327
|
+
};
|
|
1328
|
+
},
|
|
1319
1329
|
function directive(position, buffer) {
|
|
1320
1330
|
return {
|
|
1321
1331
|
type: 'ExpressionStatement',
|
|
@@ -1648,9 +1658,10 @@ const nodeConverters = [
|
|
|
1648
1658
|
end: buffer[position + 1],
|
|
1649
1659
|
static: (flags & 1) === 1,
|
|
1650
1660
|
computed: (flags & 2) === 2,
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1661
|
+
decorators: convertNodeList(buffer[position + 3], buffer),
|
|
1662
|
+
key: convertNode(buffer[position + 4], buffer),
|
|
1663
|
+
value: convertNode(buffer[position + 5], buffer),
|
|
1664
|
+
kind: FIXED_STRINGS[buffer[position + 6]]
|
|
1654
1665
|
};
|
|
1655
1666
|
},
|
|
1656
1667
|
function newExpression(position, buffer) {
|
|
@@ -1717,14 +1728,15 @@ const nodeConverters = [
|
|
|
1717
1728
|
},
|
|
1718
1729
|
function propertyDefinition(position, buffer) {
|
|
1719
1730
|
const flags = buffer[position + 2];
|
|
1720
|
-
const valuePosition = buffer[position +
|
|
1731
|
+
const valuePosition = buffer[position + 5];
|
|
1721
1732
|
return {
|
|
1722
1733
|
type: 'PropertyDefinition',
|
|
1723
1734
|
start: buffer[position],
|
|
1724
1735
|
end: buffer[position + 1],
|
|
1725
1736
|
static: (flags & 1) === 1,
|
|
1726
1737
|
computed: (flags & 2) === 2,
|
|
1727
|
-
|
|
1738
|
+
decorators: convertNodeList(buffer[position + 3], buffer),
|
|
1739
|
+
key: convertNode(buffer[position + 4], buffer),
|
|
1728
1740
|
value: valuePosition === 0 ? null : convertNode(valuePosition, buffer)
|
|
1729
1741
|
};
|
|
1730
1742
|
},
|