@rollup/wasm-node 4.64.9 → 5.0.0-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/LICENSE.md +3 -304
- package/dist/ast-types.d.ts +896 -0
- package/dist/bin/rollup +21 -22
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +1817 -1952
- package/dist/es/shared/parseAst.js +3567 -235
- package/dist/es/shared/watch.js +1765 -9600
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +3 -3
- package/dist/native.js +25 -7
- package/dist/parseAst.d.ts +13 -1
- package/dist/parseAst.js +8 -2
- package/dist/rollup.android-arm-eabi.node +0 -0
- package/dist/rollup.android-arm64.node +0 -0
- package/dist/rollup.d.ts +157 -105
- package/dist/rollup.darwin-arm64.node +0 -0
- package/dist/rollup.darwin-x64.node +0 -0
- package/dist/rollup.freebsd-arm64.node +0 -0
- package/dist/rollup.freebsd-x64.node +0 -0
- package/dist/rollup.js +2 -3
- package/dist/rollup.linux-arm-gnueabihf.node +0 -0
- package/dist/rollup.linux-arm-musleabihf.node +0 -0
- package/dist/rollup.linux-arm64-gnu.node +0 -0
- package/dist/rollup.linux-arm64-musl.node +0 -0
- package/dist/rollup.linux-loong64-gnu.node +0 -0
- package/dist/rollup.linux-loong64-musl.node +0 -0
- package/dist/rollup.linux-ppc64-gnu.node +0 -0
- package/dist/rollup.linux-ppc64-musl.node +0 -0
- package/dist/rollup.linux-riscv64-gnu.node +0 -0
- package/dist/rollup.linux-riscv64-musl.node +0 -0
- package/dist/rollup.linux-s390x-gnu.node +0 -0
- package/dist/rollup.linux-x64-gnu.node +0 -0
- package/dist/rollup.linux-x64-musl.node +0 -0
- package/dist/rollup.openbsd-x64.node +0 -0
- package/dist/rollup.openharmony-arm64.node +0 -0
- package/dist/rollup.win32-arm64-msvc.node +0 -0
- package/dist/rollup.win32-ia32-msvc.node +0 -0
- package/dist/rollup.win32-x64-gnu.node +0 -0
- package/dist/rollup.win32-x64-msvc.node +0 -0
- package/dist/shared/index.js +1775 -9597
- package/dist/shared/loadConfigFile.js +9 -9
- package/dist/shared/node-entry.js +2 -4
- package/dist/shared/parseAst.js +3595 -253
- package/dist/shared/rollup.js +1670 -1783
- package/dist/shared/watch-cli.js +10 -9
- package/dist/shared/watch.js +7 -11
- package/dist/wasm-node/bindings_wasm.js +31 -3
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +19 -22
- package/dist/shared/fsevents-importer.js +0 -37
package/dist/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js
|
|
4
|
-
|
|
3
|
+
Rollup.js v5.0.0-1
|
|
4
|
+
Sun, 18 Oct 2026 06:06:25 GMT - commit ed75a6895d5bc62fdbff91b9d48e22e6e281e3bc
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -20,16 +20,17 @@ const rollup = require('./rollup.js');
|
|
|
20
20
|
const parseAst_js = require('./parseAst.js');
|
|
21
21
|
const loadConfigFile_js = require('./loadConfigFile.js');
|
|
22
22
|
const node_child_process = require('node:child_process');
|
|
23
|
+
require('node:events');
|
|
24
|
+
require('node:fs');
|
|
25
|
+
require('node:path');
|
|
26
|
+
require('node:stream');
|
|
27
|
+
require('node:os');
|
|
28
|
+
require('util');
|
|
23
29
|
require('path');
|
|
24
30
|
require('fs');
|
|
25
|
-
require('
|
|
26
|
-
require('stream');
|
|
27
|
-
require('os');
|
|
28
|
-
require('./fsevents-importer.js');
|
|
29
|
-
require('events');
|
|
30
|
-
require('node:path');
|
|
31
|
-
require('../native.js');
|
|
31
|
+
require('node:module');
|
|
32
32
|
require('node:perf_hooks');
|
|
33
|
+
require('../native.js');
|
|
33
34
|
require('node:url');
|
|
34
35
|
require('../getLogFilter.js');
|
|
35
36
|
|
package/dist/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js
|
|
4
|
-
|
|
3
|
+
Rollup.js v5.0.0-1
|
|
4
|
+
Sun, 18 Oct 2026 06:06:25 GMT - commit ed75a6895d5bc62fdbff91b9d48e22e6e281e3bc
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
13
13
|
|
|
14
14
|
const rollup = require('./rollup.js');
|
|
15
|
-
const
|
|
15
|
+
const sp = require('node:path');
|
|
16
16
|
const process = require('node:process');
|
|
17
17
|
const index = require('./index.js');
|
|
18
18
|
const node_os = require('node:os');
|
|
@@ -22,12 +22,9 @@ require('../native.js');
|
|
|
22
22
|
require('path');
|
|
23
23
|
require('node:perf_hooks');
|
|
24
24
|
require('node:fs/promises');
|
|
25
|
-
require('
|
|
26
|
-
require('
|
|
27
|
-
require('stream');
|
|
28
|
-
require('os');
|
|
29
|
-
require('./fsevents-importer.js');
|
|
30
|
-
require('events');
|
|
25
|
+
require('node:events');
|
|
26
|
+
require('node:fs');
|
|
27
|
+
require('node:stream');
|
|
31
28
|
|
|
32
29
|
class FileWatcher {
|
|
33
30
|
constructor(task, chokidarOptions) {
|
|
@@ -254,14 +251,13 @@ class Task {
|
|
|
254
251
|
this.outputs = this.options.output;
|
|
255
252
|
this.outputFiles = this.outputs.map(output => {
|
|
256
253
|
if (output.file || output.dir)
|
|
257
|
-
return
|
|
254
|
+
return sp.resolve(output.file || output.dir);
|
|
258
255
|
return undefined;
|
|
259
256
|
});
|
|
260
257
|
this.watchOptions = this.options.watch || {};
|
|
261
258
|
this.filter = rollup.createFilter(this.watchOptions.include, this.watchOptions.exclude);
|
|
262
259
|
this.fileWatcher = new FileWatcher(this, {
|
|
263
260
|
...this.watchOptions.chokidar,
|
|
264
|
-
disableGlobbing: true,
|
|
265
261
|
ignoreInitial: true
|
|
266
262
|
});
|
|
267
263
|
}
|
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
* @param {string} code
|
|
5
5
|
* @param {boolean} allow_return_outside_function
|
|
6
6
|
* @param {boolean} jsx
|
|
7
|
-
* @param {boolean} swap_byte_order
|
|
8
7
|
* @returns {Uint8Array}
|
|
9
8
|
*/
|
|
10
|
-
function parse(code, allow_return_outside_function, jsx
|
|
9
|
+
function parse(code, allow_return_outside_function, jsx) {
|
|
11
10
|
try {
|
|
12
11
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13
12
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
|
|
14
13
|
const len0 = WASM_VECTOR_LEN;
|
|
15
|
-
wasm.parse(retptr, ptr0, len0, allow_return_outside_function, jsx
|
|
14
|
+
wasm.parse(retptr, ptr0, len0, allow_return_outside_function, jsx);
|
|
16
15
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17
16
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18
17
|
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
@@ -24,6 +23,31 @@ function parse(code, allow_return_outside_function, jsx, swap_byte_order) {
|
|
|
24
23
|
}
|
|
25
24
|
exports.parse = parse;
|
|
26
25
|
|
|
26
|
+
/**
|
|
27
|
+
* @param {string} code
|
|
28
|
+
* @param {boolean} allow_return_outside_function
|
|
29
|
+
* @param {boolean} jsx
|
|
30
|
+
* @param {BigUint64Array} walked_nodes_bitset
|
|
31
|
+
* @param {boolean} collect_scopes
|
|
32
|
+
* @returns {Uint8Array}
|
|
33
|
+
*/
|
|
34
|
+
function parseAndWalkSync(code, allow_return_outside_function, jsx, walked_nodes_bitset, collect_scopes) {
|
|
35
|
+
try {
|
|
36
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
37
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
|
|
38
|
+
const len0 = WASM_VECTOR_LEN;
|
|
39
|
+
wasm.parseAndWalkSync(retptr, ptr0, len0, allow_return_outside_function, jsx, addHeapObject(walked_nodes_bitset), collect_scopes);
|
|
40
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
41
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
42
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
43
|
+
wasm.__wbindgen_export(r0, r1 * 1, 1);
|
|
44
|
+
return v2;
|
|
45
|
+
} finally {
|
|
46
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.parseAndWalkSync = parseAndWalkSync;
|
|
50
|
+
|
|
27
51
|
/**
|
|
28
52
|
* @param {Uint8Array} input
|
|
29
53
|
* @returns {string}
|
|
@@ -106,6 +130,10 @@ function __wbg_get_imports() {
|
|
|
106
130
|
wasm.__wbindgen_export(deferred0_0, deferred0_1, 1);
|
|
107
131
|
}
|
|
108
132
|
},
|
|
133
|
+
__wbg_get_index_511c6dca3ba3bccb: function(arg0, arg1) {
|
|
134
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
135
|
+
return ret;
|
|
136
|
+
},
|
|
109
137
|
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
110
138
|
const ret = getObject(arg0).length;
|
|
111
139
|
return ret;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-1",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -26,11 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://rollupjs.org/",
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@napi-rs/lzma-linux-x64-gnu": "1.5.1"
|
|
30
|
-
"fsevents": "~2.3.2"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@types/estree": "1.0.9"
|
|
29
|
+
"@napi-rs/lzma-linux-x64-gnu": "1.5.1"
|
|
34
30
|
},
|
|
35
31
|
"devDependenciesComments": {
|
|
36
32
|
"core-js": "We only update manually as every update requires a snapshot update"
|
|
@@ -45,22 +41,22 @@
|
|
|
45
41
|
"@emnapi/core": "^1.11.3",
|
|
46
42
|
"@emnapi/runtime": "^1.11.3",
|
|
47
43
|
"@eslint/js": "^10.0.1",
|
|
48
|
-
"@inquirer/prompts": "^7.
|
|
44
|
+
"@inquirer/prompts": "^8.7.2",
|
|
49
45
|
"@jridgewell/sourcemap-codec": "^1.6.0",
|
|
50
46
|
"@mermaid-js/mermaid-cli": "^12.0.0",
|
|
51
|
-
"@napi-rs/cli": "3.4
|
|
47
|
+
"@napi-rs/cli": "3.7.4",
|
|
52
48
|
"@rollup/plugin-alias": "^6.0.0",
|
|
53
49
|
"@rollup/plugin-buble": "^1.0.3",
|
|
54
50
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
55
51
|
"@rollup/plugin-json": "^6.1.0",
|
|
56
52
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
57
53
|
"@rollup/plugin-replace": "^6.0.3",
|
|
58
|
-
"@rollup/plugin-terser": "^0.
|
|
54
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
59
55
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
60
56
|
"@rollup/pluginutils": "^5.4.0",
|
|
61
57
|
"@shikijs/vitepress-twoslash": "^4.5.0",
|
|
62
58
|
"@types/mocha": "^10.0.10",
|
|
63
|
-
"@types/node": "^
|
|
59
|
+
"@types/node": "^22.19.0",
|
|
64
60
|
"@types/picomatch": "^4.0.3",
|
|
65
61
|
"@types/semver": "^7.8.0",
|
|
66
62
|
"@types/yargs-parser": "^21.0.3",
|
|
@@ -71,8 +67,9 @@
|
|
|
71
67
|
"acorn-jsx": "^5.3.2",
|
|
72
68
|
"buble": "^0.20.0",
|
|
73
69
|
"builtin-modules": "^5.4.0",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
70
|
+
"c8": "^12.0.0",
|
|
71
|
+
"chokidar": "^5.0.0",
|
|
72
|
+
"concurrently": "^10.0.5",
|
|
76
73
|
"core-js": "3.38.1",
|
|
77
74
|
"date-time": "^4.0.0",
|
|
78
75
|
"es5-shim": "^4.6.7",
|
|
@@ -82,8 +79,9 @@
|
|
|
82
79
|
"eslint-plugin-prettier": "^5.5.6",
|
|
83
80
|
"eslint-plugin-unicorn": "^78.0.0",
|
|
84
81
|
"eslint-plugin-vue": "^10.11.1",
|
|
82
|
+
"esmock": "^2.7.6",
|
|
83
|
+
"find-yarn-workspace-root": "file:stubs/find-yarn-workspace-root",
|
|
85
84
|
"fixturify": "^3.0.0",
|
|
86
|
-
"flru": "^1.0.2",
|
|
87
85
|
"fs-extra": "^11.4.1",
|
|
88
86
|
"github-api": "^3.4.0",
|
|
89
87
|
"globals": "^17.13.0",
|
|
@@ -93,10 +91,8 @@
|
|
|
93
91
|
"locate-character": "^3.0.0",
|
|
94
92
|
"magic-string": "^1.4.3",
|
|
95
93
|
"memfs": "^4.80.0",
|
|
96
|
-
"mocha": "^
|
|
97
|
-
"nodemon": "^3.1.14",
|
|
94
|
+
"mocha": "^12.0.2",
|
|
98
95
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
99
|
-
"nyc": "^18.0.0",
|
|
100
96
|
"patch-package": "^8.0.1",
|
|
101
97
|
"picocolors": "^1.1.1",
|
|
102
98
|
"picomatch": "^4.0.7",
|
|
@@ -109,7 +105,6 @@
|
|
|
109
105
|
"rollup": "^4.64.5",
|
|
110
106
|
"rollup-plugin-license": "^3.7.1",
|
|
111
107
|
"semver": "^7.8.5",
|
|
112
|
-
"shx": "^0.4.0",
|
|
113
108
|
"signal-exit": "^4.1.0",
|
|
114
109
|
"source-map": "^0.8.0",
|
|
115
110
|
"source-map-support": "^0.5.21",
|
|
@@ -124,11 +119,12 @@
|
|
|
124
119
|
"vue-eslint-parser": "^10.4.1",
|
|
125
120
|
"vue-tsc": "^3.3.13",
|
|
126
121
|
"wasm-pack": "^0.15.0",
|
|
127
|
-
"yargs-parser": "^
|
|
122
|
+
"yargs-parser": "^22.0.0"
|
|
128
123
|
},
|
|
129
124
|
"overrides": {
|
|
130
125
|
"axios": "^1.20.0",
|
|
131
126
|
"esbuild": ">0.24.2",
|
|
127
|
+
"find-yarn-workspace-root": "$find-yarn-workspace-root",
|
|
132
128
|
"lodash-es": ">4.17.22",
|
|
133
129
|
"path-scurry": {
|
|
134
130
|
"lru-cache": ">=11.0.0"
|
|
@@ -144,9 +140,10 @@
|
|
|
144
140
|
"vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges",
|
|
145
141
|
"@emnapi/core": "If missing this fails npm install for Linux ARM",
|
|
146
142
|
"@emnapi/runtime": "If missing this fails npm install for Linux ARM",
|
|
147
|
-
"@napi-rs/lzma-linux-x64-gnu": "If missing, napi build --use-napi-cross
|
|
143
|
+
"@napi-rs/lzma-linux-x64-gnu": "If missing, napi build --use-napi-cross fails (#6461)",
|
|
148
144
|
"react": "If missing this fails npm install for Linux ARM",
|
|
149
|
-
"react-dom": "If missing this fails npm install for Linux ARM"
|
|
145
|
+
"react-dom": "If missing this fails npm install for Linux ARM",
|
|
146
|
+
"find-yarn-workspace-root": "Stub that removes patch-package's vulnerable braces dependency; only used for yarn workspaces"
|
|
150
147
|
},
|
|
151
148
|
"files": [
|
|
152
149
|
"dist/wasm-node/*.wasm",
|
|
@@ -157,8 +154,8 @@
|
|
|
157
154
|
"dist/es/package.json"
|
|
158
155
|
],
|
|
159
156
|
"engines": {
|
|
160
|
-
"node": ">=18.0
|
|
161
|
-
"npm": ">=
|
|
157
|
+
"node": ">=22.18.0",
|
|
158
|
+
"npm": ">=10.9.3"
|
|
162
159
|
},
|
|
163
160
|
"exports": {
|
|
164
161
|
".": {
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
@license
|
|
3
|
-
Rollup.js v4.64.9
|
|
4
|
-
Sat, 17 Oct 2026 18:30:26 GMT - commit 6278729a94e091b2b5f4cb8250852caaf21a2b62
|
|
5
|
-
|
|
6
|
-
https://github.com/rollup/rollup
|
|
7
|
-
|
|
8
|
-
Released under the MIT License.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
let fsEvents;
|
|
13
|
-
let fsEventsImportError;
|
|
14
|
-
async function loadFsEvents() {
|
|
15
|
-
try {
|
|
16
|
-
({ default: fsEvents } = await import('fsevents'));
|
|
17
|
-
}
|
|
18
|
-
catch (error) {
|
|
19
|
-
fsEventsImportError = error;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
// A call to this function will be injected into the chokidar code
|
|
23
|
-
function getFsEvents() {
|
|
24
|
-
if (fsEventsImportError)
|
|
25
|
-
throw fsEventsImportError;
|
|
26
|
-
return fsEvents;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const fseventsImporter = /*#__PURE__*/Object.defineProperty({
|
|
30
|
-
__proto__: null,
|
|
31
|
-
getFsEvents,
|
|
32
|
-
loadFsEvents
|
|
33
|
-
}, Symbol.toStringTag, { value: 'Module' });
|
|
34
|
-
|
|
35
|
-
exports.fseventsImporter = fseventsImporter;
|
|
36
|
-
exports.loadFsEvents = loadFsEvents;
|
|
37
|
-
//# sourceMappingURL=fsevents-importer.js.map
|