rollup 4.62.2 → 4.62.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 +13 -17
- 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 +652 -889
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +4 -4
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.d.ts +6 -23
- 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 +23 -23
- package/dist/shared/rollup.js +824 -1061
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +4 -4
- package/package.json +60 -60
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.3
|
|
4
|
+
Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -9883,8 +9883,8 @@ class Task {
|
|
|
9883
9883
|
this.watchFile(id);
|
|
9884
9884
|
}
|
|
9885
9885
|
for (const module of this.cache.modules) {
|
|
9886
|
-
for (const
|
|
9887
|
-
this.watchFile(
|
|
9886
|
+
for (const dependencyId of module.transformDependencies) {
|
|
9887
|
+
this.watchFile(dependencyId, true);
|
|
9888
9888
|
}
|
|
9889
9889
|
}
|
|
9890
9890
|
for (const id of previouslyWatched) {
|
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.d.ts
CHANGED
|
@@ -62,9 +62,7 @@ export type LogLevel = 'warn' | 'info' | 'debug';
|
|
|
62
62
|
export type LogLevelOption = LogLevel | 'silent';
|
|
63
63
|
|
|
64
64
|
export type SourceMapSegment =
|
|
65
|
-
| [number]
|
|
66
|
-
| [number, number, number, number]
|
|
67
|
-
| [number, number, number, number, number];
|
|
65
|
+
[number] | [number, number, number, number] | [number, number, number, number, number];
|
|
68
66
|
|
|
69
67
|
export interface ExistingDecodedSourceMap {
|
|
70
68
|
file?: string | undefined;
|
|
@@ -96,11 +94,11 @@ export type DecodedSourceMapOrMissing =
|
|
|
96
94
|
| (ExistingDecodedSourceMap & { missing?: false | undefined });
|
|
97
95
|
|
|
98
96
|
export interface SourceMap {
|
|
99
|
-
file
|
|
97
|
+
file?: string | undefined;
|
|
100
98
|
mappings: string;
|
|
101
99
|
names: string[];
|
|
102
100
|
sources: string[];
|
|
103
|
-
sourcesContent?: string[] | undefined;
|
|
101
|
+
sourcesContent?: (string | null)[] | undefined;
|
|
104
102
|
version: number;
|
|
105
103
|
debugId?: string | undefined;
|
|
106
104
|
toString(): string;
|
|
@@ -613,9 +611,7 @@ export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
613
611
|
export type JsxPreset = 'react' | 'react-jsx' | 'preserve' | 'preserve-react';
|
|
614
612
|
|
|
615
613
|
export type NormalizedJsxOptions =
|
|
616
|
-
|
|
|
617
|
-
| NormalizedJsxClassicOptions
|
|
618
|
-
| NormalizedJsxAutomaticOptions;
|
|
614
|
+
NormalizedJsxPreserveOptions | NormalizedJsxClassicOptions | NormalizedJsxAutomaticOptions;
|
|
619
615
|
|
|
620
616
|
interface NormalizedJsxPreserveOptions {
|
|
621
617
|
factory: string | null;
|
|
@@ -1132,12 +1128,7 @@ interface AstNodeLocation {
|
|
|
1132
1128
|
}
|
|
1133
1129
|
|
|
1134
1130
|
type OmittedEstreeKeys =
|
|
1135
|
-
| '
|
|
1136
|
-
| 'range'
|
|
1137
|
-
| 'leadingComments'
|
|
1138
|
-
| 'trailingComments'
|
|
1139
|
-
| 'innerComments'
|
|
1140
|
-
| 'comments';
|
|
1131
|
+
'loc' | 'range' | 'leadingComments' | 'trailingComments' | 'innerComments' | 'comments';
|
|
1141
1132
|
type RollupAstNode<T> = Omit<T, OmittedEstreeKeys> & AstNodeLocation;
|
|
1142
1133
|
|
|
1143
1134
|
type ProgramNode = RollupAstNode<estree.Program>;
|
|
@@ -1196,15 +1187,7 @@ export interface RollupFsModule {
|
|
|
1196
1187
|
}
|
|
1197
1188
|
|
|
1198
1189
|
export type BufferEncoding =
|
|
1199
|
-
| '
|
|
1200
|
-
| 'utf8'
|
|
1201
|
-
| 'utf16le'
|
|
1202
|
-
| 'ucs2'
|
|
1203
|
-
| 'base64'
|
|
1204
|
-
| 'base64url'
|
|
1205
|
-
| 'latin1'
|
|
1206
|
-
| 'binary'
|
|
1207
|
-
| 'hex';
|
|
1190
|
+
'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
|
|
1208
1191
|
|
|
1209
1192
|
export interface RollupDirectoryEntry {
|
|
1210
1193
|
isFile(): boolean;
|
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.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.3
|
|
4
|
+
Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -12,6 +12,27 @@
|
|
|
12
12
|
const native_js = require('../native.js');
|
|
13
13
|
const path = require('node:path');
|
|
14
14
|
|
|
15
|
+
const BLANK = Object.freeze(Object.create(null));
|
|
16
|
+
const EMPTY_OBJECT = Object.freeze({});
|
|
17
|
+
const EMPTY_ARRAY = Object.freeze([]);
|
|
18
|
+
const EMPTY_SET = Object.freeze(new (class extends Set {
|
|
19
|
+
add() {
|
|
20
|
+
throw new Error('Cannot add to empty set');
|
|
21
|
+
}
|
|
22
|
+
})());
|
|
23
|
+
|
|
24
|
+
const LOGLEVEL_SILENT = 'silent';
|
|
25
|
+
const LOGLEVEL_ERROR = 'error';
|
|
26
|
+
const LOGLEVEL_WARN = 'warn';
|
|
27
|
+
const LOGLEVEL_INFO = 'info';
|
|
28
|
+
const LOGLEVEL_DEBUG = 'debug';
|
|
29
|
+
const logLevelPriority = {
|
|
30
|
+
[LOGLEVEL_DEBUG]: 0,
|
|
31
|
+
[LOGLEVEL_INFO]: 1,
|
|
32
|
+
[LOGLEVEL_SILENT]: 3,
|
|
33
|
+
[LOGLEVEL_WARN]: 2
|
|
34
|
+
};
|
|
35
|
+
|
|
15
36
|
/** @typedef {import('./types').Location} Location */
|
|
16
37
|
|
|
17
38
|
/**
|
|
@@ -132,18 +153,6 @@ function getCodeFrame(source, line, column) {
|
|
|
132
153
|
.join('\n');
|
|
133
154
|
}
|
|
134
155
|
|
|
135
|
-
const LOGLEVEL_SILENT = 'silent';
|
|
136
|
-
const LOGLEVEL_ERROR = 'error';
|
|
137
|
-
const LOGLEVEL_WARN = 'warn';
|
|
138
|
-
const LOGLEVEL_INFO = 'info';
|
|
139
|
-
const LOGLEVEL_DEBUG = 'debug';
|
|
140
|
-
const logLevelPriority = {
|
|
141
|
-
[LOGLEVEL_DEBUG]: 0,
|
|
142
|
-
[LOGLEVEL_INFO]: 1,
|
|
143
|
-
[LOGLEVEL_SILENT]: 3,
|
|
144
|
-
[LOGLEVEL_WARN]: 2
|
|
145
|
-
};
|
|
146
|
-
|
|
147
156
|
const ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
|
|
148
157
|
const RELATIVE_PATH_REGEX = /^\.?\.(\/|$)/;
|
|
149
158
|
function isAbsolute(path) {
|
|
@@ -1061,15 +1070,6 @@ function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation,
|
|
|
1061
1070
|
}
|
|
1062
1071
|
}
|
|
1063
1072
|
|
|
1064
|
-
const BLANK = Object.freeze(Object.create(null));
|
|
1065
|
-
const EMPTY_OBJECT = Object.freeze({});
|
|
1066
|
-
const EMPTY_ARRAY = Object.freeze([]);
|
|
1067
|
-
const EMPTY_SET = Object.freeze(new (class extends Set {
|
|
1068
|
-
add() {
|
|
1069
|
-
throw new Error('Cannot add to empty set');
|
|
1070
|
-
}
|
|
1071
|
-
})());
|
|
1072
|
-
|
|
1073
1073
|
// This file is generated by scripts/generate-node-types.js.
|
|
1074
1074
|
// Do not edit this file directly.
|
|
1075
1075
|
const ArrowFunctionExpression = 'ArrowFunctionExpression';
|