@ohos-ports/rspack-core 2.2.2-beta.0 → 2.2.9-beta.0
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/README.md +10 -0
- package/compiled/@rspack/lite-tapable/dist/index.d.ts +20 -6
- package/compiled/@rspack/lite-tapable/package.json +1 -1
- package/compiled/open/package.json +1 -1
- package/compiled/tinypool/README.md +4 -4
- package/compiled/tinypool/dist/index.d.ts +3 -2
- package/compiled/tinypool/dist/index.js +3 -3
- package/compiled/tinypool/package.json +1 -1
- package/compiled/webpack-sources/index.d.ts +61 -0
- package/compiled/webpack-sources/index.js +858 -224
- package/compiled/webpack-sources/package.json +8 -1
- package/compiled/webpack-sources/types/CachedSource.d.ts +192 -0
- package/compiled/webpack-sources/types/CompatSource.d.ts +87 -0
- package/compiled/webpack-sources/types/ConcatSource.d.ts +75 -0
- package/compiled/webpack-sources/types/OriginalSource.d.ts +87 -0
- package/compiled/webpack-sources/types/PrefixSource.d.ts +59 -0
- package/compiled/webpack-sources/types/RawSource.d.ts +75 -0
- package/compiled/webpack-sources/types/ReplaceSource.d.ts +107 -0
- package/compiled/webpack-sources/types/SizeOnlySource.d.ts +24 -0
- package/compiled/webpack-sources/types/Source.d.ts +189 -0
- package/compiled/webpack-sources/types/SourceMapSource.d.ts +136 -0
- package/compiled/webpack-sources/types/helpers/createMappingsSerializer.d.ts +60 -0
- package/compiled/webpack-sources/types/helpers/getFromStreamChunks.d.ts +16 -0
- package/compiled/webpack-sources/types/helpers/getGeneratedSourceInfo.d.ts +31 -0
- package/compiled/webpack-sources/types/helpers/getName.d.ts +15 -0
- package/compiled/webpack-sources/types/helpers/getSource.d.ts +15 -0
- package/compiled/webpack-sources/types/helpers/readMappings.d.ts +19 -0
- package/compiled/webpack-sources/types/helpers/scopes.d.ts +119 -0
- package/compiled/webpack-sources/types/helpers/splitIntoLines.d.ts +6 -0
- package/compiled/webpack-sources/types/helpers/splitIntoPotentialTokens.d.ts +37 -0
- package/compiled/webpack-sources/types/helpers/streamAndGetSourceAndMap.d.ts +39 -0
- package/compiled/webpack-sources/types/helpers/streamChunks.d.ts +56 -0
- package/compiled/webpack-sources/types/helpers/streamChunksOfCombinedSourceMap.d.ts +42 -0
- package/compiled/webpack-sources/types/helpers/streamChunksOfRawSource.d.ts +16 -0
- package/compiled/webpack-sources/types/helpers/streamChunksOfSourceMap.d.ts +19 -0
- package/compiled/webpack-sources/types/helpers/stringBufferUtils.d.ts +55 -0
- package/compiled/webpack-sources/types/index.d.ts +50 -0
- package/dist/BuildInfo.d.ts +6 -4
- package/dist/Chunk.d.ts +3 -3
- package/dist/ChunkGraph.d.ts +2 -2
- package/dist/Chunks.d.ts +2 -2
- package/dist/CodeGenerationResults.d.ts +6 -1
- package/dist/Compilation.d.ts +13 -52
- package/dist/Compiler.d.ts +5 -5
- package/dist/ConcatenatedModule.d.ts +1 -1
- package/dist/ContextModule.d.ts +1 -1
- package/dist/Diagnostics.d.ts +2 -6
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +1 -1
- package/dist/ExternalModule.d.ts +1 -1
- package/dist/FileSystem.d.ts +3 -1
- package/dist/FileSystemDependencies.d.ts +15 -0
- package/dist/Module.d.ts +10 -6
- package/dist/ModuleGraph.d.ts +6 -6
- package/dist/ModuleGraphConnection.d.ts +1 -1
- package/dist/Modules.d.ts +3 -0
- package/dist/NativeWatchFileSystem.d.ts +1 -1
- package/dist/NormalModule.d.ts +2 -2
- package/dist/NormalModuleFactory.d.ts +2 -1
- package/dist/Resolver.d.ts +10 -2
- package/dist/ResolverFactory.d.ts +1 -1
- package/dist/RspackError.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +4 -3
- package/dist/RuntimeModule.d.ts +1 -1
- package/dist/builtin-loader/lightningcss/target.d.ts +1 -1
- 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 +2 -2
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CaseSensitivePlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularCheckRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularModulesInfoPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CompactHashedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CompactHashedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssHttpExternalsRspackPlugin.d.ts +1 -1
- 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/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DynamicEntryPlugin.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/EnableLibraryPlugin.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 +2 -2
- package/dist/builtin-plugin/EsmNodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ExternalsPlugin.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/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HashedModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +5 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/InlineExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.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/MangleExportsPlugin.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/ModuleConcatenationPlugin.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/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.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/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- 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 +2 -2
- package/dist/builtin-plugin/RslibPlugin.d.ts +4 -4
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- 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 +2 -2
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SyncModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/URLPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/index.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/utils.d.ts +4 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +2 -2
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +3 -3
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +1 -1
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +1 -1
- package/dist/config/adapter.d.ts +1 -1
- package/dist/config/adapterRuleUse.d.ts +3 -2
- package/dist/config/normalization.d.ts +6 -9
- package/dist/config/types.d.ts +79 -16
- package/dist/container/ContainerPlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/container/ModuleFederationManifestPlugin.d.ts +1 -1
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/cssExtractLoader.js +7 -5
- package/dist/exports.d.ts +5 -5
- package/dist/index.js +885 -408
- package/dist/lib/Cache.d.ts +3 -0
- package/dist/lib/DllReferencePlugin.d.ts +1 -1
- package/dist/lib/WebpackError.d.ts +1 -1
- package/dist/loader-runner/cache.d.ts +11 -2
- package/dist/loader-runner/dependencies.d.ts +4 -3
- package/dist/loader-runner/index.d.ts +1 -1
- package/dist/loader-runner/service.d.ts +6 -1
- package/dist/loader-runner/worker.d.ts +1 -1
- package/dist/l~0.js +34 -0
- package/dist/l~3.js +34 -0
- package/dist/sharing/CollectSharedEntryPlugin.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/sharing/ProvideSharedPlugin.d.ts +1 -1
- package/dist/sharing/SharePlugin.d.ts +13 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
- package/dist/sharing/SharedContainerPlugin.d.ts +1 -1
- package/dist/sharing/SharedUsedExportsOptimizerPlugin.d.ts +2 -2
- package/dist/stats/StatsFactory.d.ts +4 -2
- package/dist/stats/StatsPrinter.d.ts +5 -5
- package/dist/stats/statsFactoryUtils.d.ts +5 -6
- package/dist/swc.d.ts +1 -1
- package/dist/taps/compilation.d.ts +1 -1
- package/dist/taps/types.d.ts +1 -1
- package/dist/util/SplitChunkSize.d.ts +1 -1
- package/dist/util/bindingHelpers.d.ts +7 -0
- package/dist/util/fs.d.ts +9 -9
- package/dist/util/source.d.ts +3 -3
- package/dist/util/watchTimeInfo.d.ts +7 -0
- package/dist/worker.js +78 -43
- package/package.json +8 -32
- package/compiled/webpack-sources/types.d.ts +0 -500
- package/dist/612~0.js +0 -32
- package/dist/612~3.js +0 -32
- package/dist/util/MergeCaller.d.ts +0 -10
- package/dist/util/fake.d.ts +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import type { Compiler } from '../Compiler.js';
|
|
3
3
|
import { RspackBuiltinPlugin } from './base.js';
|
|
4
4
|
export declare class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
@@ -3,7 +3,7 @@ export declare const HttpExternalsRspackPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [webAsync: boolean];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName, type RawHttpUriPluginOptions } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName, type RawHttpUriPluginOptions } from '@rspack/binding';
|
|
2
2
|
import type { Compiler } from '../Compiler.js';
|
|
3
3
|
import { RspackBuiltinPlugin } from './base.js';
|
|
4
4
|
export type HttpUriPluginOptionsAllowedUris = (string | RegExp)[];
|
|
@@ -19,6 +19,10 @@ export type HttpUriPluginOptions = {
|
|
|
19
19
|
* Detect changes to remote resources and upgrade them automatically
|
|
20
20
|
*/
|
|
21
21
|
upgrade?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Freeze the remote resources and lockfile. Changes result in an error.
|
|
24
|
+
*/
|
|
25
|
+
frozen?: boolean;
|
|
22
26
|
/**
|
|
23
27
|
* Custom http client
|
|
24
28
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RawIgnorePluginOptions } from '@
|
|
1
|
+
import { type RawIgnorePluginOptions } from '@rspack/binding';
|
|
2
2
|
export type IgnorePluginOptions = {
|
|
3
3
|
/** A RegExp to test the resource against. */
|
|
4
4
|
resourceRegExp: NonNullable<RawIgnorePluginOptions['resourceRegExp']>;
|
|
@@ -13,7 +13,7 @@ export declare const IgnorePlugin: {
|
|
|
13
13
|
name: string;
|
|
14
14
|
_args: [options: IgnorePluginOptions];
|
|
15
15
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
16
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
16
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
17
|
apply(compiler: import("../index.js").Compiler): void;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -3,7 +3,7 @@ export declare const InferAsyncModulesPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const InlineExportsPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import type { Chunk } from '../Chunk.js';
|
|
4
4
|
import { type Compilation } from '../Compilation.js';
|
|
@@ -4,7 +4,7 @@ export declare const JsLoaderRspackPlugin: {
|
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [compiler: Compiler];
|
|
6
6
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
7
|
-
raw(compiler: Compiler): import("@
|
|
7
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export declare const JsonModulesPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -11,7 +11,7 @@ export declare const LibManifestPlugin: {
|
|
|
11
11
|
name: string;
|
|
12
12
|
_args: [options: LibManifestPluginOptions];
|
|
13
13
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
14
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
14
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
15
15
|
apply(compiler: import("../index.js").Compiler): void;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ export declare const LightningCssMinimizerRspackPlugin: {
|
|
|
22
22
|
name: string;
|
|
23
23
|
_args: [options?: LightningCssMinimizerRspackPluginOptions | undefined];
|
|
24
24
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
25
|
-
raw(compiler: Compiler): import("@
|
|
25
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
26
26
|
apply(compiler: Compiler): void;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -8,7 +8,7 @@ export declare const LimitChunkCountPlugin: {
|
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [options: LimitChunkCountOptions];
|
|
10
10
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
11
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
11
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: import("../index.js").Compiler): void;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import { RspackBuiltinPlugin } from './base.js';
|
|
3
3
|
export declare class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
private deterministic;
|
|
@@ -3,7 +3,7 @@ export declare const MergeDuplicateChunksPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const ModuleChunkFormatPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import { RspackBuiltinPlugin } from './base.js';
|
|
3
3
|
export declare class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
@@ -3,7 +3,7 @@ export declare const ModuleInfoHeaderPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [verbose: any];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const NamedChunkIdsPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const NamedModuleIdsPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import { RspackBuiltinPlugin } from './base.js';
|
|
3
3
|
export declare class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import { RspackBuiltinPlugin } from './base.js';
|
|
3
3
|
export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
@@ -3,7 +3,7 @@ export declare const NoEmitOnErrorsPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const NodeTargetPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -4,7 +4,7 @@ export declare const NormalModuleReplacementPlugin: {
|
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [resourceRegExp: RegExp, newResource: string | ((data: ResolveData) => void)];
|
|
6
6
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
7
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
7
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type RawOccurrenceChunkIdsPluginOptions } from '@
|
|
1
|
+
import { type RawOccurrenceChunkIdsPluginOptions } from '@rspack/binding';
|
|
2
2
|
export declare const OccurrenceChunkIdsPlugin: {
|
|
3
3
|
new (options?: RawOccurrenceChunkIdsPluginOptions | undefined): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [options?: RawOccurrenceChunkIdsPluginOptions | undefined];
|
|
6
6
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
7
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
7
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RawProgressPluginHandlerInfo, type RawProgressPluginOptions } from '@
|
|
1
|
+
import { type RawProgressPluginHandlerInfo, type RawProgressPluginOptions } from '@rspack/binding';
|
|
2
2
|
export type ProgressPluginOptions = Partial<Omit<RawProgressPluginOptions, 'handler'>> | ((percentage: number, msg: string, info: RawProgressPluginHandlerInfo) => void) | undefined;
|
|
3
3
|
export type ProgressPluginHandlerInfo = RawProgressPluginHandlerInfo;
|
|
4
4
|
export declare const ProgressPlugin: {
|
|
@@ -6,7 +6,7 @@ export declare const ProgressPlugin: {
|
|
|
6
6
|
name: string;
|
|
7
7
|
_args: [progress?: ProgressPluginOptions];
|
|
8
8
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
9
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
9
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
10
10
|
apply(compiler: import("../index.js").Compiler): void;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ export declare const ProvidePlugin: {
|
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [provide: ProvidePluginOptions];
|
|
6
6
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
7
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
7
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -6,7 +6,7 @@ declare const RealContentHashPluginImpl: {
|
|
|
6
6
|
name: string;
|
|
7
7
|
_args: [];
|
|
8
8
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
9
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
9
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
10
10
|
apply(compiler: import("../index.js").Compiler): void;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -3,7 +3,7 @@ export declare const RemoveDuplicateModulesPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ export declare const RemoveEmptyChunksPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsRsdoctorAsset, type JsRsdoctorAssetPatch, type JsRsdoctorChunk, type JsRsdoctorChunkAssets, type JsRsdoctorChunkGraph, type JsRsdoctorChunkModules, type JsRsdoctorConnectionsOnlyImport, type JsRsdoctorConnectionsOnlyImportConnection, 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 '@
|
|
1
|
+
import { type JsRsdoctorAsset, type JsRsdoctorAssetPatch, type JsRsdoctorChunk, type JsRsdoctorChunkAssets, type JsRsdoctorChunkGraph, type JsRsdoctorChunkModules, type JsRsdoctorConnectionsOnlyImport, type JsRsdoctorConnectionsOnlyImportConnection, 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 '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import { type Compilation } from '../Compilation.js';
|
|
4
4
|
import type { Compiler } from '../Compiler.js';
|
|
@@ -20,7 +20,7 @@ declare const RsdoctorPluginImpl: {
|
|
|
20
20
|
name: string;
|
|
21
21
|
_args: [c?: RsdoctorPluginOptions | undefined];
|
|
22
22
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
23
|
-
raw(compiler: Compiler): import("@
|
|
23
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
24
24
|
apply(compiler: Compiler): void;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type RawRslibPluginOptions } from '@
|
|
1
|
+
import { type RawRslibPluginOptions } from '@rspack/binding';
|
|
2
2
|
export declare const RslibPlugin: {
|
|
3
|
-
new (rslib
|
|
3
|
+
new (rslib?: RawRslibPluginOptions | undefined): {
|
|
4
4
|
name: string;
|
|
5
|
-
_args: [rslib
|
|
5
|
+
_args: [rslib?: RawRslibPluginOptions | undefined];
|
|
6
6
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
7
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
7
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type RawRstestPluginOptions } from '@
|
|
1
|
+
import { type RawRstestPluginOptions } from '@rspack/binding';
|
|
2
2
|
export declare const RstestPlugin: {
|
|
3
3
|
new (rstest: RawRstestPluginOptions): {
|
|
4
4
|
name: string;
|
|
5
5
|
_args: [rstest: RawRstestPluginOptions];
|
|
6
6
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
7
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
7
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type RawRuntimeChunkOptions } from '@
|
|
1
|
+
import { type RawRuntimeChunkOptions } from '@rspack/binding';
|
|
2
2
|
export type RuntimeChunkPluginOptions = RawRuntimeChunkOptions;
|
|
3
3
|
export declare const RuntimeChunkPlugin: {
|
|
4
4
|
new (options: RawRuntimeChunkOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: RawRuntimeChunkOptions];
|
|
7
7
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
8
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
8
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("../index.js").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import binding from '@
|
|
1
|
+
import binding from '@rspack/binding';
|
|
2
2
|
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import type { Chunk } from '../Chunk.js';
|
|
4
4
|
import { type Compilation } from '../Compilation.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import { RspackBuiltinPlugin } from './base.js';
|
|
3
3
|
export declare class SideEffectsFlagPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
private analyzeSideEffectsFree;
|
|
@@ -13,7 +13,7 @@ export declare const SizeLimitsPlugin: {
|
|
|
13
13
|
maxEntrypointSize?: number;
|
|
14
14
|
}];
|
|
15
15
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
16
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
16
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
17
17
|
apply(compiler: import("../index.js").Compiler): void;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type SourceMapDevToolPluginOptions } from '@
|
|
1
|
+
import { type SourceMapDevToolPluginOptions } from '@rspack/binding';
|
|
2
2
|
export type { SourceMapDevToolPluginOptions };
|
|
3
3
|
export declare const SourceMapDevToolPlugin: {
|
|
4
4
|
new (options: SourceMapDevToolPluginOptions): {
|
|
5
5
|
name: string;
|
|
6
6
|
_args: [options: SourceMapDevToolPluginOptions];
|
|
7
7
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
8
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
8
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
9
|
apply(compiler: import("../index.js").Compiler): void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName, type RawSplitChunksOptions } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName, type RawSplitChunksOptions } from '@rspack/binding';
|
|
2
2
|
import type { Compiler } from '../Compiler.js';
|
|
3
3
|
import type { OptimizationSplitChunksOptions } from '../config/index.js';
|
|
4
4
|
import { RspackBuiltinPlugin } from './base.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RawSubresourceIntegrityPluginOptions } from '@
|
|
1
|
+
import { type RawSubresourceIntegrityPluginOptions } from '@rspack/binding';
|
|
2
2
|
import type { Compiler } from '../Compiler.js';
|
|
3
3
|
export type SubresourceIntegrityHashFunction = 'sha256' | 'sha384' | 'sha512';
|
|
4
4
|
export type SubresourceIntegrityPluginOptions = {
|
|
@@ -21,7 +21,7 @@ declare const NativeSubresourceIntegrityPlugin: {
|
|
|
21
21
|
name: string;
|
|
22
22
|
_args: [options: NativeSubresourceIntegrityPluginOptions];
|
|
23
23
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
24
|
-
raw(compiler: Compiler): import("@
|
|
24
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
25
25
|
apply(compiler: Compiler): void;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -209,7 +209,7 @@ export declare const SwcJsMinimizerRspackPlugin: {
|
|
|
209
209
|
name: string;
|
|
210
210
|
_args: [options?: SwcJsMinimizerRspackPluginOptions | undefined];
|
|
211
211
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
212
|
-
raw(compiler: Compiler): import("@
|
|
212
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
213
213
|
apply(compiler: Compiler): void;
|
|
214
214
|
};
|
|
215
215
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import type { Module } from '../Module.js';
|
|
3
3
|
import { RspackBuiltinPlugin } from './base.js';
|
|
4
4
|
export interface SyncModuleIdsPluginOptions {
|
|
@@ -3,7 +3,7 @@ export declare const URLPlugin: {
|
|
|
3
3
|
name: string;
|
|
4
4
|
_args: [];
|
|
5
5
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
6
|
-
raw(compiler: import("../index.js").Compiler): import("@
|
|
6
|
+
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
7
7
|
apply(compiler: import("../index.js").Compiler): void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from '@
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
2
|
import type { Compiler } from '../Compiler.js';
|
|
3
3
|
import type { ChunkLoading, OutputModule, WasmLoading, WorkerPublicPath } from '../config/index.js';
|
|
4
4
|
import { RspackBuiltinPlugin } from './base.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import binding from '@
|
|
1
|
+
import binding from '@rspack/binding';
|
|
2
2
|
import type { Compiler, RspackPluginInstance } from '../index.js';
|
|
3
3
|
type AffectedHooks = keyof Compiler['hooks'];
|
|
4
4
|
export declare function canInherentFromParent(affectedHooks?: AffectedHooks): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RawCssExtractPluginOption } from '@
|
|
1
|
+
import { type RawCssExtractPluginOption } from '@rspack/binding';
|
|
2
2
|
import type { Compiler, LiteralUnion } from '../../index.js';
|
|
3
3
|
export * from './loader.js';
|
|
4
4
|
export type { CssExtractRspackLoaderOptions } from './loader.js';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
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
|
-
export declare const pluginSymbol: symbol;
|
|
4
|
+
export declare const pluginSymbol: unique symbol;
|
|
5
5
|
export interface CssExtractPluginData {
|
|
6
6
|
runtime: boolean;
|
|
7
7
|
}
|
|
8
|
+
export interface CssExtractPluginContext {
|
|
9
|
+
[pluginSymbol]?: CssExtractPluginData;
|
|
10
|
+
}
|
|
8
11
|
export declare function isRelativePath(str: string): boolean;
|
|
9
12
|
export declare function stringifyRequest(loaderContext: LoaderContext, request: string): string;
|
|
10
13
|
export declare function stringifyLocal(value: any): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from '@
|
|
1
|
+
import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from '@rspack/binding';
|
|
2
2
|
import * as liteTapable from '../../../compiled/@rspack/lite-tapable/dist/index.js';
|
|
3
3
|
import { type Compilation } from '../../Compilation.js';
|
|
4
4
|
import type { HtmlRspackPluginOptions } from './options.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsHtmlPluginTag } from '@
|
|
1
|
+
import { type JsHtmlPluginTag } from '@rspack/binding';
|
|
2
2
|
import type { Compilation } from '../../Compilation.js';
|
|
3
3
|
import type { Compiler } from '../../Compiler.js';
|
|
4
4
|
import { type HtmlRspackPluginHooks } from './hooks.js';
|
|
@@ -8,7 +8,7 @@ declare const HtmlRspackPluginImpl: {
|
|
|
8
8
|
name: string;
|
|
9
9
|
_args: [c?: HtmlRspackPluginOptions | undefined];
|
|
10
10
|
affectedHooks: keyof import("../../index.js").CompilerHooks | undefined;
|
|
11
|
-
raw(compiler: Compiler): import("@
|
|
11
|
+
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
12
12
|
apply(compiler: Compiler): void;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Module } from '../../Module.js';
|
|
2
2
|
export declare const BuiltinLazyCompilationPlugin: {
|
|
3
|
-
new (
|
|
3
|
+
new (takeNewlyActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, reservedExternals: string[], test?: RegExp | ((module: Module) => boolean) | undefined): {
|
|
4
4
|
name: string;
|
|
5
|
-
_args: [
|
|
5
|
+
_args: [takeNewlyActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, reservedExternals: string[], test?: RegExp | ((module: Module) => boolean) | undefined];
|
|
6
6
|
affectedHooks: keyof import("../../index.js").CompilerHooks | undefined;
|
|
7
|
-
raw(compiler: import("../../index.js").Compiler): import("@
|
|
7
|
+
raw(compiler: import("../../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
8
|
apply(compiler: import("../../index.js").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
package/dist/config/adapter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RawOptions } from '@
|
|
1
|
+
import { type RawOptions } from '@rspack/binding';
|
|
2
2
|
import type { Compiler } from '../Compiler.js';
|
|
3
3
|
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction, type PitchLoaderDefinitionFunction } from './adapterRuleUse.js';
|
|
4
4
|
import type { RspackOptionsNormalized } from './normalization.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { AssetInfo, RawModuleRuleUse, RawOptions } from '@
|
|
1
|
+
import type { AssetInfo, RawModuleRuleUse, RawOptions } from '@rspack/binding';
|
|
2
2
|
import type { Compilation } from '../Compilation.js';
|
|
3
3
|
import type { Compiler } from '../Compiler.js';
|
|
4
4
|
import type { LoaderObject } from '../loader-runner/index.js';
|
|
5
5
|
import type { Logger } from '../logging/Logger.js';
|
|
6
6
|
import type { Module } from '../Module.js';
|
|
7
7
|
import type { ResolveRequest } from '../Resolver.js';
|
|
8
|
+
import type { InputFileSystem } from '../util/fs.js';
|
|
8
9
|
import type Hash from '../util/hash/index.js';
|
|
9
10
|
import type { RspackOptionsNormalized } from './normalization.js';
|
|
10
11
|
import type { Environment, Mode, PublicPath, Resolve, RuleSetLoaderWithOptions, RuleSetUseItem, Target } from './types.js';
|
|
@@ -333,7 +334,7 @@ export interface LoaderContext<OptionsType = {}> {
|
|
|
333
334
|
/**
|
|
334
335
|
* Access to the `compilation` object's `inputFileSystem` property.
|
|
335
336
|
*/
|
|
336
|
-
fs:
|
|
337
|
+
fs: InputFileSystem;
|
|
337
338
|
/**
|
|
338
339
|
* This is an experimental API and maybe subject to change.
|
|
339
340
|
* @experimental
|