@rspack-canary/browser 1.7.3-canary-467a44da-20260119082229 → 1.7.3-canary-965a4980-20260119085659
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/Compiler.d.ts +1 -0
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/builtin-loader/lightningcss/index.d.ts +0 -5
- package/dist/builtin-loader/swc/types.d.ts +2 -4
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +0 -5
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -5
- package/dist/builtin-plugin/RuntimePlugin.d.ts +0 -4
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/options.d.ts +0 -5
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -5
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +13 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +14 -0
- package/dist/builtin-plugin/rsc/index.d.ts +24 -0
- package/dist/config/normalization.d.ts +4 -32
- package/dist/config/types.d.ts +56 -145
- package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -10
- package/dist/container/ModuleFederationPlugin.d.ts +1 -17
- package/dist/exports.d.ts +4 -18
- package/dist/index.js +35029 -0
- package/dist/{index.mjs.LICENSE.txt → index.js.LICENSE.txt} +0 -7
- package/dist/lib/DllPlugin.d.ts +1 -1
- package/dist/lib/DllReferencePlugin.d.ts +2 -2
- package/dist/napi-binding.d.ts +34 -63
- package/dist/{rslib-runtime.mjs → rslib-runtime.js} +1 -11
- package/dist/rspack.wasi-browser.js +1 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +1 -2
- package/dist/sharing/ConsumeSharedPlugin.d.ts +0 -13
- package/dist/sharing/ProvideSharedPlugin.d.ts +0 -19
- package/dist/sharing/SharePlugin.d.ts +0 -36
- package/dist/sharing/utils.d.ts +0 -1
- package/dist/stats/statsFactoryUtils.d.ts +0 -3
- package/dist/wasi-worker-browser.mjs +10523 -10528
- package/package.json +2 -2
- package/dist/browser/middleware.d.ts +0 -1
- package/dist/index.mjs +0 -67743
- package/dist/sharing/CollectSharedEntryPlugin.d.ts +0 -22
- package/dist/sharing/IndependentSharedPlugin.d.ts +0 -35
- package/dist/sharing/SharedContainerPlugin.d.ts +0 -23
- package/dist/sharing/SharedUsedExportsOptimizerPlugin.d.ts +0 -14
- package/dist/sharing/TreeShakingSharedPlugin.d.ts +0 -16
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
-
import { RspackBuiltinPlugin } from '../builtin-plugin/base';
|
|
3
|
-
import type { Compiler } from '../Compiler';
|
|
4
|
-
import { type NormalizedSharedOptions } from './SharePlugin';
|
|
5
|
-
export type CollectSharedEntryPluginOptions = {
|
|
6
|
-
sharedOptions: NormalizedSharedOptions;
|
|
7
|
-
shareScope?: string;
|
|
8
|
-
};
|
|
9
|
-
export type ShareRequestsMap = Record<string, {
|
|
10
|
-
shareScope: string;
|
|
11
|
-
requests: [string, string][];
|
|
12
|
-
}>;
|
|
13
|
-
export declare class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
14
|
-
name: BuiltinPluginName;
|
|
15
|
-
sharedOptions: NormalizedSharedOptions;
|
|
16
|
-
private _collectedEntries;
|
|
17
|
-
constructor(options: CollectSharedEntryPluginOptions);
|
|
18
|
-
getData(): ShareRequestsMap;
|
|
19
|
-
getFilename(): string;
|
|
20
|
-
apply(compiler: Compiler): void;
|
|
21
|
-
raw(): BuiltinPlugin;
|
|
22
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Compiler } from '../Compiler';
|
|
2
|
-
import type { LibraryOptions, Plugins } from '../config';
|
|
3
|
-
import { type ModuleFederationManifestPluginOptions } from '../container/ModuleFederationManifestPlugin';
|
|
4
|
-
import type { Shared, SharedConfig } from './SharePlugin';
|
|
5
|
-
export type MakeRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
|
|
6
|
-
export interface IndependentSharePluginOptions {
|
|
7
|
-
name: string;
|
|
8
|
-
shared: Shared;
|
|
9
|
-
library?: LibraryOptions;
|
|
10
|
-
outputDir?: string;
|
|
11
|
-
plugins?: Plugins;
|
|
12
|
-
treeShaking?: boolean;
|
|
13
|
-
manifest?: ModuleFederationManifestPluginOptions;
|
|
14
|
-
injectTreeShakingUsedExports?: boolean;
|
|
15
|
-
treeShakingSharedExcludePlugins?: string[];
|
|
16
|
-
}
|
|
17
|
-
export type ShareFallback = Record<string, [string, string, string][]>;
|
|
18
|
-
export declare class IndependentSharedPlugin {
|
|
19
|
-
mfName: string;
|
|
20
|
-
shared: Shared;
|
|
21
|
-
library?: LibraryOptions;
|
|
22
|
-
sharedOptions: [string, SharedConfig][];
|
|
23
|
-
outputDir: string;
|
|
24
|
-
plugins: Plugins;
|
|
25
|
-
treeShaking?: boolean;
|
|
26
|
-
manifest?: ModuleFederationManifestPluginOptions;
|
|
27
|
-
buildAssets: ShareFallback;
|
|
28
|
-
injectTreeShakingUsedExports?: boolean;
|
|
29
|
-
treeShakingSharedExcludePlugins?: string[];
|
|
30
|
-
name: string;
|
|
31
|
-
constructor(options: IndependentSharePluginOptions);
|
|
32
|
-
apply(compiler: Compiler): void;
|
|
33
|
-
private createIndependentCompilers;
|
|
34
|
-
private createIndependentCompiler;
|
|
35
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName, type RawSharedContainerPluginOptions } from '@rspack/binding';
|
|
2
|
-
import { RspackBuiltinPlugin } from '../builtin-plugin/base';
|
|
3
|
-
import type { Compiler } from '../Compiler';
|
|
4
|
-
import type { LibraryOptions } from '../config';
|
|
5
|
-
export type SharedContainerPluginOptions = {
|
|
6
|
-
mfName: string;
|
|
7
|
-
shareName: string;
|
|
8
|
-
version: string;
|
|
9
|
-
request: string;
|
|
10
|
-
library?: LibraryOptions;
|
|
11
|
-
independentShareFileName?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
14
|
-
name: BuiltinPluginName;
|
|
15
|
-
filename: string;
|
|
16
|
-
_options: RawSharedContainerPluginOptions;
|
|
17
|
-
_shareName: string;
|
|
18
|
-
_globalName: string;
|
|
19
|
-
constructor(options: SharedContainerPluginOptions);
|
|
20
|
-
getData(): (string | undefined)[];
|
|
21
|
-
raw(compiler: Compiler): BuiltinPlugin;
|
|
22
|
-
apply(compiler: Compiler): void;
|
|
23
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BuiltinPlugin } from '@rspack/binding';
|
|
2
|
-
import { BuiltinPluginName } from '@rspack/binding';
|
|
3
|
-
import { RspackBuiltinPlugin } from '../builtin-plugin/base';
|
|
4
|
-
import { type ModuleFederationManifestPluginOptions } from '../container/ModuleFederationManifestPlugin';
|
|
5
|
-
import type { NormalizedSharedOptions } from './SharePlugin';
|
|
6
|
-
export declare class SharedUsedExportsOptimizerPlugin extends RspackBuiltinPlugin {
|
|
7
|
-
name: BuiltinPluginName;
|
|
8
|
-
private sharedOptions;
|
|
9
|
-
private injectTreeShakingUsedExports;
|
|
10
|
-
private manifestOptions;
|
|
11
|
-
constructor(sharedOptions: NormalizedSharedOptions, injectTreeShakingUsedExports?: boolean, manifestOptions?: ModuleFederationManifestPluginOptions);
|
|
12
|
-
private buildOptions;
|
|
13
|
-
raw(): BuiltinPlugin | undefined;
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Compiler } from '../Compiler';
|
|
2
|
-
import type { ModuleFederationPluginOptions } from '../container/ModuleFederationPlugin';
|
|
3
|
-
export interface TreeshakingSharedPluginOptions {
|
|
4
|
-
mfConfig: ModuleFederationPluginOptions;
|
|
5
|
-
secondary?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class TreeShakingSharedPlugin {
|
|
8
|
-
mfConfig: ModuleFederationPluginOptions;
|
|
9
|
-
outputDir: string;
|
|
10
|
-
secondary?: boolean;
|
|
11
|
-
private _independentSharePlugin?;
|
|
12
|
-
name: string;
|
|
13
|
-
constructor(options: TreeshakingSharedPluginOptions);
|
|
14
|
-
apply(compiler: Compiler): void;
|
|
15
|
-
get buildAssets(): import("./IndependentSharedPlugin").ShareFallback;
|
|
16
|
-
}
|