@rspack/core 1.4.7 → 1.4.9
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 +1 -1
- package/dist/Chunk.d.ts +1 -0
- package/dist/ChunkGraph.d.ts +1 -1
- package/dist/Compilation.d.ts +7 -7
- package/dist/Compiler.d.ts +11 -11
- package/dist/Module.d.ts +1 -1
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/NativeWatchFileSystem.d.ts +2 -2
- package/dist/NormalModule.d.ts +1 -1
- package/dist/NormalModuleFactory.d.ts +1 -1
- package/dist/Resolver.d.ts +8 -3
- package/dist/ResolverFactory.d.ts +2 -2
- package/dist/RspackError.d.ts +1 -1
- package/dist/builtin-loader/swc/index.d.ts +3 -3
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.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/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/html-plugin/index.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +20 -20
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/adapterRuleUse.d.ts +3 -3
- package/dist/config/devServer.d.ts +1 -1
- package/dist/config/normalization.d.ts +2 -2
- package/dist/config/types.d.ts +3 -3
- package/dist/container/ContainerPlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +6 -3
- package/dist/container/index.d.ts +4 -0
- package/dist/cssExtractLoader.js +2 -2
- package/dist/exports.d.ts +22 -62
- package/dist/index.js +2344 -2340
- package/dist/lib/Cache.d.ts +1 -1
- package/dist/lib/CacheFacade.d.ts +1 -1
- package/dist/loader-runner/utils.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/schema/config.d.ts +49 -49
- package/dist/schema/plugins.d.ts +7 -7
- package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/sharing/ProvideSharedPlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
- package/dist/stats/statsFactoryUtils.d.ts +1 -1
- package/dist/taps/compilation.d.ts +1 -1
- package/dist/taps/types.d.ts +1 -1
- package/hot/lazy-compilation-node.js +0 -2
- package/hot/lazy-compilation-web.js +0 -2
- package/package.json +4 -4
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { AssetInfo, RawModuleRuleUse, RawOptions } from "@rspack/binding";
|
2
2
|
import type { Compilation } from "../Compilation";
|
3
3
|
import type { Compiler } from "../Compiler";
|
4
|
-
import type { Module } from "../Module";
|
5
|
-
import type { ResolveRequest } from "../Resolver";
|
6
4
|
import { type LoaderObject } from "../loader-runner";
|
7
5
|
import type { Logger } from "../logging/Logger";
|
6
|
+
import type { Module } from "../Module";
|
7
|
+
import type { ResolveRequest } from "../Resolver";
|
8
8
|
import type Hash from "../util/hash";
|
9
9
|
import type { RspackOptionsNormalized } from "./normalization";
|
10
10
|
import type { Mode, PublicPath, Resolve, RuleSetUseItem, Target } from "./types";
|
@@ -320,7 +320,7 @@ export interface LoaderContext<OptionsType = {}> {
|
|
320
320
|
*
|
321
321
|
* @internal
|
322
322
|
*/
|
323
|
-
|
323
|
+
__internal__setParseMeta: (key: string, value: string) => void;
|
324
324
|
}
|
325
325
|
export type LoaderDefinitionFunction<OptionsType = {}, ContextAdditions = {}> = (this: LoaderContext<OptionsType> & ContextAdditions, content: string, sourceMap?: string | SourceMap, additionalData?: AdditionalData) => string | void | Buffer | Promise<string | Buffer>;
|
326
326
|
export type PitchLoaderDefinitionFunction<OptionsType = {}, ContextAdditions = {}> = (this: LoaderContext<OptionsType> & ContextAdditions, remainingRequest: string, previousRequest: string, data: object) => string | void | Buffer | Promise<string | Buffer>;
|
@@ -133,7 +133,7 @@ type ProxyConfigArrayItem = {
|
|
133
133
|
type ByPass = (req: Request, res: Response, proxyConfig: ProxyConfigArrayItem) => any;
|
134
134
|
type ProxyConfigArray = (ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[];
|
135
135
|
type Callback = (stats?: Stats | MultiStats | undefined) => any;
|
136
|
-
type DevMiddlewareContext<
|
136
|
+
type DevMiddlewareContext<_RequestInternal extends IncomingMessage = IncomingMessage, _ResponseInternal extends ServerResponse = ServerResponse> = {
|
137
137
|
state: boolean;
|
138
138
|
stats: Stats | MultiStats | undefined;
|
139
139
|
callbacks: Callback[];
|
@@ -7,10 +7,10 @@
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
|
-
import type { Compilation } from "../Compilation";
|
11
10
|
import type { HttpUriPluginOptions } from "../builtin-plugin";
|
11
|
+
import type { Compilation } from "../Compilation";
|
12
12
|
import type WebpackError from "../lib/WebpackError";
|
13
|
-
import type { Amd, AssetModuleFilename, Bail, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name,
|
13
|
+
import type { Amd, AssetModuleFilename, Bail, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, Node, NoParseOption, Optimization, OutputModule, ParserOptionsByModuleType, Path, Performance, Plugins, Profile, PublicPath, Resolve, RspackFutureOptions, RspackOptions, RuleSetRules, ScriptType, SnapshotOptions, SourceMapFilename, StatsValue, StrictModuleErrorHandling, Target, TrustedTypes, UniqueName, WasmLoading, Watch, WatchOptions, WebassemblyModuleFilename, WorkerPublicPath } from "./types";
|
14
14
|
export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
|
15
15
|
export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
|
16
16
|
export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
|
package/dist/config/types.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { AssetInfo, RawFuncUseCtx } from "@rspack/binding";
|
2
|
+
import type { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
|
2
3
|
import type { ChunkGraph } from "../ChunkGraph";
|
3
4
|
import type { Compilation, PathData } from "../Compilation";
|
4
5
|
import type { Compiler } from "../Compiler";
|
5
|
-
import type { Module } from "../Module";
|
6
|
-
import type ModuleGraph from "../ModuleGraph";
|
7
|
-
import type { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
|
8
6
|
import type { Chunk } from "../exports";
|
9
7
|
import type WebpackError from "../lib/WebpackError";
|
8
|
+
import type { Module } from "../Module";
|
9
|
+
import type ModuleGraph from "../ModuleGraph";
|
10
10
|
import type { ResolveCallback } from "./adapterRuleUse";
|
11
11
|
import type { DevServerOptions } from "./devServer";
|
12
12
|
export type FilenameTemplate = string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
2
|
-
import type { Compiler } from "../Compiler";
|
3
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
3
|
+
import type { Compiler } from "../Compiler";
|
4
4
|
import type { EntryRuntime, FilenameTemplate, LibraryOptions } from "../config";
|
5
5
|
export type ContainerPluginOptions = {
|
6
6
|
exposes: Exposes;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
2
|
-
import type { Compiler } from "../Compiler";
|
3
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
3
|
+
import type { Compiler } from "../Compiler";
|
4
4
|
import type { ExternalsType } from "../config";
|
5
5
|
export type ContainerReferencePluginOptions = {
|
6
6
|
remoteType: ExternalsType;
|
@@ -1,8 +1,11 @@
|
|
1
|
+
export interface ModuleFederationRuntimeOptions {
|
2
|
+
entryRuntime?: string;
|
3
|
+
}
|
1
4
|
export declare const ModuleFederationRuntimePlugin: {
|
2
|
-
new (): {
|
5
|
+
new (options?: ModuleFederationRuntimeOptions | undefined): {
|
3
6
|
name: string;
|
4
|
-
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "
|
7
|
+
_args: [options?: ModuleFederationRuntimeOptions | undefined];
|
8
|
+
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
9
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
10
|
apply(compiler: import("..").Compiler): void;
|
8
11
|
};
|
package/dist/cssExtractLoader.js
CHANGED
@@ -79,7 +79,7 @@ let pitch = function(request, _, data) {
|
|
79
79
|
e.stack = void 0, this.emitWarning(e);
|
80
80
|
return;
|
81
81
|
}
|
82
|
-
let options = this.getOptions(), emit = void 0 === options.emit || options.emit, callback = this.async(), filepath = this.resourcePath
|
82
|
+
let options = this.getOptions(), emit = void 0 === options.emit || options.emit, callback = this.async(), filepath = this.resourcePath;
|
83
83
|
this.addDependency(filepath);
|
84
84
|
let { publicPath } = this._compilation.outputOptions;
|
85
85
|
"string" == typeof options.publicPath ? publicPath = options.publicPath : "function" == typeof options.publicPath && (publicPath = options.publicPath(this.resourcePath, this.rootContext)), "auto" === publicPath && (publicPath = AUTO_PUBLIC_PATH), publicPathForExtract = "string" == typeof publicPath ? /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(publicPath) ? publicPath : `${ABSOLUTE_PUBLIC_PATH}${publicPath.replace(/\./g, SINGLE_DOT_PATH_SEGMENT)}` : publicPath, this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!!!${request}`, {
|
@@ -138,7 +138,7 @@ let pitch = function(request, _, data) {
|
|
138
138
|
loaderContext: this,
|
139
139
|
options,
|
140
140
|
locals: locals
|
141
|
-
}) : result, dependencies.length > 0 && (
|
141
|
+
}) : result, dependencies.length > 0 && this.__internal__setParseMeta(PLUGIN_NAME, JSON.stringify(dependencies)), callback(null, resultSource, void 0, data);
|
142
142
|
})(exports1);
|
143
143
|
});
|
144
144
|
}, css_extract_loader = function(content) {
|
package/dist/exports.d.ts
CHANGED
@@ -8,24 +8,24 @@ export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
|
|
8
8
|
export { MultiCompiler } from "./MultiCompiler";
|
9
9
|
import { RspackOptionsApply } from "./rspackOptionsApply";
|
10
10
|
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
11
|
-
export type { Chunk } from "./Chunk";
|
12
11
|
export type { ChunkGroup } from "@rspack/binding";
|
12
|
+
export { AsyncDependenciesBlock, Dependency, EntryDependency } from "@rspack/binding";
|
13
|
+
export type { Chunk } from "./Chunk";
|
14
|
+
export { ConcatenatedModule } from "./ConcatenatedModule";
|
15
|
+
export { ContextModule } from "./ContextModule";
|
16
|
+
export { ExternalModule } from "./ExternalModule";
|
13
17
|
export type { ResolveData, ResourceDataWithData } from "./Module";
|
14
|
-
export { MultiStats } from "./MultiStats";
|
15
18
|
export { Module } from "./Module";
|
19
|
+
export type { default as ModuleGraph } from "./ModuleGraph";
|
20
|
+
export { MultiStats } from "./MultiStats";
|
16
21
|
export { NormalModule } from "./NormalModule";
|
17
|
-
export { ContextModule } from "./ContextModule";
|
18
|
-
export { ConcatenatedModule } from "./ConcatenatedModule";
|
19
|
-
export { ExternalModule } from "./ExternalModule";
|
20
22
|
export type { NormalModuleFactory } from "./NormalModuleFactory";
|
21
|
-
export type {
|
23
|
+
export type { RspackError, RspackSeverity } from "./RspackError";
|
22
24
|
export { RuntimeGlobals } from "./RuntimeGlobals";
|
25
|
+
export { RuntimeModule } from "./RuntimeModule";
|
23
26
|
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from "./Stats";
|
24
|
-
export { StatsErrorCode } from "./stats/statsFactoryUtils";
|
25
27
|
export { Stats } from "./Stats";
|
26
|
-
export {
|
27
|
-
export { EntryDependency, Dependency, AsyncDependenciesBlock } from "@rspack/binding";
|
28
|
-
export type { RspackError, RspackSeverity } from "./RspackError";
|
28
|
+
export { StatsErrorCode } from "./stats/statsFactoryUtils";
|
29
29
|
import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
|
30
30
|
export { ModuleFilenameHelpers };
|
31
31
|
export { Template } from "./Template";
|
@@ -48,32 +48,17 @@ export declare const util: {
|
|
48
48
|
createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
|
49
49
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
50
50
|
};
|
51
|
-
export {
|
52
|
-
export type
|
53
|
-
export type { BannerPluginArgument } from "./builtin-plugin";
|
54
|
-
export type { ProvidePluginOptions } from "./builtin-plugin";
|
55
|
-
export type { DefinePluginOptions } from "./builtin-plugin";
|
56
|
-
export type { ProgressPluginArgument } from "./builtin-plugin";
|
57
|
-
export type { EntryOptions } from "./builtin-plugin";
|
58
|
-
export { BannerPlugin } from "./builtin-plugin";
|
59
|
-
export { IgnorePlugin, type IgnorePluginOptions } from "./builtin-plugin";
|
60
|
-
export { ProvidePlugin } from "./builtin-plugin";
|
61
|
-
export { DefinePlugin } from "./builtin-plugin";
|
62
|
-
export { ProgressPlugin } from "./builtin-plugin";
|
63
|
-
export { EntryPlugin } from "./builtin-plugin";
|
64
|
-
export { DynamicEntryPlugin } from "./builtin-plugin";
|
65
|
-
export { ExternalsPlugin } from "./builtin-plugin";
|
66
|
-
export { HotModuleReplacementPlugin } from "./builtin-plugin";
|
67
|
-
export { NoEmitOnErrorsPlugin } from "./builtin-plugin";
|
68
|
-
export { WarnCaseSensitiveModulesPlugin } from "./builtin-plugin";
|
69
|
-
export { RuntimePlugin } from "./builtin-plugin";
|
51
|
+
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions } from "./builtin-plugin";
|
52
|
+
export { BannerPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, WarnCaseSensitiveModulesPlugin } from "./builtin-plugin";
|
70
53
|
export { DllPlugin, type DllPluginOptions } from "./lib/DllPlugin";
|
71
|
-
export { DllReferencePlugin, type DllReferencePluginOptions, type
|
54
|
+
export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType } from "./lib/DllReferencePlugin";
|
55
|
+
export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
|
72
56
|
export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
73
57
|
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
74
58
|
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
75
59
|
export { NormalModuleReplacementPlugin } from "./lib/NormalModuleReplacementPlugin";
|
76
|
-
|
60
|
+
export type { OutputFileSystem } from "./util/fs";
|
61
|
+
import { FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
77
62
|
interface Web {
|
78
63
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
79
64
|
}
|
@@ -113,14 +98,7 @@ interface Webworker {
|
|
113
98
|
WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin;
|
114
99
|
}
|
115
100
|
export declare const webworker: Webworker;
|
116
|
-
import { LimitChunkCountPlugin } from "./builtin-plugin";
|
117
|
-
import { RuntimeChunkPlugin } from "./builtin-plugin";
|
118
|
-
import { SplitChunksPlugin } from "./builtin-plugin";
|
119
|
-
import { RemoveDuplicateModulesPlugin } from "./builtin-plugin";
|
120
|
-
import { RsdoctorPlugin } from "./builtin-plugin";
|
121
|
-
import { RstestPlugin } from "./builtin-plugin";
|
122
|
-
import { RslibPlugin } from "./builtin-plugin";
|
123
|
-
import { CssChunkingPlugin } from "./builtin-plugin";
|
101
|
+
import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from "./builtin-plugin";
|
124
102
|
interface Optimize {
|
125
103
|
LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
|
126
104
|
RuntimeChunkPlugin: typeof RuntimeChunkPlugin;
|
@@ -144,36 +122,18 @@ export declare const container: {
|
|
144
122
|
import { ConsumeSharedPlugin } from "./sharing/ConsumeSharedPlugin";
|
145
123
|
import { ProvideSharedPlugin } from "./sharing/ProvideSharedPlugin";
|
146
124
|
import { SharePlugin } from "./sharing/SharePlugin";
|
147
|
-
export type { Consumes, ConsumesConfig,
|
148
|
-
export type { Provides, ProvidesConfig,
|
125
|
+
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject } from "./sharing/ConsumeSharedPlugin";
|
126
|
+
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject } from "./sharing/ProvideSharedPlugin";
|
149
127
|
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions } from "./sharing/SharePlugin";
|
150
128
|
export declare const sharing: {
|
151
129
|
ProvideSharedPlugin: typeof ProvideSharedPlugin;
|
152
130
|
ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
|
153
131
|
SharePlugin: typeof SharePlugin;
|
154
132
|
};
|
155
|
-
export type {
|
156
|
-
export type { HtmlRspackPluginOptions } from "./builtin-plugin";
|
157
|
-
export type { SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
158
|
-
export type { LightningCssMinimizerRspackPluginOptions } from "./builtin-plugin";
|
159
|
-
export type { CircularDependencyRspackPluginOptions } from "./builtin-plugin";
|
160
|
-
export type { CopyRspackPluginOptions } from "./builtin-plugin";
|
161
|
-
export type { SourceMapDevToolPluginOptions } from "./builtin-plugin";
|
162
|
-
export type { EvalDevToolModulePluginOptions } from "./builtin-plugin";
|
163
|
-
export type { CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions } from "./builtin-plugin";
|
164
|
-
export { HtmlRspackPlugin } from "./builtin-plugin";
|
165
|
-
export { SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
|
166
|
-
export { LightningCssMinimizerRspackPlugin } from "./builtin-plugin";
|
167
|
-
export { CircularDependencyRspackPlugin } from "./builtin-plugin";
|
168
|
-
export { CopyRspackPlugin } from "./builtin-plugin";
|
169
|
-
export { SourceMapDevToolPlugin } from "./builtin-plugin";
|
170
|
-
export { EvalSourceMapDevToolPlugin } from "./builtin-plugin";
|
171
|
-
export { EvalDevToolModulePlugin } from "./builtin-plugin";
|
172
|
-
export { CssExtractRspackPlugin } from "./builtin-plugin";
|
173
|
-
export { ContextReplacementPlugin } from "./builtin-plugin";
|
133
|
+
export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions } from "./builtin-loader/lightningcss/index";
|
174
134
|
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
|
175
|
-
export type {
|
176
|
-
export
|
135
|
+
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
136
|
+
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
|
177
137
|
import { createNativePlugin } from "./builtin-plugin";
|
178
138
|
import { minify, minifySync, transform, transformSync } from "./swc";
|
179
139
|
interface Experiments {
|