rollup 4.63.1 → 4.63.3
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 +21 -12
- package/dist/es/getLogFilter.js +3 -3
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +340 -155
- package/dist/es/shared/parseAst.js +4 -2
- package/dist/es/shared/watch.js +29 -19
- package/dist/getLogFilter.js +3 -3
- package/dist/loadConfigFile.js +2 -2
- 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 +340 -155
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +29 -19
- package/package.json +46 -46
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.63.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.63.3
|
|
4
|
+
Mon, 14 Sep 2026 12:44:36 GMT - commit 250deca2945f8817350564f7d52bab0f79175d1b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
import { parse, parseAsync } from '../../native.js';
|
|
11
11
|
import { resolve, dirname, basename, extname } from 'node:path';
|
|
12
12
|
|
|
13
|
+
// Replaces node:path in the browser build. Keep the behavior consistent with
|
|
14
|
+
// the Node build so that both builds handle paths the same way.
|
|
13
15
|
const ANY_SLASH_REGEX = /[/\\]/;
|
|
14
16
|
function relative(from, to) {
|
|
15
17
|
const fromParts = from.split(ANY_SLASH_REGEX).filter(Boolean);
|
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.63.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.63.3
|
|
4
|
+
Mon, 14 Sep 2026 12:44:36 GMT - commit 250deca2945f8817350564f7d52bab0f79175d1b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -9704,7 +9704,7 @@ class Watcher {
|
|
|
9704
9704
|
this.buildDelay = Math.max(this.buildDelay, watch.buildDelay);
|
|
9705
9705
|
}
|
|
9706
9706
|
}
|
|
9707
|
-
process$1.nextTick(() => this.run());
|
|
9707
|
+
process$1.nextTick(() => this.run().catch(error => this.reportError(error)));
|
|
9708
9708
|
}
|
|
9709
9709
|
async close() {
|
|
9710
9710
|
if (this.closed)
|
|
@@ -9746,30 +9746,40 @@ class Watcher {
|
|
|
9746
9746
|
this.invalidatedIds.clear();
|
|
9747
9747
|
await this.emitter.emit('restart');
|
|
9748
9748
|
this.emitter.removeListenersForCurrentRun();
|
|
9749
|
-
this.run();
|
|
9749
|
+
await this.run();
|
|
9750
9750
|
}
|
|
9751
9751
|
catch (error) {
|
|
9752
|
-
this.
|
|
9753
|
-
await this.emitter.emit('event', {
|
|
9754
|
-
code: 'ERROR',
|
|
9755
|
-
error,
|
|
9756
|
-
result: null
|
|
9757
|
-
});
|
|
9758
|
-
await this.emitter.emit('event', {
|
|
9759
|
-
code: 'END'
|
|
9760
|
-
});
|
|
9752
|
+
await this.reportError(error);
|
|
9761
9753
|
}
|
|
9762
9754
|
}, this.buildDelay);
|
|
9763
9755
|
}
|
|
9764
|
-
async
|
|
9765
|
-
this.
|
|
9756
|
+
async reportError(error) {
|
|
9757
|
+
this.invalidatedIds.clear();
|
|
9766
9758
|
await this.emitter.emit('event', {
|
|
9767
|
-
code: '
|
|
9759
|
+
code: 'ERROR',
|
|
9760
|
+
error,
|
|
9761
|
+
result: null
|
|
9768
9762
|
});
|
|
9769
|
-
|
|
9770
|
-
|
|
9763
|
+
await this.emitter.emit('event', {
|
|
9764
|
+
code: 'END'
|
|
9765
|
+
});
|
|
9766
|
+
}
|
|
9767
|
+
async run() {
|
|
9768
|
+
this.running = true;
|
|
9769
|
+
// Drop a rerun request left over from a failed run: honoring it after this run
|
|
9770
|
+
// would start an empty run that removes the plugin event listeners of this run.
|
|
9771
|
+
this.rerun = false;
|
|
9772
|
+
try {
|
|
9773
|
+
await this.emitter.emit('event', {
|
|
9774
|
+
code: 'START'
|
|
9775
|
+
});
|
|
9776
|
+
for (const task of this.tasks) {
|
|
9777
|
+
await task.run();
|
|
9778
|
+
}
|
|
9779
|
+
}
|
|
9780
|
+
finally {
|
|
9781
|
+
this.running = false;
|
|
9771
9782
|
}
|
|
9772
|
-
this.running = false;
|
|
9773
9783
|
await this.emitter.emit('event', {
|
|
9774
9784
|
code: 'END'
|
|
9775
9785
|
});
|
package/dist/getLogFilter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.63.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.63.3
|
|
4
|
+
Mon, 14 Sep 2026 12:44:36 GMT - commit 250deca2945f8817350564f7d52bab0f79175d1b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -37,7 +37,7 @@ const getLogFilter = filters => {
|
|
|
37
37
|
const testFilter = (log, key, parts) => {
|
|
38
38
|
let rawValue = log;
|
|
39
39
|
for (let index = 0; index < key.length; index++) {
|
|
40
|
-
if (
|
|
40
|
+
if (rawValue === null || (typeof rawValue !== 'object' && typeof rawValue !== 'function')) {
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
43
43
|
const part = key[index];
|
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
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.63.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.63.3
|
|
4
|
+
Mon, 14 Sep 2026 12:44:36 GMT - commit 250deca2945f8817350564f7d52bab0f79175d1b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -178,6 +178,8 @@ function printQuotedStringList(list, verbs) {
|
|
|
178
178
|
return output;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
+
// Replaces node:path in the browser build. Keep the behavior consistent with
|
|
182
|
+
// the Node build so that both builds handle paths the same way.
|
|
181
183
|
const ANY_SLASH_REGEX = /[/\\]/;
|
|
182
184
|
function relative(from, to) {
|
|
183
185
|
const fromParts = from.split(ANY_SLASH_REGEX).filter(Boolean);
|