@rspack-canary/browser 1.7.0-canary-a2d4dc73-20251231074311 → 1.7.0-canary-09dd289a-20260104030651
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/BuildInfo.d.ts +4 -4
- package/dist/Chunk.d.ts +3 -3
- package/dist/ChunkGraph.d.ts +3 -3
- package/dist/Chunks.d.ts +2 -2
- package/dist/Compilation.d.ts +40 -40
- package/dist/Compiler.d.ts +23 -25
- package/dist/ConcatenatedModule.d.ts +1 -1
- package/dist/ContextModule.d.ts +1 -1
- package/dist/ContextModuleFactory.d.ts +2 -2
- package/dist/Diagnostics.d.ts +2 -2
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/ExecuteModulePlugin.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +2 -2
- package/dist/ExternalModule.d.ts +1 -1
- package/dist/FileSystem.d.ts +3 -3
- package/dist/Module.d.ts +6 -6
- package/dist/ModuleGraph.d.ts +3 -3
- package/dist/MultiCompiler.d.ts +8 -8
- package/dist/MultiStats.d.ts +3 -3
- package/dist/MultiWatching.d.ts +3 -3
- package/dist/NativeWatchFileSystem.d.ts +5 -5
- package/dist/NormalModule.d.ts +6 -6
- package/dist/NormalModuleFactory.d.ts +4 -4
- package/dist/Resolver.d.ts +2 -2
- package/dist/ResolverFactory.d.ts +3 -3
- package/dist/RspackError.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +2 -2
- package/dist/RuntimeModule.d.ts +4 -4
- package/dist/Stats.d.ts +4 -4
- package/dist/VirtualModulesPlugin.d.ts +1 -1
- package/dist/Watching.d.ts +5 -5
- package/dist/browser/BrowserHttpImportEsmPlugin.d.ts +1 -1
- package/dist/browser/BrowserRequirePlugin.d.ts +1 -1
- package/dist/browser/buffer.d.ts +1 -1
- package/dist/browser/fs.d.ts +1 -1
- package/dist/browser/index.d.ts +3 -3
- package/dist/builtin-loader/index.d.ts +1 -1
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +1 -1
- package/dist/builtin-loader/swc/index.d.ts +5 -5
- package/dist/builtin-loader/swc/types.d.ts +8 -10
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +10 -5
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +4 -4
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +3 -3
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +4 -4
- package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +6 -6
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -8
- package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +5 -5
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +4 -4
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +5 -5
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/{CaseSensitivePlugin.d.ts → WarnCaseSensitiveModulesPlugin.d.ts} +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
- package/dist/builtin-plugin/WorkerPlugin.d.ts +4 -4
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/index.d.ts +7 -7
- package/dist/builtin-plugin/css-extract/loader.d.ts +2 -2
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +4 -4
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +6 -6
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -5
- package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +88 -84
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +10 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +10 -0
- package/dist/builtin-plugin/rsc/index.d.ts +15 -0
- package/dist/config/adapter.d.ts +7 -7
- package/dist/config/adapterRuleUse.d.ts +16 -16
- package/dist/config/browserslistTargetHandler.d.ts +1 -1
- package/dist/config/defaults.d.ts +2 -11
- package/dist/config/devServer.d.ts +32 -32
- package/dist/config/index.d.ts +5 -5
- package/dist/config/normalization.d.ts +9 -9
- package/dist/config/target.d.ts +7 -7
- package/dist/config/types.d.ts +74 -75
- package/dist/container/ContainerPlugin.d.ts +4 -4
- package/dist/container/ContainerReferencePlugin.d.ts +4 -4
- package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -3
- package/dist/container/ModuleFederationPlugin.d.ts +6 -6
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- package/dist/container/index.d.ts +4 -4
- package/dist/exports.d.ts +74 -76
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +2614 -2344
- package/dist/lib/AbstractMethodError.d.ts +1 -1
- package/dist/lib/Cache.d.ts +2 -2
- package/dist/lib/CacheFacade.d.ts +3 -3
- package/dist/lib/DllPlugin.d.ts +1 -1
- package/dist/lib/DllReferencePlugin.d.ts +5 -5
- package/dist/lib/EntryOptionPlugin.d.ts +2 -2
- package/dist/lib/EnvironmentPlugin.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +2 -2
- package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
- package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
- package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
- package/dist/lib/WebpackError.d.ts +3 -3
- package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
- package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
- package/dist/lib/cache/mergeEtags.d.ts +1 -1
- package/dist/loader-runner/ModuleError.d.ts +1 -1
- package/dist/loader-runner/index.d.ts +3 -3
- package/dist/loader-runner/loadLoader.d.ts +2 -2
- package/dist/loader-runner/service.d.ts +8 -8
- package/dist/loader-runner/utils.d.ts +3 -3
- package/dist/loader-runner/worker.d.ts +3 -3
- package/dist/logging/createConsoleLogger.d.ts +4 -4
- package/dist/napi-binding.d.ts +13 -12
- package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
- package/dist/node/NodeTemplatePlugin.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +3 -3
- package/dist/node/nodeConsole.d.ts +2 -2
- package/dist/rspack.d.ts +6 -15
- package/dist/rspack.wasi-browser.js +1 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/rspackOptionsApply.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +3 -3
- package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
- package/dist/sharing/SharePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +3 -3
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +15 -15
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +5 -5
- package/dist/stats/StatsPrinter.d.ts +3 -3
- package/dist/stats/statsFactoryUtils.d.ts +5 -5
- package/dist/swc.d.ts +2 -2
- package/dist/taps/compilation.d.ts +2 -2
- package/dist/taps/compiler.d.ts +1 -1
- package/dist/taps/contextModuleFactory.d.ts +1 -1
- package/dist/taps/index.d.ts +6 -6
- package/dist/taps/javascriptModules.d.ts +1 -1
- package/dist/taps/normalModuleFactory.d.ts +1 -1
- package/dist/taps/types.d.ts +3 -3
- package/dist/trace/index.d.ts +4 -4
- package/dist/trace/traceHookPlugin.d.ts +1 -1
- package/dist/util/SplitChunkSize.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/createReadonlyMap.d.ts +1 -1
- package/dist/util/fs.d.ts +14 -14
- package/dist/util/hash/wasm-hash.d.ts +1 -1
- package/dist/util/identifier.d.ts +1 -1
- package/dist/util/index.d.ts +1 -2
- package/dist/util/source.d.ts +2 -2
- package/dist/util/validateConfig.d.ts +1 -1
- package/dist/wasi-worker-browser.mjs +22662 -22659
- package/package.json +1 -1
- package/dist/rslib-runtime.js +0 -29
- package/dist/rslib-runtime.mjs +0 -68
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Compiler } from
|
|
2
|
-
import { type ModuleFederationManifestPluginOptions } from
|
|
3
|
-
import type { ModuleFederationPluginV1Options } from
|
|
4
|
-
export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options,
|
|
1
|
+
import type { Compiler } from "../Compiler";
|
|
2
|
+
import { type ModuleFederationManifestPluginOptions } from "./ModuleFederationManifestPlugin";
|
|
3
|
+
import type { ModuleFederationPluginV1Options } from "./ModuleFederationPluginV1";
|
|
4
|
+
export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options, "enhanced"> {
|
|
5
5
|
runtimePlugins?: RuntimePlugins;
|
|
6
6
|
implementation?: string;
|
|
7
|
-
shareStrategy?:
|
|
8
|
-
manifest?: boolean | Omit<ModuleFederationManifestPluginOptions,
|
|
7
|
+
shareStrategy?: "version-first" | "loaded-first";
|
|
8
|
+
manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, "remoteAliasMap" | "globalName" | "name" | "exposes" | "shared">;
|
|
9
9
|
}
|
|
10
10
|
export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
|
|
11
11
|
export declare class ModuleFederationPlugin {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Compiler } from
|
|
2
|
-
import type { EntryRuntime, ExternalsType, LibraryOptions } from
|
|
3
|
-
import { type Shared } from
|
|
4
|
-
import { type Exposes } from
|
|
5
|
-
import { type Remotes } from
|
|
1
|
+
import type { Compiler } from "../Compiler";
|
|
2
|
+
import type { EntryRuntime, ExternalsType, LibraryOptions } from "../config";
|
|
3
|
+
import { type Shared } from "../sharing/SharePlugin";
|
|
4
|
+
import { type Exposes } from "./ContainerPlugin";
|
|
5
|
+
import { type Remotes } from "./ContainerReferencePlugin";
|
|
6
6
|
export interface ModuleFederationPluginV1Options {
|
|
7
7
|
exposes?: Exposes;
|
|
8
8
|
filename?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./ContainerPlugin";
|
|
2
|
+
export * from "./ContainerReferencePlugin";
|
|
3
|
+
export * from "./ModuleFederationPlugin";
|
|
4
|
+
export * from "./ModuleFederationPluginV1";
|
package/dist/exports.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
declare const rspackVersion: string;
|
|
2
2
|
declare const version: string;
|
|
3
3
|
export { rspackVersion, version };
|
|
4
|
-
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData
|
|
5
|
-
export { Compilation } from
|
|
6
|
-
export { Compiler, type CompilerHooks } from
|
|
7
|
-
export type { MultiCompilerOptions, MultiRspackOptions } from
|
|
8
|
-
export { MultiCompiler } from
|
|
9
|
-
import { RspackOptionsApply } from
|
|
4
|
+
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData } from "./Compilation";
|
|
5
|
+
export { Compilation } from "./Compilation";
|
|
6
|
+
export { Compiler, type CompilerHooks } from "./Compiler";
|
|
7
|
+
export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
|
|
8
|
+
export { MultiCompiler } from "./MultiCompiler";
|
|
9
|
+
import { RspackOptionsApply } from "./rspackOptionsApply";
|
|
10
10
|
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
11
|
-
export type { ChunkGroup } from
|
|
12
|
-
export { AsyncDependenciesBlock, Dependency, EntryDependency
|
|
13
|
-
export type { Chunk } from
|
|
14
|
-
export { ConcatenatedModule } from
|
|
15
|
-
export { ContextModule } from
|
|
16
|
-
export { ExternalModule } from
|
|
17
|
-
export type { ResolveData, ResourceDataWithData } from
|
|
18
|
-
export { Module } from
|
|
19
|
-
export type { default as ModuleGraph } from
|
|
20
|
-
export { MultiStats } from
|
|
21
|
-
export { NormalModule } from
|
|
22
|
-
export type { NormalModuleFactory } from
|
|
23
|
-
export { type RspackError, type RspackSeverity, ValidationError
|
|
24
|
-
export { RuntimeGlobals } from
|
|
25
|
-
export { RuntimeModule } from
|
|
26
|
-
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule
|
|
27
|
-
export { Stats } from
|
|
28
|
-
export { StatsErrorCode } from
|
|
29
|
-
import * as ModuleFilenameHelpers from
|
|
11
|
+
export type { ChunkGroup } from "./binding";
|
|
12
|
+
export { AsyncDependenciesBlock, Dependency, EntryDependency } from "./binding";
|
|
13
|
+
export type { Chunk } from "./Chunk";
|
|
14
|
+
export { ConcatenatedModule } from "./ConcatenatedModule";
|
|
15
|
+
export { ContextModule } from "./ContextModule";
|
|
16
|
+
export { ExternalModule } from "./ExternalModule";
|
|
17
|
+
export type { ResolveData, ResourceDataWithData } from "./Module";
|
|
18
|
+
export { Module } from "./Module";
|
|
19
|
+
export type { default as ModuleGraph } from "./ModuleGraph";
|
|
20
|
+
export { MultiStats } from "./MultiStats";
|
|
21
|
+
export { NormalModule } from "./NormalModule";
|
|
22
|
+
export type { NormalModuleFactory } from "./NormalModuleFactory";
|
|
23
|
+
export { type RspackError, type RspackSeverity, ValidationError } from "./RspackError";
|
|
24
|
+
export { RuntimeGlobals } from "./RuntimeGlobals";
|
|
25
|
+
export { RuntimeModule } from "./RuntimeModule";
|
|
26
|
+
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from "./Stats";
|
|
27
|
+
export { Stats } from "./Stats";
|
|
28
|
+
export { StatsErrorCode } from "./stats/statsFactoryUtils";
|
|
29
|
+
import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
|
|
30
30
|
export { ModuleFilenameHelpers };
|
|
31
|
-
export { Template } from
|
|
31
|
+
export { Template } from "./Template";
|
|
32
32
|
export declare const WebpackError: ErrorConstructor;
|
|
33
|
-
export type { Watching } from
|
|
34
|
-
import sources = require(
|
|
33
|
+
export type { Watching } from "./Watching";
|
|
34
|
+
import sources = require("webpack-sources");
|
|
35
35
|
export { sources };
|
|
36
|
-
import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from
|
|
36
|
+
import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from "./config";
|
|
37
37
|
type Config = {
|
|
38
38
|
getNormalizedRspackOptions: typeof getNormalizedRspackOptions;
|
|
39
39
|
applyRspackOptionsDefaults: typeof applyRspackOptionsDefaults;
|
|
@@ -41,33 +41,29 @@ type Config = {
|
|
|
41
41
|
applyWebpackOptionsDefaults: typeof applyRspackOptionsDefaults;
|
|
42
42
|
};
|
|
43
43
|
export declare const config: Config;
|
|
44
|
-
export type * from
|
|
44
|
+
export type * from "./config";
|
|
45
45
|
export declare const util: {
|
|
46
46
|
createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
|
|
47
47
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
|
48
48
|
};
|
|
49
|
-
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions
|
|
50
|
-
export { BannerPlugin,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
|
|
59
|
-
export { LoaderOptionsPlugin } from './lib/LoaderOptionsPlugin';
|
|
60
|
-
export { LoaderTargetPlugin } from './lib/LoaderTargetPlugin';
|
|
61
|
-
export type { OutputFileSystem, WatchFileSystem } from './util/fs';
|
|
62
|
-
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from './builtin-plugin';
|
|
49
|
+
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions } from "./builtin-plugin";
|
|
50
|
+
export { BannerPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, WarnCaseSensitiveModulesPlugin } from "./builtin-plugin";
|
|
51
|
+
export { DllPlugin, type DllPluginOptions } from "./lib/DllPlugin";
|
|
52
|
+
export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType } from "./lib/DllReferencePlugin";
|
|
53
|
+
export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
|
|
54
|
+
export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
55
|
+
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
|
56
|
+
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
|
57
|
+
export type { OutputFileSystem, WatchFileSystem } from "./util/fs";
|
|
58
|
+
import { createRscPlugins, EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, RSC_LAYERS_NAMES, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
63
59
|
export { SubresourceIntegrityPlugin };
|
|
64
60
|
interface Web {
|
|
65
61
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
66
62
|
}
|
|
67
63
|
export declare const web: Web;
|
|
68
|
-
import { NodeTargetPlugin } from
|
|
69
|
-
import NodeEnvironmentPlugin from
|
|
70
|
-
import NodeTemplatePlugin from
|
|
64
|
+
import { NodeTargetPlugin } from "./builtin-plugin";
|
|
65
|
+
import NodeEnvironmentPlugin from "./node/NodeEnvironmentPlugin";
|
|
66
|
+
import NodeTemplatePlugin from "./node/NodeTemplatePlugin";
|
|
71
67
|
interface Node {
|
|
72
68
|
NodeTargetPlugin: typeof NodeTargetPlugin;
|
|
73
69
|
NodeTemplatePlugin: typeof NodeTemplatePlugin;
|
|
@@ -75,75 +71,75 @@ interface Node {
|
|
|
75
71
|
}
|
|
76
72
|
export { lazyCompilationMiddleware };
|
|
77
73
|
export declare const node: Node;
|
|
78
|
-
import { ElectronTargetPlugin } from
|
|
74
|
+
import { ElectronTargetPlugin } from "./builtin-plugin";
|
|
79
75
|
interface Electron {
|
|
80
76
|
ElectronTargetPlugin: typeof ElectronTargetPlugin;
|
|
81
77
|
}
|
|
82
78
|
export declare const electron: Electron;
|
|
83
|
-
import { EnableLibraryPlugin } from
|
|
79
|
+
import { EnableLibraryPlugin } from "./builtin-plugin";
|
|
84
80
|
interface Library {
|
|
85
81
|
EnableLibraryPlugin: typeof EnableLibraryPlugin;
|
|
86
82
|
}
|
|
87
83
|
export declare const library: Library;
|
|
88
|
-
import { EnableWasmLoadingPlugin } from
|
|
84
|
+
import { EnableWasmLoadingPlugin } from "./builtin-plugin";
|
|
89
85
|
interface Wasm {
|
|
90
86
|
EnableWasmLoadingPlugin: typeof EnableWasmLoadingPlugin;
|
|
91
87
|
}
|
|
92
88
|
export declare const wasm: Wasm;
|
|
93
|
-
import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from
|
|
89
|
+
import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from "./builtin-plugin";
|
|
94
90
|
interface JavaScript {
|
|
95
91
|
EnableChunkLoadingPlugin: typeof EnableChunkLoadingPlugin;
|
|
96
92
|
JavascriptModulesPlugin: typeof JavascriptModulesPlugin;
|
|
97
93
|
}
|
|
98
94
|
export declare const javascript: JavaScript;
|
|
99
|
-
import { WebWorkerTemplatePlugin } from
|
|
95
|
+
import { WebWorkerTemplatePlugin } from "./builtin-plugin";
|
|
100
96
|
interface Webworker {
|
|
101
97
|
WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin;
|
|
102
98
|
}
|
|
103
99
|
export declare const webworker: Webworker;
|
|
104
|
-
import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from
|
|
100
|
+
import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from "./builtin-plugin";
|
|
105
101
|
interface Optimize {
|
|
106
102
|
LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
|
|
107
103
|
RuntimeChunkPlugin: typeof RuntimeChunkPlugin;
|
|
108
104
|
SplitChunksPlugin: typeof SplitChunksPlugin;
|
|
109
105
|
}
|
|
110
106
|
export declare const optimize: Optimize;
|
|
111
|
-
import { ModuleFederationPlugin } from
|
|
112
|
-
export type { ModuleFederationPluginOptions } from
|
|
113
|
-
import { ModuleFederationPluginV1 } from
|
|
114
|
-
export type { ModuleFederationPluginV1Options } from
|
|
115
|
-
import { ContainerPlugin } from
|
|
116
|
-
import { ContainerReferencePlugin } from
|
|
117
|
-
export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject
|
|
118
|
-
export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject
|
|
107
|
+
import { ModuleFederationPlugin } from "./container/ModuleFederationPlugin";
|
|
108
|
+
export type { ModuleFederationPluginOptions } from "./container/ModuleFederationPlugin";
|
|
109
|
+
import { ModuleFederationPluginV1 } from "./container/ModuleFederationPluginV1";
|
|
110
|
+
export type { ModuleFederationPluginV1Options } from "./container/ModuleFederationPluginV1";
|
|
111
|
+
import { ContainerPlugin } from "./container/ContainerPlugin";
|
|
112
|
+
import { ContainerReferencePlugin } from "./container/ContainerReferencePlugin";
|
|
113
|
+
export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject } from "./container/ContainerPlugin";
|
|
114
|
+
export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject } from "./container/ContainerReferencePlugin";
|
|
119
115
|
export declare const container: {
|
|
120
116
|
ContainerPlugin: typeof ContainerPlugin;
|
|
121
117
|
ContainerReferencePlugin: typeof ContainerReferencePlugin;
|
|
122
118
|
ModuleFederationPlugin: typeof ModuleFederationPlugin;
|
|
123
119
|
ModuleFederationPluginV1: typeof ModuleFederationPluginV1;
|
|
124
120
|
};
|
|
125
|
-
import { ConsumeSharedPlugin } from
|
|
126
|
-
import { ProvideSharedPlugin } from
|
|
127
|
-
import { SharePlugin } from
|
|
128
|
-
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject
|
|
129
|
-
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject
|
|
130
|
-
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions
|
|
121
|
+
import { ConsumeSharedPlugin } from "./sharing/ConsumeSharedPlugin";
|
|
122
|
+
import { ProvideSharedPlugin } from "./sharing/ProvideSharedPlugin";
|
|
123
|
+
import { SharePlugin } from "./sharing/SharePlugin";
|
|
124
|
+
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject } from "./sharing/ConsumeSharedPlugin";
|
|
125
|
+
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject } from "./sharing/ProvideSharedPlugin";
|
|
126
|
+
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions } from "./sharing/SharePlugin";
|
|
131
127
|
export declare const sharing: {
|
|
132
128
|
ProvideSharedPlugin: typeof ProvideSharedPlugin;
|
|
133
129
|
ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
|
|
134
130
|
SharePlugin: typeof SharePlugin;
|
|
135
131
|
};
|
|
136
|
-
export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions
|
|
137
|
-
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig
|
|
138
|
-
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions
|
|
139
|
-
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin
|
|
140
|
-
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from
|
|
141
|
-
import { createNativePlugin } from
|
|
142
|
-
import { minify, minifySync, transform, transformSync } from
|
|
143
|
-
import { VirtualModulesPlugin } from
|
|
132
|
+
export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions } from "./builtin-loader/lightningcss/index";
|
|
133
|
+
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
|
|
134
|
+
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
|
135
|
+
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, Coordinator, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, RscClientPlugin, RscServerPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
|
|
136
|
+
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from "./binding";
|
|
137
|
+
import { createNativePlugin } from "./builtin-plugin";
|
|
138
|
+
import { minify, minifySync, transform, transformSync } from "./swc";
|
|
139
|
+
import { VirtualModulesPlugin } from "./VirtualModulesPlugin";
|
|
144
140
|
interface Experiments {
|
|
145
141
|
globalTrace: {
|
|
146
|
-
register: (filter: string, layer:
|
|
142
|
+
register: (filter: string, layer: "logger" | "perfetto", output: string) => Promise<void>;
|
|
147
143
|
cleanup: () => Promise<void>;
|
|
148
144
|
};
|
|
149
145
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
|
@@ -174,5 +170,7 @@ interface Experiments {
|
|
|
174
170
|
CssChunkingPlugin: typeof CssChunkingPlugin;
|
|
175
171
|
createNativePlugin: typeof createNativePlugin;
|
|
176
172
|
VirtualModulesPlugin: typeof VirtualModulesPlugin;
|
|
173
|
+
createRscPlugins: typeof createRscPlugins;
|
|
174
|
+
RSC_LAYERS_NAMES: typeof RSC_LAYERS_NAMES;
|
|
177
175
|
}
|
|
178
176
|
export declare const experiments: Experiments;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as rspackExports from
|
|
2
|
-
import { rspack as rspackFn } from
|
|
1
|
+
import * as rspackExports from "./exports";
|
|
2
|
+
import { rspack as rspackFn } from "./rspack";
|
|
3
3
|
type Rspack = typeof rspackFn & typeof rspackExports & {
|
|
4
4
|
rspack: Rspack;
|
|
5
5
|
webpack: Rspack;
|
|
6
6
|
};
|
|
7
7
|
declare const rspack: Rspack;
|
|
8
|
-
export * from
|
|
8
|
+
export * from "./exports";
|
|
9
9
|
export default rspack;
|
|
10
10
|
export { rspack };
|