@rollup/wasm-node 4.63.2 → 4.63.4
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 +3 -3
- 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 +600 -148
- package/dist/es/shared/parseAst.js +4 -2
- package/dist/es/shared/watch.js +29 -19
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/native.js +3 -0
- 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 +4 -2
- package/dist/shared/rollup.js +600 -148
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +29 -19
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +5 -5
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.63.
|
|
4
|
-
Sat,
|
|
3
|
+
Rollup.js v4.63.4
|
|
4
|
+
Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -117,7 +117,7 @@ class Watcher {
|
|
|
117
117
|
this.buildDelay = Math.max(this.buildDelay, watch.buildDelay);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
process.nextTick(() => this.run());
|
|
120
|
+
process.nextTick(() => this.run().catch(error => this.reportError(error)));
|
|
121
121
|
}
|
|
122
122
|
async close() {
|
|
123
123
|
if (this.closed)
|
|
@@ -159,30 +159,40 @@ class Watcher {
|
|
|
159
159
|
this.invalidatedIds.clear();
|
|
160
160
|
await this.emitter.emit('restart');
|
|
161
161
|
this.emitter.removeListenersForCurrentRun();
|
|
162
|
-
this.run();
|
|
162
|
+
await this.run();
|
|
163
163
|
}
|
|
164
164
|
catch (error) {
|
|
165
|
-
this.
|
|
166
|
-
await this.emitter.emit('event', {
|
|
167
|
-
code: 'ERROR',
|
|
168
|
-
error,
|
|
169
|
-
result: null
|
|
170
|
-
});
|
|
171
|
-
await this.emitter.emit('event', {
|
|
172
|
-
code: 'END'
|
|
173
|
-
});
|
|
165
|
+
await this.reportError(error);
|
|
174
166
|
}
|
|
175
167
|
}, this.buildDelay);
|
|
176
168
|
}
|
|
177
|
-
async
|
|
178
|
-
this.
|
|
169
|
+
async reportError(error) {
|
|
170
|
+
this.invalidatedIds.clear();
|
|
179
171
|
await this.emitter.emit('event', {
|
|
180
|
-
code: '
|
|
172
|
+
code: 'ERROR',
|
|
173
|
+
error,
|
|
174
|
+
result: null
|
|
181
175
|
});
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
await this.emitter.emit('event', {
|
|
177
|
+
code: 'END'
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
async run() {
|
|
181
|
+
this.running = true;
|
|
182
|
+
// Drop a rerun request left over from a failed run: honoring it after this run
|
|
183
|
+
// would start an empty run that removes the plugin event listeners of this run.
|
|
184
|
+
this.rerun = false;
|
|
185
|
+
try {
|
|
186
|
+
await this.emitter.emit('event', {
|
|
187
|
+
code: 'START'
|
|
188
|
+
});
|
|
189
|
+
for (const task of this.tasks) {
|
|
190
|
+
await task.run();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
finally {
|
|
194
|
+
this.running = false;
|
|
184
195
|
}
|
|
185
|
-
this.running = false;
|
|
186
196
|
await this.emitter.emit('event', {
|
|
187
197
|
code: 'END'
|
|
188
198
|
});
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.63.
|
|
3
|
+
"version": "4.63.4",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
"globals": "^17.12.0",
|
|
90
90
|
"husky": "^9.1.7",
|
|
91
91
|
"is-reference": "^3.0.3",
|
|
92
|
-
"lint-staged": "^17.5.
|
|
92
|
+
"lint-staged": "^17.5.1",
|
|
93
93
|
"locate-character": "^3.0.0",
|
|
94
|
-
"magic-string": "^1.
|
|
95
|
-
"memfs": "^4.
|
|
94
|
+
"magic-string": "^1.4.1",
|
|
95
|
+
"memfs": "^4.78.0",
|
|
96
96
|
"mocha": "^11.8.0",
|
|
97
97
|
"nodemon": "^3.1.14",
|
|
98
98
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"pretty-bytes": "^7.1.3",
|
|
107
107
|
"pretty-ms": "^9.3.1",
|
|
108
108
|
"requirejs": "^2.3.8",
|
|
109
|
-
"rollup": "^4.63.
|
|
109
|
+
"rollup": "^4.63.3",
|
|
110
110
|
"rollup-plugin-license": "^3.7.1",
|
|
111
111
|
"semver": "^7.8.5",
|
|
112
112
|
"shx": "^0.4.0",
|