@rspack-canary/browser 1.6.6-canary-7c3506a0-20251201173444 → 1.6.7-canary-357996bd-20251202221720
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.
|
@@ -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): {
|
package/dist/index.mjs
CHANGED
|
@@ -58190,7 +58190,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
58190
58190
|
if ("object" == typeof rspackFuture) {
|
|
58191
58191
|
D(rspackFuture, "bundlerInfo", {});
|
|
58192
58192
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
58193
|
-
D(rspackFuture.bundlerInfo, "version", "1.6.
|
|
58193
|
+
D(rspackFuture.bundlerInfo, "version", "1.6.7-canary-357996bd-20251202221720");
|
|
58194
58194
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
58195
58195
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
58196
58196
|
}
|
|
@@ -62140,7 +62140,7 @@ class MultiStats {
|
|
|
62140
62140
|
return obj;
|
|
62141
62141
|
});
|
|
62142
62142
|
if (childOptions.version) {
|
|
62143
|
-
obj.rspackVersion = "1.6.
|
|
62143
|
+
obj.rspackVersion = "1.6.7-canary-357996bd-20251202221720";
|
|
62144
62144
|
obj.version = "5.75.0";
|
|
62145
62145
|
}
|
|
62146
62146
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -63445,7 +63445,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
63445
63445
|
},
|
|
63446
63446
|
version: (object)=>{
|
|
63447
63447
|
object.version = "5.75.0";
|
|
63448
|
-
object.rspackVersion = "1.6.
|
|
63448
|
+
object.rspackVersion = "1.6.7-canary-357996bd-20251202221720";
|
|
63449
63449
|
},
|
|
63450
63450
|
env: (object, _compilation, _context, { _env })=>{
|
|
63451
63451
|
object.env = _env;
|
|
@@ -66013,8 +66013,12 @@ class ModuleFederationPlugin {
|
|
|
66013
66013
|
...compiler.options.resolve.alias
|
|
66014
66014
|
};
|
|
66015
66015
|
const entryRuntime = getDefaultEntryRuntime(paths, this._options, compiler);
|
|
66016
|
+
const runtimeExperiments = {
|
|
66017
|
+
asyncStartup: this._options.experiments?.asyncStartup ?? false
|
|
66018
|
+
};
|
|
66016
66019
|
new ModuleFederationRuntimePlugin({
|
|
66017
|
-
entryRuntime
|
|
66020
|
+
entryRuntime,
|
|
66021
|
+
experiments: runtimeExperiments
|
|
66018
66022
|
}).apply(compiler);
|
|
66019
66023
|
new webpack.container.ModuleFederationPluginV1({
|
|
66020
66024
|
...this._options,
|
|
@@ -66538,7 +66542,7 @@ class ModuleFederationPluginV1 {
|
|
|
66538
66542
|
const remoteType = options.remoteType || (options.library ? options.library.type : "script");
|
|
66539
66543
|
if (library && !compiler.options.output.enabledLibraryTypes.includes(library.type)) compiler.options.output.enabledLibraryTypes.push(library.type);
|
|
66540
66544
|
compiler.hooks.afterPlugins.tap("ModuleFederationPlugin", ()=>{
|
|
66541
|
-
new ShareRuntimePlugin(
|
|
66545
|
+
new ShareRuntimePlugin(enhanced).apply(compiler);
|
|
66542
66546
|
if (options.exposes && (Array.isArray(options.exposes) ? options.exposes.length > 0 : Object.keys(options.exposes).length > 0)) new ContainerPlugin({
|
|
66543
66547
|
name: options.name,
|
|
66544
66548
|
library,
|
|
@@ -66582,7 +66586,7 @@ function transformSync(source, options) {
|
|
|
66582
66586
|
const _options = JSON.stringify(options || {});
|
|
66583
66587
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
66584
66588
|
}
|
|
66585
|
-
const exports_rspackVersion = "1.6.
|
|
66589
|
+
const exports_rspackVersion = "1.6.7-canary-357996bd-20251202221720";
|
|
66586
66590
|
const exports_version = "5.75.0";
|
|
66587
66591
|
const exports_WebpackError = Error;
|
|
66588
66592
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -2469,8 +2469,13 @@ export interface RawModuleFederationManifestPluginOptions {
|
|
|
2469
2469
|
buildInfo?: RawStatsBuildInfo
|
|
2470
2470
|
}
|
|
2471
2471
|
|
|
2472
|
+
export interface RawModuleFederationRuntimeExperimentsOptions {
|
|
2473
|
+
asyncStartup?: boolean
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2472
2476
|
export interface RawModuleFederationRuntimePluginOptions {
|
|
2473
2477
|
entryRuntime?: string | undefined
|
|
2478
|
+
experiments?: RawModuleFederationRuntimeExperimentsOptions
|
|
2474
2479
|
}
|
|
2475
2480
|
|
|
2476
2481
|
export interface RawModuleFilenameTemplateFnCtx {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.7-canary-357996bd-20251202221720",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|