@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,7 +1,6 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import { RspackBuiltinPlugin } from '../builtin-plugin/base';
|
|
3
3
|
import type { Compiler } from '../Compiler';
|
|
4
|
-
import { type ModuleFederationPluginOptions } from './ModuleFederationPlugin';
|
|
5
4
|
export type RemoteAliasMap = Record<string, {
|
|
6
5
|
name: string;
|
|
7
6
|
entry?: string;
|
|
@@ -16,7 +15,7 @@ export type ManifestSharedOption = {
|
|
|
16
15
|
requiredVersion?: string;
|
|
17
16
|
singleton?: boolean;
|
|
18
17
|
};
|
|
19
|
-
type
|
|
18
|
+
export type ModuleFederationManifestPluginOptions = {
|
|
20
19
|
name?: string;
|
|
21
20
|
globalName?: string;
|
|
22
21
|
filePath?: string;
|
|
@@ -26,19 +25,13 @@ type InternalManifestPluginOptions = {
|
|
|
26
25
|
exposes?: ManifestExposeOption[];
|
|
27
26
|
shared?: ManifestSharedOption[];
|
|
28
27
|
};
|
|
29
|
-
export type ModuleFederationManifestPluginOptions = boolean | Pick<InternalManifestPluginOptions, 'disableAssetsAnalyze' | 'filePath' | 'fileName'>;
|
|
30
|
-
export declare function getFileName(manifestOptions: ModuleFederationManifestPluginOptions): {
|
|
31
|
-
statsFileName: string;
|
|
32
|
-
manifestFileName: string;
|
|
33
|
-
};
|
|
34
28
|
/**
|
|
35
29
|
* JS-side post-processing plugin: reads mf-manifest.json and mf-stats.json, executes additionalData callback and merges/overwrites manifest.
|
|
36
30
|
* To avoid cross-NAPI callback complexity, this plugin runs at the afterProcessAssets stage to ensure Rust-side MfManifestPlugin has already output its artifacts.
|
|
37
31
|
*/
|
|
38
32
|
export declare class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
39
33
|
name: BuiltinPluginName;
|
|
40
|
-
private
|
|
41
|
-
constructor(opts:
|
|
34
|
+
private opts;
|
|
35
|
+
constructor(opts: ModuleFederationManifestPluginOptions);
|
|
42
36
|
raw(compiler: Compiler): BuiltinPlugin;
|
|
43
37
|
}
|
|
44
|
-
export {};
|
|
@@ -1,31 +1,15 @@
|
|
|
1
1
|
import type { Compiler } from '../Compiler';
|
|
2
|
-
import type { ExternalsType } from '../config';
|
|
3
2
|
import { type ModuleFederationManifestPluginOptions } from './ModuleFederationManifestPlugin';
|
|
4
3
|
import type { ModuleFederationPluginV1Options } from './ModuleFederationPluginV1';
|
|
5
4
|
export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options, 'enhanced'> {
|
|
6
5
|
runtimePlugins?: RuntimePlugins;
|
|
7
6
|
implementation?: string;
|
|
8
7
|
shareStrategy?: 'version-first' | 'loaded-first';
|
|
9
|
-
manifest?: ModuleFederationManifestPluginOptions
|
|
10
|
-
injectTreeShakingUsedExports?: boolean;
|
|
11
|
-
treeShakingSharedDir?: string;
|
|
12
|
-
treeShakingSharedExcludePlugins?: string[];
|
|
13
|
-
treeShakingSharedPlugins?: string[];
|
|
8
|
+
manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, 'remoteAliasMap' | 'globalName' | 'name' | 'exposes' | 'shared'>;
|
|
14
9
|
}
|
|
15
10
|
export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
|
|
16
11
|
export declare class ModuleFederationPlugin {
|
|
17
12
|
private _options;
|
|
18
|
-
private _treeShakingSharedPlugin?;
|
|
19
13
|
constructor(_options: ModuleFederationPluginOptions);
|
|
20
14
|
apply(compiler: Compiler): void;
|
|
21
15
|
}
|
|
22
|
-
interface RemoteInfo {
|
|
23
|
-
alias: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
entry?: string;
|
|
26
|
-
externalType: ExternalsType;
|
|
27
|
-
shareScope: string;
|
|
28
|
-
}
|
|
29
|
-
type RemoteInfos = Record<string, RemoteInfo[]>;
|
|
30
|
-
export declare function getRemoteInfos(options: ModuleFederationPluginOptions): RemoteInfos;
|
|
31
|
-
export {};
|
package/dist/exports.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export { ModuleFilenameHelpers };
|
|
|
31
31
|
export { Template } from './Template';
|
|
32
32
|
export declare const WebpackError: ErrorConstructor;
|
|
33
33
|
export type { Watching } from './Watching';
|
|
34
|
-
import sources
|
|
34
|
+
import * as sources from 'webpack-sources';
|
|
35
35
|
export { sources };
|
|
36
36
|
import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from './config';
|
|
37
37
|
type Config = {
|
|
@@ -47,11 +47,7 @@ export declare const util: {
|
|
|
47
47
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
|
48
48
|
};
|
|
49
49
|
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions, } from './builtin-plugin';
|
|
50
|
-
export { BannerPlugin, CaseSensitivePlugin,
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Use `rspack.CaseSensitivePlugin` instead
|
|
53
|
-
*/
|
|
54
|
-
CaseSensitivePlugin as WarnCaseSensitiveModulesPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, } from './builtin-plugin';
|
|
50
|
+
export { BannerPlugin, CaseSensitivePlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, } from './builtin-plugin';
|
|
55
51
|
export { DllPlugin, type DllPluginOptions } from './lib/DllPlugin';
|
|
56
52
|
export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType, } from './lib/DllReferencePlugin';
|
|
57
53
|
export { default as EntryOptionPlugin } from './lib/EntryOptionPlugin';
|
|
@@ -59,7 +55,7 @@ export { EnvironmentPlugin } from './lib/EnvironmentPlugin';
|
|
|
59
55
|
export { LoaderOptionsPlugin } from './lib/LoaderOptionsPlugin';
|
|
60
56
|
export { LoaderTargetPlugin } from './lib/LoaderTargetPlugin';
|
|
61
57
|
export type { OutputFileSystem, WatchFileSystem } from './util/fs';
|
|
62
|
-
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from './builtin-plugin';
|
|
58
|
+
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, rsc, SubresourceIntegrityPlugin } from './builtin-plugin';
|
|
63
59
|
export { SubresourceIntegrityPlugin };
|
|
64
60
|
interface Web {
|
|
65
61
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
@@ -125,14 +121,11 @@ export declare const container: {
|
|
|
125
121
|
import { ConsumeSharedPlugin } from './sharing/ConsumeSharedPlugin';
|
|
126
122
|
import { ProvideSharedPlugin } from './sharing/ProvideSharedPlugin';
|
|
127
123
|
import { SharePlugin } from './sharing/SharePlugin';
|
|
128
|
-
import { TreeShakingSharedPlugin } from './sharing/TreeShakingSharedPlugin';
|
|
129
124
|
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject, } from './sharing/ConsumeSharedPlugin';
|
|
130
125
|
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject, } from './sharing/ProvideSharedPlugin';
|
|
131
126
|
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions, } from './sharing/SharePlugin';
|
|
132
|
-
export type { TreeshakingSharedPluginOptions } from './sharing/TreeShakingSharedPlugin';
|
|
133
127
|
export declare const sharing: {
|
|
134
128
|
ProvideSharedPlugin: typeof ProvideSharedPlugin;
|
|
135
|
-
TreeShakingSharedPlugin: typeof TreeShakingSharedPlugin;
|
|
136
129
|
ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
|
|
137
130
|
SharePlugin: typeof SharePlugin;
|
|
138
131
|
};
|
|
@@ -150,18 +143,10 @@ interface Experiments {
|
|
|
150
143
|
cleanup: () => Promise<void>;
|
|
151
144
|
};
|
|
152
145
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
|
153
|
-
/**
|
|
154
|
-
* @deprecated Use `rspack.SubresourceIntegrityPlugin` instead
|
|
155
|
-
*/
|
|
156
|
-
SubresourceIntegrityPlugin: typeof SubresourceIntegrityPlugin;
|
|
157
146
|
EsmLibraryPlugin: typeof EsmLibraryPlugin;
|
|
158
147
|
RsdoctorPlugin: typeof RsdoctorPlugin;
|
|
159
148
|
RstestPlugin: typeof RstestPlugin;
|
|
160
149
|
RslibPlugin: typeof RslibPlugin;
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated Use `rspack.lazyCompilationMiddleware` instead
|
|
163
|
-
*/
|
|
164
|
-
lazyCompilationMiddleware: typeof lazyCompilationMiddleware;
|
|
165
150
|
swc: {
|
|
166
151
|
transform: typeof transform;
|
|
167
152
|
minify: typeof minify;
|
|
@@ -177,5 +162,6 @@ interface Experiments {
|
|
|
177
162
|
CssChunkingPlugin: typeof CssChunkingPlugin;
|
|
178
163
|
createNativePlugin: typeof createNativePlugin;
|
|
179
164
|
VirtualModulesPlugin: typeof VirtualModulesPlugin;
|
|
165
|
+
rsc: typeof rsc;
|
|
180
166
|
}
|
|
181
167
|
export declare const experiments: Experiments;
|