@rspack-canary/core 1.5.9-canary-a915dabc-20251013174148 → 1.6.0-canary-5bacb922-20251015173619
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/Compilation.d.ts +13 -16
- package/dist/config/devServer.d.ts +1 -1
- package/dist/config/types.d.ts +2 -0
- package/dist/index.js +311 -341
- package/dist/util/fs.d.ts +2 -2
- package/package.json +3 -3
package/dist/Compilation.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ export declare class Compilation {
|
|
|
153
153
|
log: liteTapable.SyncBailHook<[string, LogEntry], true>;
|
|
154
154
|
additionalAssets: any;
|
|
155
155
|
optimizeModules: liteTapable.SyncBailHook<Iterable<Module>, void>;
|
|
156
|
-
afterOptimizeModules: liteTapable.SyncHook<Iterable<Module
|
|
156
|
+
afterOptimizeModules: liteTapable.SyncHook<Iterable<Module>>;
|
|
157
157
|
optimizeTree: liteTapable.AsyncSeriesHook<[
|
|
158
158
|
Iterable<Chunk>,
|
|
159
159
|
Iterable<Module>
|
|
@@ -163,21 +163,18 @@ export declare class Compilation {
|
|
|
163
163
|
Iterable<Module>
|
|
164
164
|
], void>;
|
|
165
165
|
finishModules: liteTapable.AsyncSeriesHook<[Iterable<Module>], void>;
|
|
166
|
-
chunkHash: liteTapable.SyncHook<[Chunk, Hash]
|
|
167
|
-
chunkAsset: liteTapable.SyncHook<[Chunk, string]
|
|
166
|
+
chunkHash: liteTapable.SyncHook<[Chunk, Hash]>;
|
|
167
|
+
chunkAsset: liteTapable.SyncHook<[Chunk, string]>;
|
|
168
168
|
processWarnings: liteTapable.SyncWaterfallHook<[WebpackError[]]>;
|
|
169
|
-
succeedModule: liteTapable.SyncHook<[Module]
|
|
170
|
-
stillValidModule: liteTapable.SyncHook<[Module]
|
|
171
|
-
statsPreset: liteTapable.HookMap<liteTapable.SyncHook<[
|
|
172
|
-
Partial<StatsOptions>,
|
|
173
|
-
CreateStatsOptionsContext
|
|
174
|
-
], void>>;
|
|
169
|
+
succeedModule: liteTapable.SyncHook<[Module]>;
|
|
170
|
+
stillValidModule: liteTapable.SyncHook<[Module]>;
|
|
171
|
+
statsPreset: liteTapable.HookMap<liteTapable.SyncHook<[Partial<StatsOptions>, CreateStatsOptionsContext]>>;
|
|
175
172
|
statsNormalize: liteTapable.SyncHook<[
|
|
176
173
|
Partial<StatsOptions>,
|
|
177
174
|
CreateStatsOptionsContext
|
|
178
|
-
]
|
|
179
|
-
statsFactory: liteTapable.SyncHook<[StatsFactory, StatsOptions]
|
|
180
|
-
statsPrinter: liteTapable.SyncHook<[StatsPrinter, StatsOptions]
|
|
175
|
+
]>;
|
|
176
|
+
statsFactory: liteTapable.SyncHook<[StatsFactory, StatsOptions]>;
|
|
177
|
+
statsPrinter: liteTapable.SyncHook<[StatsPrinter, StatsOptions]>;
|
|
181
178
|
buildModule: liteTapable.SyncHook<[Module]>;
|
|
182
179
|
executeModule: liteTapable.SyncHook<[
|
|
183
180
|
ExecuteModuleArgument,
|
|
@@ -186,10 +183,10 @@ export declare class Compilation {
|
|
|
186
183
|
additionalTreeRuntimeRequirements: liteTapable.SyncHook<[
|
|
187
184
|
Chunk,
|
|
188
185
|
Set<string>
|
|
189
|
-
]
|
|
186
|
+
]>;
|
|
190
187
|
runtimeRequirementInTree: liteTapable.HookMap<liteTapable.SyncBailHook<[Chunk, Set<string>], void>>;
|
|
191
|
-
runtimeModule: liteTapable.SyncHook<[JsRuntimeModule, Chunk]
|
|
192
|
-
seal: liteTapable.SyncHook<[]
|
|
188
|
+
runtimeModule: liteTapable.SyncHook<[JsRuntimeModule, Chunk]>;
|
|
189
|
+
seal: liteTapable.SyncHook<[]>;
|
|
193
190
|
afterSeal: liteTapable.AsyncSeriesHook<[], void>;
|
|
194
191
|
needAdditionalPass: liteTapable.SyncBailHook<[], boolean>;
|
|
195
192
|
}>;
|
|
@@ -411,7 +408,7 @@ export declare class Entries implements Map<string, EntryData> {
|
|
|
411
408
|
entries(): ReturnType<Map<string, EntryData>["entries"]>;
|
|
412
409
|
values(): ReturnType<Map<string, EntryData>["values"]>;
|
|
413
410
|
[Symbol.iterator](): ReturnType<Map<string, EntryData>["entries"]>;
|
|
414
|
-
|
|
411
|
+
readonly [Symbol.toStringTag] = "Map";
|
|
415
412
|
has(key: string): boolean;
|
|
416
413
|
set(key: string, value: EntryData): this;
|
|
417
414
|
delete(key: string): boolean;
|
|
@@ -200,7 +200,7 @@ export type DevServerOptions<A extends BasicApplication = BasicApplication, S ex
|
|
|
200
200
|
open?: string | boolean | Open | (string | Open)[] | undefined;
|
|
201
201
|
setupExitSignals?: boolean | undefined;
|
|
202
202
|
client?: boolean | ClientConfiguration | undefined;
|
|
203
|
-
headers?: Headers | ((req: Request, res: Response, context: DevMiddlewareContext
|
|
203
|
+
headers?: Headers | ((req: Request, res: Response, context: DevMiddlewareContext | undefined) => Headers) | undefined;
|
|
204
204
|
onListening?: ((devServer: Server) => void) | undefined;
|
|
205
205
|
setupMiddlewares?: ((middlewares: Middleware[], devServer: Server) => Middleware[]) | undefined;
|
|
206
206
|
};
|
package/dist/config/types.d.ts
CHANGED
|
@@ -664,6 +664,8 @@ export type RuleSetRule = {
|
|
|
664
664
|
oneOf?: (RuleSetRule | Falsy)[];
|
|
665
665
|
/** A kind of Nested Rule, an array of Rules that is also used when the parent Rule matches. */
|
|
666
666
|
rules?: (RuleSetRule | Falsy)[];
|
|
667
|
+
/** Whether to extract source maps from the module. */
|
|
668
|
+
extractSourceMap?: boolean;
|
|
667
669
|
};
|
|
668
670
|
/** A list of rules. */
|
|
669
671
|
export type RuleSetRules = ("..." | RuleSetRule | Falsy)[];
|