@rspack-canary/browser 1.7.0-canary-a0fc091c-20251217174017 → 1.7.0-canary-633193aa-20251218194146
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/config/types.d.ts +7 -1
- package/dist/container/ModuleFederationPlugin.d.ts +2 -0
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +4 -0
- package/dist/index.mjs +421 -403
- package/dist/napi-binding.d.ts +5 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/wasi-worker-browser.mjs +84 -84
- package/package.json +1 -1
package/dist/config/types.d.ts
CHANGED
|
@@ -461,7 +461,13 @@ export type Output = {
|
|
|
461
461
|
/** An optional salt to update the hash. */
|
|
462
462
|
hashSalt?: HashSalt;
|
|
463
463
|
/**
|
|
464
|
-
*
|
|
464
|
+
* Controls whether dynamically imported modules are emitted as separate async chunks or bundled into
|
|
465
|
+
* existing chunks.
|
|
466
|
+
* - `true`: Modules loaded via `import()` are split into independent async chunks. These chunks are
|
|
467
|
+
* emitted as separate files and are loaded on demand at runtime. This enables code splitting and keeps
|
|
468
|
+
* the initial bundle smaller.
|
|
469
|
+
* - `false`: Dynamically imported modules are bundled into existing chunks instead of being emitted as
|
|
470
|
+
* separate files. No additional async chunk files are generated.
|
|
465
471
|
* @default true
|
|
466
472
|
* */
|
|
467
473
|
asyncChunks?: AsyncChunks;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Compiler } from "../Compiler";
|
|
2
2
|
import { type ModuleFederationManifestPluginOptions } from "./ModuleFederationManifestPlugin";
|
|
3
3
|
import type { ModuleFederationPluginV1Options } from "./ModuleFederationPluginV1";
|
|
4
|
+
import { type ModuleFederationRuntimeExperimentsOptions } from "./ModuleFederationRuntimePlugin";
|
|
4
5
|
export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options, "enhanced"> {
|
|
5
6
|
runtimePlugins?: RuntimePlugins;
|
|
6
7
|
implementation?: string;
|
|
7
8
|
shareStrategy?: "version-first" | "loaded-first";
|
|
8
9
|
manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, "remoteAliasMap" | "globalName" | "name" | "exposes" | "shared">;
|
|
10
|
+
experiments?: ModuleFederationRuntimeExperimentsOptions;
|
|
9
11
|
}
|
|
10
12
|
export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
|
|
11
13
|
export declare class ModuleFederationPlugin {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
export interface ModuleFederationRuntimeExperimentsOptions {
|
|
2
|
+
asyncStartup?: boolean;
|
|
3
|
+
}
|
|
1
4
|
export interface ModuleFederationRuntimeOptions {
|
|
2
5
|
entryRuntime?: string;
|
|
6
|
+
experiments?: ModuleFederationRuntimeExperimentsOptions;
|
|
3
7
|
}
|
|
4
8
|
export declare const ModuleFederationRuntimePlugin: {
|
|
5
9
|
new (options?: ModuleFederationRuntimeOptions | undefined): {
|