@rollup/wasm-node 4.18.1 → 4.19.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/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 +183 -118
- 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 +183 -118
- 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 +18 -17
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.0
|
|
4
|
+
Sat, 20 Jul 2024 05:45:44 GMT - commit 28546b5821efcb72c2eb05f422d986524647a0e3
|
|
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
|
},
|