@rspack-canary/core 1.7.3-canary-6991b7b5-20260119174555 → 1.7.3-canary-0b48f4eb-20260120024403
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/ChunkGraph.d.ts +1 -1
- package/dist/Compilation.d.ts +27 -27
- package/dist/Compiler.d.ts +18 -17
- package/dist/ContextModuleFactory.d.ts +1 -1
- package/dist/Diagnostics.d.ts +1 -1
- package/dist/ExecuteModulePlugin.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +1 -1
- package/dist/FileSystem.d.ts +1 -1
- package/dist/Module.d.ts +2 -2
- package/dist/ModuleGraph.d.ts +2 -2
- package/dist/MultiCompiler.d.ts +7 -7
- package/dist/MultiStats.d.ts +3 -3
- package/dist/MultiWatching.d.ts +2 -2
- package/dist/NativeWatchFileSystem.d.ts +1 -1
- package/dist/NormalModule.d.ts +3 -3
- package/dist/NormalModuleFactory.d.ts +3 -3
- package/dist/Resolver.d.ts +1 -1
- package/dist/ResolverFactory.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/RuntimeModule.d.ts +3 -3
- package/dist/Stats.d.ts +4 -4
- package/dist/VirtualModulesPlugin.d.ts +1 -1
- package/dist/Watching.d.ts +4 -4
- package/dist/builtin-loader/index.d.ts +1 -1
- package/dist/builtin-loader/lightningcss/index.d.ts +0 -5
- package/dist/builtin-loader/swc/index.d.ts +5 -5
- package/dist/builtin-loader/swc/types.d.ts +4 -6
- package/dist/builtin-plugin/APIPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/BannerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CaseSensitivePlugin.d.ts +3 -3
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +4 -4
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DataUriPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DefinePlugin.d.ts +3 -3
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EntryPlugin.d.ts +4 -4
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +3 -3
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FileUriPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +2 -2
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/IgnorePlugin.d.ts +3 -3
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/InlineExportsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +4 -4
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +3 -3
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +5 -10
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +3 -3
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +4 -4
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ProgressPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ProvidePlugin.d.ts +3 -3
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +4 -8
- package/dist/builtin-plugin/RslibPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RstestPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RuntimePlugin.d.ts +6 -10
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +5 -5
- package/dist/builtin-plugin/URLPlugin.d.ts +3 -3
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
- package/dist/builtin-plugin/WorkerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/index.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +1 -6
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -9
- package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +85 -84
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +4 -4
- 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 +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/adapter.d.ts +4 -4
- package/dist/config/adapterRuleUse.d.ts +9 -9
- package/dist/config/browserslistTargetHandler.d.ts +1 -1
- package/dist/config/defaults.d.ts +1 -1
- package/dist/config/devServer.d.ts +3 -3
- package/dist/config/index.d.ts +5 -5
- package/dist/config/normalization.d.ts +7 -35
- package/dist/config/types.d.ts +67 -156
- package/dist/container/ContainerPlugin.d.ts +3 -3
- package/dist/container/ContainerReferencePlugin.d.ts +3 -3
- package/dist/container/ModuleFederationManifestPlugin.d.ts +2 -2
- package/dist/container/ModuleFederationPlugin.d.ts +3 -3
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +3 -3
- package/dist/container/index.d.ts +4 -4
- package/dist/cssExtractHmr.js +2 -27
- package/dist/cssExtractLoader.js +15 -57
- package/dist/exports.d.ts +70 -81
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11461 -11716
- package/dist/lib/AbstractMethodError.d.ts +1 -1
- package/dist/lib/Cache.d.ts +1 -1
- package/dist/lib/CacheFacade.d.ts +3 -3
- package/dist/lib/DllPlugin.d.ts +2 -2
- package/dist/lib/DllReferencePlugin.d.ts +3 -3
- package/dist/lib/EntryOptionPlugin.d.ts +2 -2
- package/dist/lib/EnvironmentPlugin.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/loader-runner/loadLoader.d.ts +2 -2
- package/dist/loader-runner/utils.d.ts +3 -3
- package/dist/loader-runner/worker.d.ts +1 -1
- package/dist/logging/createConsoleLogger.d.ts +2 -2
- package/dist/moduleFederationDefaultRuntime.js +1 -1
- package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
- package/dist/node/NodeTemplatePlugin.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +1 -1
- package/dist/node/nodeConsole.d.ts +1 -1
- package/dist/rslib-runtime.js +29 -0
- package/dist/rspack.d.ts +5 -5
- package/dist/rspackOptionsApply.d.ts +1 -1
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +1 -2
- package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
- package/dist/sharing/ProvideSharedPlugin.d.ts +2 -2
- package/dist/sharing/SharePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +2 -2
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +2 -2
- package/dist/stats/StatsPrinter.d.ts +1 -1
- package/dist/stats/statsFactoryUtils.d.ts +3 -6
- package/dist/taps/compilation.d.ts +1 -1
- 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 +1 -1
- package/dist/trace/traceHookPlugin.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/fs.d.ts +1 -1
- package/dist/util/hash/md4.d.ts +1 -1
- package/dist/util/hash/xxhash64.d.ts +1 -1
- package/dist/util/index.d.ts +1 -1
- package/dist/util/validateConfig.d.ts +1 -1
- package/dist/worker.js +846 -918
- package/hot/dev-server.js +12 -9
- package/hot/emitter.js +5 -1
- package/hot/lazy-compilation-node.js +4 -1
- package/hot/lazy-compilation-web.js +2 -3
- package/hot/log-apply-result.js +8 -5
- package/hot/log.js +17 -7
- package/hot/only-dev-server.js +13 -10
- package/hot/poll.js +11 -8
- package/hot/signal.js +13 -9
- package/package.json +9 -6
|
@@ -4,8 +4,8 @@ export declare const ProgressPlugin: {
|
|
|
4
4
|
new (progress?: ProgressPluginArgument): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [progress?: ProgressPluginArgument];
|
|
7
|
-
affectedHooks: keyof import("
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
7
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -3,8 +3,8 @@ export declare const ProvidePlugin: {
|
|
|
3
3
|
new (provide: ProvidePluginOptions): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [provide: ProvidePluginOptions];
|
|
6
|
-
affectedHooks: keyof import("
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
6
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
7
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -2,8 +2,8 @@ export declare const RealContentHashPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks: keyof import("
|
|
6
|
-
raw(compiler: import("
|
|
7
|
-
apply(compiler: import("
|
|
5
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@ export declare const RemoveDuplicateModulesPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks: keyof import("
|
|
6
|
-
raw(compiler: import("
|
|
7
|
-
apply(compiler: import("
|
|
5
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@ export declare const RemoveEmptyChunksPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks: keyof import("
|
|
6
|
-
raw(compiler: import("
|
|
7
|
-
apply(compiler: import("
|
|
5
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type JsRsdoctorAsset, type JsRsdoctorAssetPatch, type JsRsdoctorChunk, type JsRsdoctorChunkAssets, type JsRsdoctorChunkGraph, type JsRsdoctorChunkModules, type JsRsdoctorDependency, type JsRsdoctorEntrypoint, type JsRsdoctorEntrypointAssets, type JsRsdoctorExportInfo, type JsRsdoctorModule, type JsRsdoctorModuleGraph, type JsRsdoctorModuleGraphModule, type JsRsdoctorModuleIdsPatch, type JsRsdoctorModuleOriginalSource, type JsRsdoctorModuleSourcesPatch, type JsRsdoctorSideEffect, type JsRsdoctorSourcePosition, type JsRsdoctorSourceRange, type JsRsdoctorStatement, type JsRsdoctorVariable } from '@rspack/binding';
|
|
2
2
|
import * as liteTapable from '@rspack/lite-tapable';
|
|
3
|
-
import { type Compilation } from '../Compilation';
|
|
4
|
-
import type { Compiler } from '../Compiler';
|
|
5
|
-
import type { CreatePartialRegisters } from '../taps/types';
|
|
3
|
+
import { type Compilation } from '../Compilation.js';
|
|
4
|
+
import type { Compiler } from '../Compiler.js';
|
|
5
|
+
import type { CreatePartialRegisters } from '../taps/types.js';
|
|
6
6
|
export declare namespace RsdoctorPluginData {
|
|
7
7
|
export type { JsRsdoctorAsset as RsdoctorAsset, JsRsdoctorChunkGraph as RsdoctorChunkGraph, JsRsdoctorModuleGraph as RsdoctorModuleGraph, JsRsdoctorChunk as RsdoctorChunk, JsRsdoctorModule as RsdoctorModule, JsRsdoctorSideEffect as RsdoctorSideEffect, JsRsdoctorExportInfo as RsdoctorExportInfo, JsRsdoctorVariable as RsdoctorVariable, JsRsdoctorDependency as RsdoctorDependency, JsRsdoctorEntrypoint as RsdoctorEntrypoint, JsRsdoctorStatement as RsdoctorStatement, JsRsdoctorSourceRange as RsdoctorSourceRange, JsRsdoctorSourcePosition as RsdoctorSourcePosition, JsRsdoctorModuleGraphModule as RsdoctorModuleGraphModule, JsRsdoctorModuleIdsPatch as RsdoctorModuleIdsPatch, JsRsdoctorModuleOriginalSource as RsdoctorModuleOriginalSource, JsRsdoctorAssetPatch as RsdoctorAssetPatch, JsRsdoctorChunkAssets as RsdoctorChunkAssets, JsRsdoctorEntrypointAssets as RsdoctorEntrypointAssets, JsRsdoctorChunkModules as RsdoctorChunkModules, JsRsdoctorModuleSourcesPatch as RsdoctorModuleSourcesPatch, };
|
|
8
8
|
}
|
|
@@ -18,7 +18,7 @@ declare const RsdoctorPluginImpl: {
|
|
|
18
18
|
new (c?: RsdoctorPluginOptions | undefined): {
|
|
19
19
|
name: string;
|
|
20
20
|
_args: [c?: RsdoctorPluginOptions | undefined];
|
|
21
|
-
affectedHooks: keyof import("../
|
|
21
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
22
22
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
23
23
|
apply(compiler: Compiler): void;
|
|
24
24
|
};
|
|
@@ -39,10 +39,6 @@ export type RsdoctorPluginHooks = {
|
|
|
39
39
|
assets: liteTapable.AsyncSeriesBailHook<[JsRsdoctorAssetPatch], false | void>;
|
|
40
40
|
};
|
|
41
41
|
declare const RsdoctorPlugin: typeof RsdoctorPluginImpl & {
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated Use `getCompilationHooks` instead.
|
|
44
|
-
*/
|
|
45
|
-
getHooks: (compilation: Compilation) => RsdoctorPluginHooks;
|
|
46
42
|
getCompilationHooks: (compilation: Compilation) => RsdoctorPluginHooks;
|
|
47
43
|
};
|
|
48
44
|
export declare const createRsdoctorPluginHooksRegisters: CreatePartialRegisters<`RsdoctorPlugin`>;
|
|
@@ -4,8 +4,8 @@ export declare const RslibPlugin: {
|
|
|
4
4
|
new (rslib: RawRslibPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [rslib: RawRslibPluginOptions];
|
|
7
|
-
affectedHooks: keyof import("
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
7
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -4,8 +4,8 @@ export declare const RstestPlugin: {
|
|
|
4
4
|
new (rstest: RawRstestPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [rstest: RawRstestPluginOptions];
|
|
7
|
-
affectedHooks: keyof import("
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
7
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -4,8 +4,8 @@ export declare const RuntimeChunkPlugin: {
|
|
|
4
4
|
new (options: RawRuntimeChunkOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: RawRuntimeChunkOptions];
|
|
7
|
-
affectedHooks: keyof import("
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
7
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import binding from '@rspack/binding';
|
|
2
2
|
import * as liteTapable from '@rspack/lite-tapable';
|
|
3
|
-
import type { Chunk } from '../Chunk';
|
|
4
|
-
import { type Compilation } from '../Compilation';
|
|
5
|
-
import type { CreatePartialRegisters } from '../taps/types';
|
|
3
|
+
import type { Chunk } from '../Chunk.js';
|
|
4
|
+
import { type Compilation } from '../Compilation.js';
|
|
5
|
+
import type { CreatePartialRegisters } from '../taps/types.js';
|
|
6
6
|
export declare const RuntimePluginImpl: {
|
|
7
7
|
new (): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [];
|
|
10
|
-
affectedHooks: keyof import("
|
|
11
|
-
raw(compiler: import("
|
|
12
|
-
apply(compiler: import("
|
|
10
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
11
|
+
raw(compiler: import("../index.js").Compiler): binding.BuiltinPlugin;
|
|
12
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
export type RuntimePluginHooks = {
|
|
@@ -19,10 +19,6 @@ export type RuntimePluginHooks = {
|
|
|
19
19
|
linkPrefetch: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
20
20
|
};
|
|
21
21
|
declare const RuntimePlugin: typeof RuntimePluginImpl & {
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Use `getCompilationHooks` instead.
|
|
24
|
-
*/
|
|
25
|
-
getHooks: (compilation: Compilation) => RuntimePluginHooks;
|
|
26
22
|
getCompilationHooks: (compilation: Compilation) => RuntimePluginHooks;
|
|
27
23
|
};
|
|
28
24
|
export declare const createRuntimePluginHooksRegisters: CreatePartialRegisters<`RuntimePlugin`>;
|
|
@@ -2,8 +2,8 @@ export declare const SideEffectsFlagPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks: keyof import("
|
|
6
|
-
raw(compiler: import("
|
|
7
|
-
apply(compiler: import("
|
|
5
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -12,8 +12,8 @@ export declare const SizeLimitsPlugin: {
|
|
|
12
12
|
maxAssetSize?: number;
|
|
13
13
|
maxEntrypointSize?: number;
|
|
14
14
|
}];
|
|
15
|
-
affectedHooks: keyof import("
|
|
16
|
-
raw(compiler: import("
|
|
17
|
-
apply(compiler: import("
|
|
15
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
16
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -4,8 +4,8 @@ export declare const SourceMapDevToolPlugin: {
|
|
|
4
4
|
new (options: SourceMapDevToolPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
7
|
-
affectedHooks: keyof import("
|
|
8
|
-
raw(compiler: import("
|
|
9
|
-
apply(compiler: import("
|
|
7
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
-
import type { Compiler } from '../Compiler';
|
|
3
|
-
import type { OptimizationSplitChunksOptions } from '../config';
|
|
4
|
-
import { RspackBuiltinPlugin } from './base';
|
|
2
|
+
import type { Compiler } from '../Compiler.js';
|
|
3
|
+
import type { OptimizationSplitChunksOptions } from '../config/index.js';
|
|
4
|
+
import { RspackBuiltinPlugin } from './base.js';
|
|
5
5
|
export declare class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
6
6
|
private options;
|
|
7
7
|
name: BuiltinPluginName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RawSubresourceIntegrityPluginOptions } from '@rspack/binding';
|
|
2
|
-
import type { Compiler } from '../Compiler';
|
|
2
|
+
import type { Compiler } from '../Compiler.js';
|
|
3
3
|
export type SubresourceIntegrityHashFunction = 'sha256' | 'sha384' | 'sha512';
|
|
4
4
|
export type SubresourceIntegrityPluginOptions = {
|
|
5
5
|
hashFuncNames?: [
|
|
@@ -20,7 +20,7 @@ declare const NativeSubresourceIntegrityPlugin: {
|
|
|
20
20
|
new (options: NativeSubresourceIntegrityPluginOptions): {
|
|
21
21
|
name: string;
|
|
22
22
|
_args: [options: NativeSubresourceIntegrityPluginOptions];
|
|
23
|
-
affectedHooks: keyof import("../
|
|
23
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
24
24
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
25
25
|
apply(compiler: Compiler): void;
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LiteralUnion } from '../config';
|
|
2
|
-
import type { AssetConditions } from '../util/assetCondition';
|
|
1
|
+
import type { LiteralUnion } from '../config/index.js';
|
|
2
|
+
import type { AssetConditions } from '../util/assetCondition.js';
|
|
3
3
|
type ExtractCommentsCondition = boolean | RegExp;
|
|
4
4
|
type ExtractCommentsBanner = string | boolean;
|
|
5
5
|
type ExtractCommentsObject = {
|
|
@@ -207,9 +207,9 @@ export declare const SwcJsMinimizerRspackPlugin: {
|
|
|
207
207
|
new (options?: SwcJsMinimizerRspackPluginOptions | undefined): {
|
|
208
208
|
name: string;
|
|
209
209
|
_args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
|
|
210
|
-
affectedHooks: keyof import("
|
|
211
|
-
raw(compiler: import("
|
|
212
|
-
apply(compiler: import("
|
|
210
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
211
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
212
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
215
|
export {};
|
|
@@ -2,8 +2,8 @@ export declare const URLPlugin: {
|
|
|
2
2
|
new (): {
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
|
-
affectedHooks: keyof import("
|
|
6
|
-
raw(compiler: import("
|
|
7
|
-
apply(compiler: import("
|
|
5
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
-
import type { Compiler } from '../Compiler';
|
|
3
|
-
import { RspackBuiltinPlugin } from './base';
|
|
2
|
+
import type { Compiler } from '../Compiler.js';
|
|
3
|
+
import { RspackBuiltinPlugin } from './base.js';
|
|
4
4
|
export declare class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
raw(compiler: Compiler): BuiltinPlugin | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
-
import type { Compiler } from '../Compiler';
|
|
3
|
-
import type { ChunkLoading, OutputModule, WasmLoading, WorkerPublicPath } from '../config';
|
|
4
|
-
import { RspackBuiltinPlugin } from './base';
|
|
2
|
+
import type { Compiler } from '../Compiler.js';
|
|
3
|
+
import type { ChunkLoading, OutputModule, WasmLoading, WorkerPublicPath } from '../config/index.js';
|
|
4
|
+
import { RspackBuiltinPlugin } from './base.js';
|
|
5
5
|
export declare class WorkerPlugin extends RspackBuiltinPlugin {
|
|
6
6
|
private chunkLoading;
|
|
7
7
|
private wasmLoading;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import binding from '@rspack/binding';
|
|
2
|
-
import type { Compiler, RspackPluginInstance } from '
|
|
2
|
+
import type { Compiler, RspackPluginInstance } from '../index.js';
|
|
3
3
|
type AffectedHooks = keyof Compiler['hooks'];
|
|
4
4
|
export declare function canInherentFromParent(affectedHooks?: AffectedHooks): boolean;
|
|
5
5
|
export declare abstract class RspackBuiltinPlugin implements RspackPluginInstance {
|
|
@@ -14,7 +14,7 @@ export declare function create<T extends any[], R>(name: binding.BuiltinPluginNa
|
|
|
14
14
|
new (...args: T): {
|
|
15
15
|
name: string;
|
|
16
16
|
_args: T;
|
|
17
|
-
affectedHooks: keyof import("
|
|
17
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
18
18
|
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
19
19
|
apply(compiler: Compiler): void;
|
|
20
20
|
};
|
|
@@ -37,7 +37,7 @@ export declare function createNativePlugin<T extends any[], R>(name: CustomPlugi
|
|
|
37
37
|
new (...args: T): {
|
|
38
38
|
name: string;
|
|
39
39
|
_args: T;
|
|
40
|
-
affectedHooks: keyof import("
|
|
40
|
+
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
41
41
|
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
42
42
|
apply(compiler: Compiler): void;
|
|
43
43
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type RawCssExtractPluginOption } from '@rspack/binding';
|
|
2
|
-
import type { Compiler, LiteralUnion } from '
|
|
3
|
-
export * from './loader';
|
|
4
|
-
export type { CssExtractRspackLoaderOptions } from './loader';
|
|
2
|
+
import type { Compiler, LiteralUnion } from '../../index.js';
|
|
3
|
+
export * from './loader.js';
|
|
4
|
+
export type { CssExtractRspackLoaderOptions } from './loader.js';
|
|
5
5
|
export interface CssExtractRspackPluginOptions {
|
|
6
6
|
filename?: RawCssExtractPluginOption['filename'];
|
|
7
7
|
chunkFilename?: RawCssExtractPluginOption['chunkFilename'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoaderContext, LoaderDefinition } from '
|
|
1
|
+
import type { LoaderContext, LoaderDefinition } from '../../index.js';
|
|
2
2
|
export declare const BASE_URI = "rspack-css-extract://";
|
|
3
3
|
export declare const MODULE_TYPE = "css/mini-extract";
|
|
4
4
|
export declare const AUTO_PUBLIC_PATH = "__css_extract_public_path_auto__";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoaderContext } from '
|
|
1
|
+
import type { LoaderContext } from '../../index.js';
|
|
2
2
|
export declare function isAbsolutePath(str: string): boolean;
|
|
3
3
|
export declare const PLUGIN_NAME = "css-extract-rspack-plugin";
|
|
4
4
|
export declare function isRelativePath(str: string): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from '@rspack/binding';
|
|
2
2
|
import * as liteTapable from '@rspack/lite-tapable';
|
|
3
|
-
import { type Compilation } from '../../Compilation';
|
|
4
|
-
import type { HtmlRspackPluginOptions } from './options';
|
|
3
|
+
import { type Compilation } from '../../Compilation.js';
|
|
4
|
+
import type { HtmlRspackPluginOptions } from './options.js';
|
|
5
5
|
type ExtraPluginHookData = {
|
|
6
6
|
plugin: {
|
|
7
7
|
options: HtmlRspackPluginOptions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './options';
|
|
2
|
-
export * from './plugin';
|
|
1
|
+
export * from './options.js';
|
|
2
|
+
export * from './plugin.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Compilation } from '../../Compilation';
|
|
1
|
+
import { Compilation } from '../../Compilation.js';
|
|
2
2
|
export type TemplateRenderFunction = (params: Record<string, any>) => string | Promise<string>;
|
|
3
3
|
export type TemplateParamFunction = (params: Record<string, any>) => Record<string, any> | Promise<Record<string, any>>;
|
|
4
4
|
export type HtmlRspackPluginOptions = {
|
|
@@ -52,11 +52,6 @@ export type HtmlRspackPluginOptions = {
|
|
|
52
52
|
* @default "auto"
|
|
53
53
|
*/
|
|
54
54
|
chunksSortMode?: 'auto' | 'manual';
|
|
55
|
-
/**
|
|
56
|
-
* Configure the SRI hash algorithm, which is disabled by default.
|
|
57
|
-
* @deprecated Use `experiments.SubresourceIntegrityPlugin` instead.
|
|
58
|
-
*/
|
|
59
|
-
sri?: 'sha256' | 'sha384' | 'sha512';
|
|
60
55
|
/**
|
|
61
56
|
* Controls whether to minify the output, disabled by default.
|
|
62
57
|
*/
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import { type JsHtmlPluginTag } from '@rspack/binding';
|
|
2
|
-
import type { Compilation } from '../../Compilation';
|
|
3
|
-
import type { Compiler } from '../../Compiler';
|
|
4
|
-
import { type HtmlRspackPluginHooks } from './hooks';
|
|
5
|
-
import { type HtmlRspackPluginOptions } from './options';
|
|
2
|
+
import type { Compilation } from '../../Compilation.js';
|
|
3
|
+
import type { Compiler } from '../../Compiler.js';
|
|
4
|
+
import { type HtmlRspackPluginHooks } from './hooks.js';
|
|
5
|
+
import { type HtmlRspackPluginOptions } from './options.js';
|
|
6
6
|
declare const HtmlRspackPluginImpl: {
|
|
7
7
|
new (c?: HtmlRspackPluginOptions | undefined): {
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [c?: HtmlRspackPluginOptions | undefined];
|
|
10
|
-
affectedHooks: keyof import("../../
|
|
10
|
+
affectedHooks: keyof import("../../index.js").CompilerHooks | undefined;
|
|
11
11
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: Compiler): void;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
declare const HtmlRspackPlugin: typeof HtmlRspackPluginImpl & {
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Use `getCompilationHooks` instead.
|
|
18
|
-
*/
|
|
19
|
-
getHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
|
|
20
16
|
getCompilationHooks: (compilation: Compilation) => HtmlRspackPluginHooks;
|
|
21
17
|
createHtmlTagObject: (tagName: string, attributes?: Record<string, string | boolean>, innerHTML?: string) => JsHtmlPluginTag;
|
|
22
18
|
version: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from '../../taps/types';
|
|
1
|
+
import type { CreatePartialRegisters } from '../../taps/types.js';
|
|
2
2
|
export declare const createHtmlPluginHooksRegisters: CreatePartialRegisters<`HtmlPlugin`>;
|
|
@@ -1,84 +1,85 @@
|
|
|
1
|
-
export * from './APIPlugin';
|
|
2
|
-
export * from './ArrayPushCallbackChunkFormatPlugin';
|
|
3
|
-
export * from './AssetModulesPlugin';
|
|
4
|
-
export * from './AsyncWebAssemblyModulesPlugin';
|
|
5
|
-
export * from './BannerPlugin';
|
|
6
|
-
export * from './BundlerInfoRspackPlugin';
|
|
7
|
-
export { createNativePlugin, RspackBuiltinPlugin } from './base';
|
|
8
|
-
export * from './CaseSensitivePlugin';
|
|
9
|
-
export * from './ChunkPrefetchPreloadPlugin';
|
|
10
|
-
export * from './CircularDependencyRspackPlugin';
|
|
11
|
-
export * from './CommonJsChunkFormatPlugin';
|
|
12
|
-
export * from './ContextReplacementPlugin';
|
|
13
|
-
export * from './CopyRspackPlugin';
|
|
14
|
-
export * from './CssChunkingPlugin';
|
|
15
|
-
export * from './CssModulesPlugin';
|
|
16
|
-
export * from './css-extract/index';
|
|
17
|
-
export * from './DataUriPlugin';
|
|
18
|
-
export * from './DefinePlugin';
|
|
19
|
-
export * from './DeterministicChunkIdsPlugin';
|
|
20
|
-
export * from './DeterministicModuleIdsPlugin';
|
|
21
|
-
export * from './DllEntryPlugin';
|
|
22
|
-
export * from './DllReferenceAgencyPlugin';
|
|
23
|
-
export * from './DynamicEntryPlugin';
|
|
24
|
-
export * from './ElectronTargetPlugin';
|
|
25
|
-
export * from './EnableChunkLoadingPlugin';
|
|
26
|
-
export * from './EnableLibraryPlugin';
|
|
27
|
-
export * from './EnableWasmLoadingPlugin';
|
|
28
|
-
export * from './EnsureChunkConditionsPlugin';
|
|
29
|
-
export * from './EntryPlugin';
|
|
30
|
-
export * from './EsmLibraryPlugin';
|
|
31
|
-
export * from './EvalDevToolModulePlugin';
|
|
32
|
-
export * from './EvalSourceMapDevToolPlugin';
|
|
33
|
-
export * from './ExternalsPlugin';
|
|
34
|
-
export * from './FetchCompileAsyncWasmPlugin';
|
|
35
|
-
export * from './FileUriPlugin';
|
|
36
|
-
export * from './FlagDependencyExportsPlugin';
|
|
37
|
-
export * from './FlagDependencyUsagePlugin';
|
|
38
|
-
export * from './HotModuleReplacementPlugin';
|
|
39
|
-
export * from './HttpExternalsRspackPlugin';
|
|
40
|
-
export * from './HttpUriPlugin';
|
|
41
|
-
export * from './html-plugin/index';
|
|
42
|
-
export * from './IgnorePlugin';
|
|
43
|
-
export * from './InferAsyncModulesPlugin';
|
|
44
|
-
export * from './InlineExportsPlugin';
|
|
45
|
-
export * from './JavascriptModulesPlugin';
|
|
46
|
-
export * from './JsLoaderRspackPlugin';
|
|
47
|
-
export * from './JsonModulesPlugin';
|
|
48
|
-
export * from './LibManifestPlugin';
|
|
49
|
-
export * from './LightningCssMinimizerRspackPlugin';
|
|
50
|
-
export * from './LightningCssMinimizerRspackPlugin';
|
|
51
|
-
export * from './LimitChunkCountPlugin';
|
|
52
|
-
export * from './lazy-compilation/middleware';
|
|
53
|
-
export * from './MangleExportsPlugin';
|
|
54
|
-
export * from './MergeDuplicateChunksPlugin';
|
|
55
|
-
export * from './ModuleChunkFormatPlugin';
|
|
56
|
-
export * from './ModuleConcatenationPlugin';
|
|
57
|
-
export * from './ModuleInfoHeaderPlugin';
|
|
58
|
-
export * from './NamedChunkIdsPlugin';
|
|
59
|
-
export * from './NamedModuleIdsPlugin';
|
|
60
|
-
export * from './NaturalChunkIdsPlugin';
|
|
61
|
-
export * from './NaturalModuleIdsPlugin';
|
|
62
|
-
export * from './NodeTargetPlugin';
|
|
63
|
-
export * from './NoEmitOnErrorsPlugin';
|
|
64
|
-
export * from './NormalModuleReplacementPlugin';
|
|
65
|
-
export * from './OccurrenceChunkIdsPlugin';
|
|
66
|
-
export * from './ProgressPlugin';
|
|
67
|
-
export * from './ProvidePlugin';
|
|
68
|
-
export * from './RealContentHashPlugin';
|
|
69
|
-
export * from './RemoveDuplicateModulesPlugin';
|
|
70
|
-
export * from './RemoveEmptyChunksPlugin';
|
|
71
|
-
export * from './RsdoctorPlugin';
|
|
72
|
-
export * from './RslibPlugin';
|
|
73
|
-
export * from './RstestPlugin';
|
|
74
|
-
export * from './RuntimeChunkPlugin';
|
|
75
|
-
export * from './RuntimePlugin';
|
|
76
|
-
export
|
|
77
|
-
export * from './
|
|
78
|
-
export * from './
|
|
79
|
-
export * from './
|
|
80
|
-
export * from './
|
|
81
|
-
export * from './
|
|
82
|
-
export * from './
|
|
83
|
-
export * from './
|
|
84
|
-
export * from './
|
|
1
|
+
export * from './APIPlugin.js';
|
|
2
|
+
export * from './ArrayPushCallbackChunkFormatPlugin.js';
|
|
3
|
+
export * from './AssetModulesPlugin.js';
|
|
4
|
+
export * from './AsyncWebAssemblyModulesPlugin.js';
|
|
5
|
+
export * from './BannerPlugin.js';
|
|
6
|
+
export * from './BundlerInfoRspackPlugin.js';
|
|
7
|
+
export { createNativePlugin, RspackBuiltinPlugin } from './base.js';
|
|
8
|
+
export * from './CaseSensitivePlugin.js';
|
|
9
|
+
export * from './ChunkPrefetchPreloadPlugin.js';
|
|
10
|
+
export * from './CircularDependencyRspackPlugin.js';
|
|
11
|
+
export * from './CommonJsChunkFormatPlugin.js';
|
|
12
|
+
export * from './ContextReplacementPlugin.js';
|
|
13
|
+
export * from './CopyRspackPlugin.js';
|
|
14
|
+
export * from './CssChunkingPlugin.js';
|
|
15
|
+
export * from './CssModulesPlugin.js';
|
|
16
|
+
export * from './css-extract/index.js';
|
|
17
|
+
export * from './DataUriPlugin.js';
|
|
18
|
+
export * from './DefinePlugin.js';
|
|
19
|
+
export * from './DeterministicChunkIdsPlugin.js';
|
|
20
|
+
export * from './DeterministicModuleIdsPlugin.js';
|
|
21
|
+
export * from './DllEntryPlugin.js';
|
|
22
|
+
export * from './DllReferenceAgencyPlugin.js';
|
|
23
|
+
export * from './DynamicEntryPlugin.js';
|
|
24
|
+
export * from './ElectronTargetPlugin.js';
|
|
25
|
+
export * from './EnableChunkLoadingPlugin.js';
|
|
26
|
+
export * from './EnableLibraryPlugin.js';
|
|
27
|
+
export * from './EnableWasmLoadingPlugin.js';
|
|
28
|
+
export * from './EnsureChunkConditionsPlugin.js';
|
|
29
|
+
export * from './EntryPlugin.js';
|
|
30
|
+
export * from './EsmLibraryPlugin.js';
|
|
31
|
+
export * from './EvalDevToolModulePlugin.js';
|
|
32
|
+
export * from './EvalSourceMapDevToolPlugin.js';
|
|
33
|
+
export * from './ExternalsPlugin.js';
|
|
34
|
+
export * from './FetchCompileAsyncWasmPlugin.js';
|
|
35
|
+
export * from './FileUriPlugin.js';
|
|
36
|
+
export * from './FlagDependencyExportsPlugin.js';
|
|
37
|
+
export * from './FlagDependencyUsagePlugin.js';
|
|
38
|
+
export * from './HotModuleReplacementPlugin.js';
|
|
39
|
+
export * from './HttpExternalsRspackPlugin.js';
|
|
40
|
+
export * from './HttpUriPlugin.js';
|
|
41
|
+
export * from './html-plugin/index.js';
|
|
42
|
+
export * from './IgnorePlugin.js';
|
|
43
|
+
export * from './InferAsyncModulesPlugin.js';
|
|
44
|
+
export * from './InlineExportsPlugin.js';
|
|
45
|
+
export * from './JavascriptModulesPlugin.js';
|
|
46
|
+
export * from './JsLoaderRspackPlugin.js';
|
|
47
|
+
export * from './JsonModulesPlugin.js';
|
|
48
|
+
export * from './LibManifestPlugin.js';
|
|
49
|
+
export * from './LightningCssMinimizerRspackPlugin.js';
|
|
50
|
+
export * from './LightningCssMinimizerRspackPlugin.js';
|
|
51
|
+
export * from './LimitChunkCountPlugin.js';
|
|
52
|
+
export * from './lazy-compilation/middleware.js';
|
|
53
|
+
export * from './MangleExportsPlugin.js';
|
|
54
|
+
export * from './MergeDuplicateChunksPlugin.js';
|
|
55
|
+
export * from './ModuleChunkFormatPlugin.js';
|
|
56
|
+
export * from './ModuleConcatenationPlugin.js';
|
|
57
|
+
export * from './ModuleInfoHeaderPlugin.js';
|
|
58
|
+
export * from './NamedChunkIdsPlugin.js';
|
|
59
|
+
export * from './NamedModuleIdsPlugin.js';
|
|
60
|
+
export * from './NaturalChunkIdsPlugin.js';
|
|
61
|
+
export * from './NaturalModuleIdsPlugin.js';
|
|
62
|
+
export * from './NodeTargetPlugin.js';
|
|
63
|
+
export * from './NoEmitOnErrorsPlugin.js';
|
|
64
|
+
export * from './NormalModuleReplacementPlugin.js';
|
|
65
|
+
export * from './OccurrenceChunkIdsPlugin.js';
|
|
66
|
+
export * from './ProgressPlugin.js';
|
|
67
|
+
export * from './ProvidePlugin.js';
|
|
68
|
+
export * from './RealContentHashPlugin.js';
|
|
69
|
+
export * from './RemoveDuplicateModulesPlugin.js';
|
|
70
|
+
export * from './RemoveEmptyChunksPlugin.js';
|
|
71
|
+
export * from './RsdoctorPlugin.js';
|
|
72
|
+
export * from './RslibPlugin.js';
|
|
73
|
+
export * from './RstestPlugin.js';
|
|
74
|
+
export * from './RuntimeChunkPlugin.js';
|
|
75
|
+
export * from './RuntimePlugin.js';
|
|
76
|
+
export { rsc } from './rsc/index.js';
|
|
77
|
+
export * from './SideEffectsFlagPlugin.js';
|
|
78
|
+
export * from './SizeLimitsPlugin.js';
|
|
79
|
+
export * from './SourceMapDevToolPlugin.js';
|
|
80
|
+
export * from './SplitChunksPlugin.js';
|
|
81
|
+
export * from './SubresourceIntegrityPlugin.js';
|
|
82
|
+
export * from './SwcJsMinimizerPlugin.js';
|
|
83
|
+
export * from './URLPlugin.js';
|
|
84
|
+
export * from './WebWorkerTemplatePlugin.js';
|
|
85
|
+
export * from './WorkerPlugin.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Module } from '../../Module';
|
|
1
|
+
import type { Module } from '../../Module.js';
|
|
2
2
|
export declare const BuiltinLazyCompilationPlugin: {
|
|
3
3
|
new (currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined];
|
|
6
|
-
affectedHooks: keyof import("
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
6
|
+
affectedHooks: keyof import("../../index.js").CompilerHooks | undefined;
|
|
7
|
+
raw(compiler: import("../../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("../../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Compiler, MultiCompiler } from '
|
|
2
|
-
import type { MiddlewareHandler } from '../../config/devServer';
|
|
1
|
+
import { type Compiler, MultiCompiler } from '../../index.js';
|
|
2
|
+
import type { MiddlewareHandler } from '../../config/devServer.js';
|
|
3
3
|
export declare const LAZY_COMPILATION_PREFIX = "/lazy-compilation-using-";
|
|
4
4
|
/**
|
|
5
5
|
* Create a middleware that handles lazy compilation requests from the client.
|