@ohos-ports/rspack-core 1.7.11-beta.1
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/LICENSE +22 -0
- package/README.md +15 -0
- package/compiled/@swc/types/index.d.ts +2134 -0
- package/compiled/@swc/types/index.js +19 -0
- package/compiled/@swc/types/license +201 -0
- package/compiled/@swc/types/package.json +1 -0
- package/compiled/browserslist-load-config/index.d.ts +21 -0
- package/compiled/browserslist-load-config/index.js +252 -0
- package/compiled/browserslist-load-config/license +21 -0
- package/compiled/browserslist-load-config/package.json +1 -0
- package/compiled/tinypool/LICENSE +24 -0
- package/compiled/tinypool/README.md +20 -0
- package/compiled/tinypool/dist/common-Qw-RoVFD.js +28 -0
- package/compiled/tinypool/dist/entry/process.d.ts +1 -0
- package/compiled/tinypool/dist/entry/process.js +72 -0
- package/compiled/tinypool/dist/entry/utils.d.ts +7 -0
- package/compiled/tinypool/dist/entry/utils.js +3 -0
- package/compiled/tinypool/dist/entry/worker.d.ts +1 -0
- package/compiled/tinypool/dist/entry/worker.js +76 -0
- package/compiled/tinypool/dist/index.d.ts +195 -0
- package/compiled/tinypool/dist/index.js +820 -0
- package/compiled/tinypool/dist/utils-B--2TaWv.js +38 -0
- package/compiled/tinypool/dist/utils-De75vAgL.js +10 -0
- package/compiled/tinypool/package.json +39 -0
- package/compiled/watchpack/index.d.ts +217 -0
- package/compiled/watchpack/index.js +3124 -0
- package/compiled/watchpack/license +20 -0
- package/compiled/watchpack/package.json +1 -0
- package/compiled/webpack-sources/index.js +4675 -0
- package/compiled/webpack-sources/license +21 -0
- package/compiled/webpack-sources/package.json +1 -0
- package/compiled/webpack-sources/types.d.ts +458 -0
- package/dist/BuildInfo.d.ts +17 -0
- package/dist/Chunk.d.ts +16 -0
- package/dist/ChunkGraph.d.ts +9 -0
- package/dist/Chunks.d.ts +12 -0
- package/dist/CodeGenerationResults.d.ts +1 -0
- package/dist/Compilation.d.ts +438 -0
- package/dist/Compiler.d.ts +226 -0
- package/dist/ConcatenatedModule.d.ts +1 -0
- package/dist/ContextModule.d.ts +1 -0
- package/dist/ContextModuleFactory.d.ts +13 -0
- package/dist/Diagnostics.d.ts +7 -0
- package/dist/Entrypoint.d.ts +2 -0
- package/dist/ErrorHelpers.d.ts +3 -0
- package/dist/ExecuteModulePlugin.d.ts +4 -0
- package/dist/ExportsInfo.d.ts +20 -0
- package/dist/ExternalModule.d.ts +1 -0
- package/dist/FileSystem.d.ts +54 -0
- package/dist/FileSystemInfo.d.ts +5 -0
- package/dist/Module.d.ts +42 -0
- package/dist/ModuleGraph.d.ts +19 -0
- package/dist/ModuleTypeConstants.d.ts +8 -0
- package/dist/MultiCompiler.d.ts +82 -0
- package/dist/MultiStats.d.ts +23 -0
- package/dist/MultiWatching.d.ts +27 -0
- package/dist/NativeWatchFileSystem.d.ts +23 -0
- package/dist/NormalModule.d.ts +15 -0
- package/dist/NormalModuleFactory.d.ts +23 -0
- package/dist/Resolver.d.ts +30 -0
- package/dist/ResolverFactory.d.ts +17 -0
- package/dist/RspackError.d.ts +12 -0
- package/dist/RuleSetCompiler.d.ts +9 -0
- package/dist/RuntimeGlobals.d.ts +356 -0
- package/dist/RuntimeModule.d.ts +34 -0
- package/dist/Stats.d.ts +17 -0
- package/dist/Template.d.ts +77 -0
- package/dist/VirtualModulesPlugin.d.ts +12 -0
- package/dist/Watching.d.ts +56 -0
- package/dist/builtin-loader/index.d.ts +1 -0
- package/dist/builtin-loader/lightningcss/index.d.ts +117 -0
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +21 -0
- package/dist/builtin-loader/swc/index.d.ts +5 -0
- package/dist/builtin-loader/swc/pluginImport.d.ts +33 -0
- package/dist/builtin-loader/swc/types.d.ts +89 -0
- package/dist/builtin-plugin/APIPlugin.d.ts +9 -0
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +9 -0
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +9 -0
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +9 -0
- package/dist/builtin-plugin/BannerPlugin.d.ts +40 -0
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +14 -0
- package/dist/builtin-plugin/CaseSensitivePlugin.d.ts +9 -0
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +9 -0
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +54 -0
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +9 -0
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +9 -0
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +14 -0
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +21 -0
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +9 -0
- package/dist/builtin-plugin/DataUriPlugin.d.ts +9 -0
- package/dist/builtin-plugin/DefinePlugin.d.ts +16 -0
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +7 -0
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +7 -0
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +12 -0
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +11 -0
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +12 -0
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +9 -0
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +25 -0
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +11 -0
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +9 -0
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +9 -0
- package/dist/builtin-plugin/EntryPlugin.d.ts +32 -0
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +11 -0
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +11 -0
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +10 -0
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +12 -0
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +9 -0
- package/dist/builtin-plugin/FileUriPlugin.d.ts +9 -0
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +9 -0
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +9 -0
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +9 -0
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +7 -0
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +9 -0
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +36 -0
- package/dist/builtin-plugin/IgnorePlugin.d.ts +19 -0
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +9 -0
- package/dist/builtin-plugin/InlineExportsPlugin.d.ts +9 -0
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +15 -0
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +10 -0
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +9 -0
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +17 -0
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +32 -0
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +14 -0
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +9 -0
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +9 -0
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +9 -0
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +7 -0
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +9 -0
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +9 -0
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +9 -0
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +7 -0
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +7 -0
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +9 -0
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +9 -0
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +10 -0
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +10 -0
- package/dist/builtin-plugin/ProgressPlugin.d.ts +11 -0
- package/dist/builtin-plugin/ProvidePlugin.d.ts +10 -0
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +9 -0
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +9 -0
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +9 -0
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +49 -0
- package/dist/builtin-plugin/RslibPlugin.d.ts +11 -0
- package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +11 -0
- package/dist/builtin-plugin/RuntimePlugin.d.ts +29 -0
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +9 -0
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +19 -0
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +11 -0
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +11 -0
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +39 -0
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +215 -0
- package/dist/builtin-plugin/URLPlugin.d.ts +9 -0
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +7 -0
- package/dist/builtin-plugin/WorkerPlugin.d.ts +14 -0
- package/dist/builtin-plugin/base.d.ts +45 -0
- package/dist/builtin-plugin/css-extract/index.d.ts +24 -0
- package/dist/builtin-plugin/css-extract/loader.d.ts +21 -0
- package/dist/builtin-plugin/css-extract/utils.d.ts +6 -0
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +32 -0
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -0
- package/dist/builtin-plugin/html-plugin/options.d.ts +82 -0
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +24 -0
- package/dist/builtin-plugin/html-plugin/taps.d.ts +2 -0
- package/dist/builtin-plugin/index.d.ts +84 -0
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +10 -0
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +12 -0
- package/dist/config/adapter.d.ts +8 -0
- package/dist/config/adapterRuleUse.d.ts +391 -0
- package/dist/config/browserslistTargetHandler.d.ts +15 -0
- package/dist/config/defaults.d.ts +13 -0
- package/dist/config/devServer.d.ts +314 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/normalization.d.ts +174 -0
- package/dist/config/target.d.ts +93 -0
- package/dist/config/types.d.ts +2432 -0
- package/dist/container/ContainerPlugin.d.ts +41 -0
- package/dist/container/ContainerReferencePlugin.d.ts +34 -0
- package/dist/container/ModuleFederationManifestPlugin.d.ts +37 -0
- package/dist/container/ModuleFederationPlugin.d.ts +17 -0
- package/dist/container/ModuleFederationPluginV1.d.ts +22 -0
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +16 -0
- package/dist/container/index.d.ts +4 -0
- package/dist/container/options.d.ts +3 -0
- package/dist/cssExtractHmr.js +124 -0
- package/dist/cssExtractLoader.js +160 -0
- package/dist/error/ConcurrentCompilationError.d.ts +14 -0
- package/dist/exports.d.ts +178 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +12638 -0
- package/dist/lib/AbstractMethodError.d.ts +23 -0
- package/dist/lib/Cache.d.ts +65 -0
- package/dist/lib/CacheFacade.d.ts +139 -0
- package/dist/lib/DllPlugin.d.ts +42 -0
- package/dist/lib/DllReferencePlugin.d.ts +119 -0
- package/dist/lib/EntryOptionPlugin.d.ts +33 -0
- package/dist/lib/EnvironmentPlugin.d.ts +22 -0
- package/dist/lib/HookWebpackError.d.ts +40 -0
- package/dist/lib/IgnoreWarningsPlugin.d.ts +25 -0
- package/dist/lib/LoaderOptionsPlugin.d.ts +28 -0
- package/dist/lib/LoaderTargetPlugin.d.ts +24 -0
- package/dist/lib/ModuleFilenameHelpers.d.ts +53 -0
- package/dist/lib/WebpackError.d.ts +21 -0
- package/dist/lib/cache/MemoryCachePlugin.d.ts +5 -0
- package/dist/lib/cache/getLazyHashedEtag.d.ts +35 -0
- package/dist/lib/cache/mergeEtags.d.ts +17 -0
- package/dist/loader-runner/LoaderLoadingError.d.ts +13 -0
- package/dist/loader-runner/ModuleError.d.ts +13 -0
- package/dist/loader-runner/index.d.ts +36 -0
- package/dist/loader-runner/loadLoader.d.ts +12 -0
- package/dist/loader-runner/service.d.ts +73 -0
- package/dist/loader-runner/utils.d.ts +7 -0
- package/dist/loader-runner/worker.d.ts +14 -0
- package/dist/logging/Logger.d.ts +61 -0
- package/dist/logging/createConsoleLogger.d.ts +35 -0
- package/dist/logging/truncateArgs.d.ts +16 -0
- package/dist/moduleFederationDefaultRuntime.js +1 -0
- package/dist/node/NodeEnvironmentPlugin.d.ts +10 -0
- package/dist/node/NodeTemplatePlugin.d.ts +18 -0
- package/dist/node/NodeWatchFileSystem.d.ts +18 -0
- package/dist/node/nodeConsole.d.ts +15 -0
- package/dist/rspack.d.ts +25 -0
- package/dist/rspackOptionsApply.d.ts +4 -0
- package/dist/runtime/cssExtractHmr.d.ts +4 -0
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +2 -0
- package/dist/sharing/ConsumeSharedPlugin.d.ts +42 -0
- package/dist/sharing/ProvideSharedPlugin.d.ts +35 -0
- package/dist/sharing/SharePlugin.d.ts +53 -0
- package/dist/sharing/ShareRuntimePlugin.d.ts +9 -0
- package/dist/sharing/utils.d.ts +1 -0
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +20 -0
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +4 -0
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +13 -0
- package/dist/stats/StatsFactory.d.ts +57 -0
- package/dist/stats/StatsPrinter.d.ts +57 -0
- package/dist/stats/statsFactoryUtils.d.ts +341 -0
- package/dist/swc.d.ts +7 -0
- package/dist/taps/compilation.d.ts +8 -0
- package/dist/taps/compiler.d.ts +2 -0
- package/dist/taps/contextModuleFactory.d.ts +2 -0
- package/dist/taps/index.d.ts +6 -0
- package/dist/taps/javascriptModules.d.ts +2 -0
- package/dist/taps/normalModuleFactory.d.ts +2 -0
- package/dist/taps/types.d.ts +11 -0
- package/dist/trace/index.d.ts +46 -0
- package/dist/trace/traceHookPlugin.d.ts +5 -0
- package/dist/util/ArrayQueue.d.ts +45 -0
- package/dist/util/AsyncTask.d.ts +7 -0
- package/dist/util/MergeCaller.d.ts +10 -0
- package/dist/util/SizeFormatHelpers.d.ts +10 -0
- package/dist/util/SplitChunkSize.d.ts +5 -0
- package/dist/util/assertNotNil.d.ts +1 -0
- package/dist/util/assetCondition.d.ts +2 -0
- package/dist/util/asyncLib.d.ts +54 -0
- package/dist/util/bindingVersionCheck.d.ts +5 -0
- package/dist/util/cleverMerge.d.ts +24 -0
- package/dist/util/comparators.d.ts +16 -0
- package/dist/util/createHash.d.ts +16 -0
- package/dist/util/createReadonlyMap.d.ts +1 -0
- package/dist/util/fake.d.ts +14 -0
- package/dist/util/fs.d.ts +375 -0
- package/dist/util/hash/index.d.ts +26 -0
- package/dist/util/hash/md4.d.ts +11 -0
- package/dist/util/hash/wasm-hash.d.ts +51 -0
- package/dist/util/hash/xxhash64.d.ts +11 -0
- package/dist/util/identifier.d.ts +31 -0
- package/dist/util/index.d.ts +9 -0
- package/dist/util/memoize.d.ts +2 -0
- package/dist/util/runtime.d.ts +2 -0
- package/dist/util/smartGrouping.d.ts +21 -0
- package/dist/util/source.d.ts +6 -0
- package/dist/util/validateConfig.d.ts +5 -0
- package/dist/worker.js +978 -0
- package/hot/dev-server.js +75 -0
- package/hot/emitter.js +21 -0
- package/hot/lazy-compilation-node.js +106 -0
- package/hot/lazy-compilation-web.js +98 -0
- package/hot/log-apply-result.js +49 -0
- package/hot/log.js +79 -0
- package/hot/only-dev-server.js +103 -0
- package/hot/poll.js +40 -0
- package/hot/signal.js +66 -0
- package/module.d.ts +273 -0
- package/package.json +79 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const FlagDependencyExportsPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
+
import { RspackBuiltinPlugin } from './base';
|
|
3
|
+
export declare class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
4
|
+
private global;
|
|
5
|
+
name: BuiltinPluginName;
|
|
6
|
+
affectedHooks: "compilation";
|
|
7
|
+
constructor(global: boolean);
|
|
8
|
+
raw(): BuiltinPlugin;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
+
import type { Compiler } from '../Compiler';
|
|
3
|
+
import { RspackBuiltinPlugin } from './base';
|
|
4
|
+
export declare class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
5
|
+
name: BuiltinPluginName;
|
|
6
|
+
raw(compiler: Compiler): BuiltinPlugin;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const HttpExternalsRspackPlugin: {
|
|
2
|
+
new (css: boolean, webAsync: boolean): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [css: boolean, webAsync: boolean];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName, type RawHttpUriPluginOptions } from '@rspack/binding';
|
|
2
|
+
import type { Compiler } from '../Compiler';
|
|
3
|
+
import { RspackBuiltinPlugin } from './base';
|
|
4
|
+
export type HttpUriPluginOptionsAllowedUris = (string | RegExp)[];
|
|
5
|
+
export type HttpUriPluginOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of allowed URIs
|
|
8
|
+
*/
|
|
9
|
+
allowedUris: HttpUriPluginOptionsAllowedUris;
|
|
10
|
+
/**
|
|
11
|
+
* Define the location to store the lockfile
|
|
12
|
+
*/
|
|
13
|
+
lockfileLocation?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Define the location for caching remote resources
|
|
16
|
+
*/
|
|
17
|
+
cacheLocation?: string | false;
|
|
18
|
+
/**
|
|
19
|
+
* Detect changes to remote resources and upgrade them automatically
|
|
20
|
+
*/
|
|
21
|
+
upgrade?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Custom http client
|
|
24
|
+
*/
|
|
25
|
+
httpClient?: RawHttpUriPluginOptions['httpClient'];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Plugin that allows loading modules from HTTP URLs
|
|
29
|
+
*/
|
|
30
|
+
export declare class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
31
|
+
private options;
|
|
32
|
+
name: BuiltinPluginName;
|
|
33
|
+
affectedHooks: "compilation";
|
|
34
|
+
constructor(options: HttpUriPluginOptions);
|
|
35
|
+
raw(compiler: Compiler): BuiltinPlugin | undefined;
|
|
36
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RawIgnorePluginOptions } from '@rspack/binding';
|
|
2
|
+
export type IgnorePluginOptions = {
|
|
3
|
+
/** A RegExp to test the resource against. */
|
|
4
|
+
resourceRegExp: NonNullable<RawIgnorePluginOptions['resourceRegExp']>;
|
|
5
|
+
/** A RegExp to test the context (directory) against. */
|
|
6
|
+
contextRegExp?: RawIgnorePluginOptions['contextRegExp'];
|
|
7
|
+
} | {
|
|
8
|
+
/** A Filter function that receives `resource` and `context` as arguments, must return boolean. */
|
|
9
|
+
checkResource: NonNullable<RawIgnorePluginOptions['checkResource']>;
|
|
10
|
+
};
|
|
11
|
+
export declare const IgnorePlugin: {
|
|
12
|
+
new (options: IgnorePluginOptions): {
|
|
13
|
+
name: string;
|
|
14
|
+
_args: [options: IgnorePluginOptions];
|
|
15
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
16
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
|
+
apply(compiler: import("..").Compiler): void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const InferAsyncModulesPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const InlineExportsPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
+
import * as liteTapable from '@rspack/lite-tapable';
|
|
3
|
+
import type { Chunk } from '../Chunk';
|
|
4
|
+
import { type Compilation } from '../Compilation';
|
|
5
|
+
import type Hash from '../util/hash';
|
|
6
|
+
import { RspackBuiltinPlugin } from './base';
|
|
7
|
+
export type CompilationHooks = {
|
|
8
|
+
chunkHash: liteTapable.SyncHook<[Chunk, Hash]>;
|
|
9
|
+
};
|
|
10
|
+
export declare class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
11
|
+
name: BuiltinPluginName;
|
|
12
|
+
affectedHooks: "compilation";
|
|
13
|
+
raw(): BuiltinPlugin;
|
|
14
|
+
static getCompilationHooks(compilation: Compilation): CompilationHooks;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Compiler } from '../Compiler';
|
|
2
|
+
export declare const JsLoaderRspackPlugin: {
|
|
3
|
+
new (compiler: Compiler): {
|
|
4
|
+
name: string;
|
|
5
|
+
_args: [compiler: Compiler];
|
|
6
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
7
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: Compiler): void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const JsonModulesPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type LibManifestPluginOptions = {
|
|
2
|
+
context?: string;
|
|
3
|
+
entryOnly?: boolean;
|
|
4
|
+
format?: boolean;
|
|
5
|
+
name?: string;
|
|
6
|
+
path: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const LibManifestPlugin: {
|
|
10
|
+
new (options: LibManifestPluginOptions): {
|
|
11
|
+
name: string;
|
|
12
|
+
_args: [options: LibManifestPluginOptions];
|
|
13
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
14
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
15
|
+
apply(compiler: import("..").Compiler): void;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Drafts, type FeatureOptions, type NonStandard, type PseudoClasses } from '../builtin-loader/lightningcss';
|
|
2
|
+
import type { AssetConditions } from '../util/assetCondition';
|
|
3
|
+
export type LightningCssMinimizerRspackPluginOptions = {
|
|
4
|
+
test?: AssetConditions;
|
|
5
|
+
include?: AssetConditions;
|
|
6
|
+
exclude?: AssetConditions;
|
|
7
|
+
removeUnusedLocalIdents?: boolean;
|
|
8
|
+
minimizerOptions?: {
|
|
9
|
+
errorRecovery?: boolean;
|
|
10
|
+
targets?: string[] | string;
|
|
11
|
+
include?: FeatureOptions;
|
|
12
|
+
exclude?: FeatureOptions;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `drafts` instead.
|
|
15
|
+
* This will be removed in the next major version.
|
|
16
|
+
*/
|
|
17
|
+
draft?: Drafts;
|
|
18
|
+
drafts?: Drafts;
|
|
19
|
+
nonStandard?: NonStandard;
|
|
20
|
+
pseudoClasses?: PseudoClasses;
|
|
21
|
+
unusedSymbols?: string[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const LightningCssMinimizerRspackPlugin: {
|
|
25
|
+
new (options?: LightningCssMinimizerRspackPluginOptions | undefined): {
|
|
26
|
+
name: string;
|
|
27
|
+
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
|
|
28
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
29
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
30
|
+
apply(compiler: import("..").Compiler): void;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type LimitChunkCountOptions = {
|
|
2
|
+
chunkOverhead?: number;
|
|
3
|
+
entryChunkMultiplicator?: number;
|
|
4
|
+
maxChunks: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const LimitChunkCountPlugin: {
|
|
7
|
+
new (options: LimitChunkCountOptions): {
|
|
8
|
+
name: string;
|
|
9
|
+
_args: [options: LimitChunkCountOptions];
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
12
|
+
apply(compiler: import("..").Compiler): void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
+
import { RspackBuiltinPlugin } from './base';
|
|
3
|
+
export declare class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
4
|
+
private deterministic;
|
|
5
|
+
name: BuiltinPluginName;
|
|
6
|
+
affectedHooks: "compilation";
|
|
7
|
+
constructor(deterministic: boolean);
|
|
8
|
+
raw(): BuiltinPlugin;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const MergeDuplicateChunksPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ModuleChunkFormatPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
+
import { RspackBuiltinPlugin } from './base';
|
|
3
|
+
export declare class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
4
|
+
name: BuiltinPluginName;
|
|
5
|
+
affectedHooks: "compilation";
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ModuleInfoHeaderPlugin: {
|
|
2
|
+
new (verbose: any): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [verbose: any];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const NamedChunkIdsPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const NamedModuleIdsPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
+
import { RspackBuiltinPlugin } from './base';
|
|
3
|
+
export declare class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
4
|
+
name: BuiltinPluginName;
|
|
5
|
+
affectedHooks: "compilation";
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
+
import { RspackBuiltinPlugin } from './base';
|
|
3
|
+
export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
4
|
+
name: BuiltinPluginName;
|
|
5
|
+
affectedHooks: "compilation";
|
|
6
|
+
raw(): BuiltinPlugin;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const NoEmitOnErrorsPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const NodeTargetPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ResolveData } from '../Module';
|
|
2
|
+
export declare const NormalModuleReplacementPlugin: {
|
|
3
|
+
new (resourceRegExp: RegExp, newResource: string | ((data: ResolveData) => void)): {
|
|
4
|
+
name: string;
|
|
5
|
+
_args: [resourceRegExp: RegExp, newResource: string | ((data: ResolveData) => void)];
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type RawOccurrenceChunkIdsPluginOptions } from '@rspack/binding';
|
|
2
|
+
export declare const OccurrenceChunkIdsPlugin: {
|
|
3
|
+
new (options?: RawOccurrenceChunkIdsPluginOptions | undefined): {
|
|
4
|
+
name: string;
|
|
5
|
+
_args: [options?: RawOccurrenceChunkIdsPluginOptions | undefined];
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RawProgressPluginOptions } from '@rspack/binding';
|
|
2
|
+
export type ProgressPluginArgument = Partial<Omit<RawProgressPluginOptions, 'handler'>> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
|
|
3
|
+
export declare const ProgressPlugin: {
|
|
4
|
+
new (progress?: ProgressPluginArgument): {
|
|
5
|
+
name: string;
|
|
6
|
+
_args: [progress?: ProgressPluginArgument];
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ProvidePluginOptions = Record<string, string | string[]>;
|
|
2
|
+
export declare const ProvidePlugin: {
|
|
3
|
+
new (provide: ProvidePluginOptions): {
|
|
4
|
+
name: string;
|
|
5
|
+
_args: [provide: ProvidePluginOptions];
|
|
6
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const RealContentHashPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const RemoveDuplicateModulesPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const RemoveEmptyChunksPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
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';
|
|
6
|
+
export declare namespace RsdoctorPluginData {
|
|
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
|
+
}
|
|
9
|
+
export type RsdoctorPluginOptions = {
|
|
10
|
+
moduleGraphFeatures?: boolean | ('graph' | 'ids' | 'sources')[];
|
|
11
|
+
chunkGraphFeatures?: boolean | ('graph' | 'assets')[];
|
|
12
|
+
sourceMapFeatures?: {
|
|
13
|
+
module?: boolean;
|
|
14
|
+
cheap?: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare const RsdoctorPluginImpl: {
|
|
18
|
+
new (c?: RsdoctorPluginOptions | undefined): {
|
|
19
|
+
name: string;
|
|
20
|
+
_args: [c?: RsdoctorPluginOptions | undefined];
|
|
21
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
22
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
23
|
+
apply(compiler: Compiler): void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type RsdoctorPluginHooks = {
|
|
27
|
+
moduleGraph: liteTapable.AsyncSeriesBailHook<[
|
|
28
|
+
JsRsdoctorModuleGraph
|
|
29
|
+
], false | void>;
|
|
30
|
+
chunkGraph: liteTapable.AsyncSeriesBailHook<[
|
|
31
|
+
JsRsdoctorChunkGraph
|
|
32
|
+
], false | void>;
|
|
33
|
+
moduleIds: liteTapable.AsyncSeriesBailHook<[
|
|
34
|
+
JsRsdoctorModuleIdsPatch
|
|
35
|
+
], false | void>;
|
|
36
|
+
moduleSources: liteTapable.AsyncSeriesBailHook<[
|
|
37
|
+
JsRsdoctorModuleSourcesPatch
|
|
38
|
+
], false | void>;
|
|
39
|
+
assets: liteTapable.AsyncSeriesBailHook<[JsRsdoctorAssetPatch], false | void>;
|
|
40
|
+
};
|
|
41
|
+
declare const RsdoctorPlugin: typeof RsdoctorPluginImpl & {
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use `getCompilationHooks` instead.
|
|
44
|
+
*/
|
|
45
|
+
getHooks: (compilation: Compilation) => RsdoctorPluginHooks;
|
|
46
|
+
getCompilationHooks: (compilation: Compilation) => RsdoctorPluginHooks;
|
|
47
|
+
};
|
|
48
|
+
export declare const createRsdoctorPluginHooksRegisters: CreatePartialRegisters<`RsdoctorPlugin`>;
|
|
49
|
+
export { RsdoctorPlugin };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RawRslibPluginOptions } from '@rspack/binding';
|
|
2
|
+
export type RslibPluginArgument = Partial<Omit<RawRslibPluginOptions, 'handler'>> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
|
|
3
|
+
export declare const RslibPlugin: {
|
|
4
|
+
new (rslib: RawRslibPluginOptions): {
|
|
5
|
+
name: string;
|
|
6
|
+
_args: [rslib: RawRslibPluginOptions];
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RawRstestPluginOptions } from '@rspack/binding';
|
|
2
|
+
export type RstestPluginArgument = Partial<Omit<RawRstestPluginOptions, 'handler'>> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
|
|
3
|
+
export declare const RstestPlugin: {
|
|
4
|
+
new (rstest: RawRstestPluginOptions): {
|
|
5
|
+
name: string;
|
|
6
|
+
_args: [rstest: RawRstestPluginOptions];
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RawRuntimeChunkOptions } from '@rspack/binding';
|
|
2
|
+
export type RuntimeChunkPluginOptions = RawRuntimeChunkOptions;
|
|
3
|
+
export declare const RuntimeChunkPlugin: {
|
|
4
|
+
new (options: RawRuntimeChunkOptions): {
|
|
5
|
+
name: string;
|
|
6
|
+
_args: [options: RawRuntimeChunkOptions];
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import binding from '@rspack/binding';
|
|
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';
|
|
6
|
+
export declare const RuntimePluginImpl: {
|
|
7
|
+
new (): {
|
|
8
|
+
name: string;
|
|
9
|
+
_args: [];
|
|
10
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
11
|
+
raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
|
|
12
|
+
apply(compiler: import("..").Compiler): void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type RuntimePluginHooks = {
|
|
16
|
+
createScript: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
17
|
+
createLink: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
18
|
+
linkPreload: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
19
|
+
linkPrefetch: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
20
|
+
};
|
|
21
|
+
declare const RuntimePlugin: typeof RuntimePluginImpl & {
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `getCompilationHooks` instead.
|
|
24
|
+
*/
|
|
25
|
+
getHooks: (compilation: Compilation) => RuntimePluginHooks;
|
|
26
|
+
getCompilationHooks: (compilation: Compilation) => RuntimePluginHooks;
|
|
27
|
+
};
|
|
28
|
+
export declare const createRuntimePluginHooksRegisters: CreatePartialRegisters<`RuntimePlugin`>;
|
|
29
|
+
export { RuntimePlugin };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const SideEffectsFlagPlugin: {
|
|
2
|
+
new (): {
|
|
3
|
+
name: string;
|
|
4
|
+
_args: [];
|
|
5
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
6
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
|
+
apply(compiler: import("..").Compiler): void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const SizeLimitsPlugin: {
|
|
2
|
+
new (options: {
|
|
3
|
+
assetFilter?: (assetFilename: string) => boolean;
|
|
4
|
+
hints?: false | "warning" | "error";
|
|
5
|
+
maxAssetSize?: number;
|
|
6
|
+
maxEntrypointSize?: number;
|
|
7
|
+
}): {
|
|
8
|
+
name: string;
|
|
9
|
+
_args: [options: {
|
|
10
|
+
assetFilter?: (assetFilename: string) => boolean;
|
|
11
|
+
hints?: false | "warning" | "error";
|
|
12
|
+
maxAssetSize?: number;
|
|
13
|
+
maxEntrypointSize?: number;
|
|
14
|
+
}];
|
|
15
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
16
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
|
+
apply(compiler: import("..").Compiler): void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type SourceMapDevToolPluginOptions } from '@rspack/binding';
|
|
2
|
+
export type { SourceMapDevToolPluginOptions };
|
|
3
|
+
export declare const SourceMapDevToolPlugin: {
|
|
4
|
+
new (options: SourceMapDevToolPluginOptions): {
|
|
5
|
+
name: string;
|
|
6
|
+
_args: [options: SourceMapDevToolPluginOptions];
|
|
7
|
+
affectedHooks: keyof import("..").CompilerHooks | undefined;
|
|
8
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
+
apply(compiler: import("..").Compiler): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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';
|
|
5
|
+
export declare class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
6
|
+
private options;
|
|
7
|
+
name: BuiltinPluginName;
|
|
8
|
+
affectedHooks: "thisCompilation";
|
|
9
|
+
constructor(options: OptimizationSplitChunksOptions);
|
|
10
|
+
raw(compiler: Compiler): BuiltinPlugin;
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type RawSubresourceIntegrityPluginOptions } from '@rspack/binding';
|
|
2
|
+
import type { Compiler } from '../Compiler';
|
|
3
|
+
export type SubresourceIntegrityHashFunction = 'sha256' | 'sha384' | 'sha512';
|
|
4
|
+
export type SubresourceIntegrityPluginOptions = {
|
|
5
|
+
hashFuncNames?: [
|
|
6
|
+
SubresourceIntegrityHashFunction,
|
|
7
|
+
...SubresourceIntegrityHashFunction[]
|
|
8
|
+
];
|
|
9
|
+
htmlPlugin?: string | false;
|
|
10
|
+
enabled?: 'auto' | boolean;
|
|
11
|
+
};
|
|
12
|
+
export type NativeSubresourceIntegrityPluginOptions = Omit<RawSubresourceIntegrityPluginOptions, 'htmlPlugin'> & {
|
|
13
|
+
htmlPlugin: string | false;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Note: This is not a webpack public API, maybe removed in future.
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
declare const NativeSubresourceIntegrityPlugin: {
|
|
20
|
+
new (options: NativeSubresourceIntegrityPluginOptions): {
|
|
21
|
+
name: string;
|
|
22
|
+
_args: [options: NativeSubresourceIntegrityPluginOptions];
|
|
23
|
+
affectedHooks: keyof import("../Compiler").CompilerHooks | undefined;
|
|
24
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
25
|
+
apply(compiler: Compiler): void;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare class SubresourceIntegrityPlugin extends NativeSubresourceIntegrityPlugin {
|
|
29
|
+
private integrities;
|
|
30
|
+
private options;
|
|
31
|
+
constructor(options?: SubresourceIntegrityPluginOptions);
|
|
32
|
+
private isEnabled;
|
|
33
|
+
private getIntegrityChecksumForAsset;
|
|
34
|
+
private handleHwpPluginArgs;
|
|
35
|
+
private handleHwpBodyTags;
|
|
36
|
+
private processTag;
|
|
37
|
+
apply(compiler: Compiler): void;
|
|
38
|
+
}
|
|
39
|
+
export {};
|