rollup 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 +10 -1
- 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/package.json +32 -30
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
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "4.63.
|
|
3
|
+
"version": "4.63.4",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
"ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
|
|
63
63
|
"ci:test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
|
|
64
64
|
"ci:coverage": "NODE_OPTIONS=--no-experimental-require-module nyc --reporter lcovonly mocha",
|
|
65
|
+
"build:napi:coverage": "bash -c 'coverage_env=\"$(cd rust && cargo llvm-cov show-env --sh)\" && eval \"$coverage_env\" && (cd rust && cargo llvm-cov clean --workspace) && npm run build:napi'",
|
|
66
|
+
"test:coverage:rust": "bash scripts/coverage-rust.sh",
|
|
65
67
|
"lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
|
|
66
68
|
"lint:js": "eslint . --fix --cache --concurrency auto",
|
|
67
69
|
"lint:js:nofix": "eslint . --cache --concurrency auto",
|
|
@@ -115,31 +117,31 @@
|
|
|
115
117
|
"optionalDependencies": {
|
|
116
118
|
"@napi-rs/lzma-linux-x64-gnu": "1.5.1",
|
|
117
119
|
"fsevents": "~2.3.2",
|
|
118
|
-
"@rollup/rollup-darwin-arm64": "4.63.
|
|
119
|
-
"@rollup/rollup-android-arm64": "4.63.
|
|
120
|
-
"@rollup/rollup-win32-arm64-msvc": "4.63.
|
|
121
|
-
"@rollup/rollup-freebsd-arm64": "4.63.
|
|
122
|
-
"@rollup/rollup-linux-arm64-gnu": "4.63.
|
|
123
|
-
"@rollup/rollup-linux-arm64-musl": "4.63.
|
|
124
|
-
"@rollup/rollup-android-arm-eabi": "4.63.
|
|
125
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.63.
|
|
126
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.63.
|
|
127
|
-
"@rollup/rollup-win32-ia32-msvc": "4.63.
|
|
128
|
-
"@rollup/rollup-linux-loong64-gnu": "4.63.
|
|
129
|
-
"@rollup/rollup-linux-loong64-musl": "4.63.
|
|
130
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.63.
|
|
131
|
-
"@rollup/rollup-linux-riscv64-musl": "4.63.
|
|
132
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.63.
|
|
133
|
-
"@rollup/rollup-linux-ppc64-musl": "4.63.
|
|
134
|
-
"@rollup/rollup-linux-s390x-gnu": "4.63.
|
|
135
|
-
"@rollup/rollup-darwin-x64": "4.63.
|
|
136
|
-
"@rollup/rollup-win32-x64-gnu": "4.63.
|
|
137
|
-
"@rollup/rollup-win32-x64-msvc": "4.63.
|
|
138
|
-
"@rollup/rollup-freebsd-x64": "4.63.
|
|
139
|
-
"@rollup/rollup-linux-x64-gnu": "4.63.
|
|
140
|
-
"@rollup/rollup-linux-x64-musl": "4.63.
|
|
141
|
-
"@rollup/rollup-openbsd-x64": "4.63.
|
|
142
|
-
"@rollup/rollup-openharmony-arm64": "4.63.
|
|
120
|
+
"@rollup/rollup-darwin-arm64": "4.63.4",
|
|
121
|
+
"@rollup/rollup-android-arm64": "4.63.4",
|
|
122
|
+
"@rollup/rollup-win32-arm64-msvc": "4.63.4",
|
|
123
|
+
"@rollup/rollup-freebsd-arm64": "4.63.4",
|
|
124
|
+
"@rollup/rollup-linux-arm64-gnu": "4.63.4",
|
|
125
|
+
"@rollup/rollup-linux-arm64-musl": "4.63.4",
|
|
126
|
+
"@rollup/rollup-android-arm-eabi": "4.63.4",
|
|
127
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.63.4",
|
|
128
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.63.4",
|
|
129
|
+
"@rollup/rollup-win32-ia32-msvc": "4.63.4",
|
|
130
|
+
"@rollup/rollup-linux-loong64-gnu": "4.63.4",
|
|
131
|
+
"@rollup/rollup-linux-loong64-musl": "4.63.4",
|
|
132
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.63.4",
|
|
133
|
+
"@rollup/rollup-linux-riscv64-musl": "4.63.4",
|
|
134
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.63.4",
|
|
135
|
+
"@rollup/rollup-linux-ppc64-musl": "4.63.4",
|
|
136
|
+
"@rollup/rollup-linux-s390x-gnu": "4.63.4",
|
|
137
|
+
"@rollup/rollup-darwin-x64": "4.63.4",
|
|
138
|
+
"@rollup/rollup-win32-x64-gnu": "4.63.4",
|
|
139
|
+
"@rollup/rollup-win32-x64-msvc": "4.63.4",
|
|
140
|
+
"@rollup/rollup-freebsd-x64": "4.63.4",
|
|
141
|
+
"@rollup/rollup-linux-x64-gnu": "4.63.4",
|
|
142
|
+
"@rollup/rollup-linux-x64-musl": "4.63.4",
|
|
143
|
+
"@rollup/rollup-openbsd-x64": "4.63.4",
|
|
144
|
+
"@rollup/rollup-openharmony-arm64": "4.63.4"
|
|
143
145
|
},
|
|
144
146
|
"dependencies": {
|
|
145
147
|
"@types/estree": "1.0.9"
|
|
@@ -201,10 +203,10 @@
|
|
|
201
203
|
"globals": "^17.12.0",
|
|
202
204
|
"husky": "^9.1.7",
|
|
203
205
|
"is-reference": "^3.0.3",
|
|
204
|
-
"lint-staged": "^17.5.
|
|
206
|
+
"lint-staged": "^17.5.1",
|
|
205
207
|
"locate-character": "^3.0.0",
|
|
206
|
-
"magic-string": "^1.
|
|
207
|
-
"memfs": "^4.
|
|
208
|
+
"magic-string": "^1.4.1",
|
|
209
|
+
"memfs": "^4.78.0",
|
|
208
210
|
"mocha": "^11.8.0",
|
|
209
211
|
"nodemon": "^3.1.14",
|
|
210
212
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
@@ -218,7 +220,7 @@
|
|
|
218
220
|
"pretty-bytes": "^7.1.3",
|
|
219
221
|
"pretty-ms": "^9.3.1",
|
|
220
222
|
"requirejs": "^2.3.8",
|
|
221
|
-
"rollup": "^4.63.
|
|
223
|
+
"rollup": "^4.63.3",
|
|
222
224
|
"rollup-plugin-license": "^3.7.1",
|
|
223
225
|
"semver": "^7.8.5",
|
|
224
226
|
"shx": "^0.4.0",
|