@rspack-canary/core 1.7.0-canary-7f9f7f14-20251231041831 → 1.7.0-canary-b303a917-20251231130755
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BuildInfo.d.ts +4 -4
- package/dist/Chunk.d.ts +3 -3
- package/dist/ChunkGraph.d.ts +3 -3
- package/dist/Chunks.d.ts +2 -2
- package/dist/Compilation.d.ts +40 -40
- package/dist/Compiler.d.ts +23 -25
- package/dist/ConcatenatedModule.d.ts +1 -1
- package/dist/ContextModule.d.ts +1 -1
- package/dist/ContextModuleFactory.d.ts +2 -2
- package/dist/Diagnostics.d.ts +2 -2
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/ExecuteModulePlugin.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +2 -2
- package/dist/ExternalModule.d.ts +1 -1
- package/dist/FileSystem.d.ts +3 -3
- package/dist/Module.d.ts +6 -6
- package/dist/ModuleGraph.d.ts +3 -3
- package/dist/MultiCompiler.d.ts +8 -8
- package/dist/MultiStats.d.ts +3 -3
- package/dist/MultiWatching.d.ts +3 -3
- package/dist/NativeWatchFileSystem.d.ts +5 -5
- package/dist/NormalModule.d.ts +6 -6
- package/dist/NormalModuleFactory.d.ts +4 -4
- package/dist/Resolver.d.ts +2 -2
- package/dist/ResolverFactory.d.ts +3 -3
- package/dist/RspackError.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +2 -2
- package/dist/RuntimeModule.d.ts +4 -4
- package/dist/Stats.d.ts +4 -4
- package/dist/VirtualModulesPlugin.d.ts +1 -1
- package/dist/Watching.d.ts +5 -5
- package/dist/builtin-loader/index.d.ts +1 -1
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +1 -1
- package/dist/builtin-loader/swc/index.d.ts +5 -5
- package/dist/builtin-loader/swc/types.d.ts +8 -10
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +10 -5
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +4 -4
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +3 -3
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +4 -4
- package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +6 -6
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -8
- package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +5 -5
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +4 -4
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +5 -5
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/{CaseSensitivePlugin.d.ts → WarnCaseSensitiveModulesPlugin.d.ts} +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
- package/dist/builtin-plugin/WorkerPlugin.d.ts +4 -4
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/index.d.ts +7 -7
- package/dist/builtin-plugin/css-extract/loader.d.ts +2 -2
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +4 -4
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +6 -6
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -5
- package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +88 -84
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +10 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +10 -0
- package/dist/builtin-plugin/rsc/index.d.ts +15 -0
- package/dist/config/adapter.d.ts +7 -7
- package/dist/config/adapterRuleUse.d.ts +16 -16
- package/dist/config/browserslistTargetHandler.d.ts +1 -1
- package/dist/config/defaults.d.ts +2 -11
- package/dist/config/devServer.d.ts +32 -32
- package/dist/config/index.d.ts +5 -5
- package/dist/config/normalization.d.ts +9 -9
- package/dist/config/target.d.ts +7 -7
- package/dist/config/types.d.ts +74 -75
- package/dist/container/ContainerPlugin.d.ts +4 -4
- package/dist/container/ContainerReferencePlugin.d.ts +4 -4
- package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -3
- package/dist/container/ModuleFederationPlugin.d.ts +6 -8
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +0 -4
- package/dist/container/index.d.ts +4 -4
- package/dist/cssExtractHmr.js +19 -19
- package/dist/cssExtractLoader.js +16 -16
- package/dist/exports.d.ts +74 -76
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1965 -1933
- package/dist/lib/AbstractMethodError.d.ts +1 -1
- package/dist/lib/Cache.d.ts +2 -2
- package/dist/lib/CacheFacade.d.ts +3 -3
- package/dist/lib/DllPlugin.d.ts +1 -1
- package/dist/lib/DllReferencePlugin.d.ts +5 -5
- package/dist/lib/EntryOptionPlugin.d.ts +2 -2
- package/dist/lib/EnvironmentPlugin.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +2 -2
- package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
- package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
- package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
- package/dist/lib/WebpackError.d.ts +3 -3
- package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
- package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
- package/dist/lib/cache/mergeEtags.d.ts +1 -1
- package/dist/loader-runner/ModuleError.d.ts +1 -1
- package/dist/loader-runner/index.d.ts +3 -3
- package/dist/loader-runner/loadLoader.d.ts +2 -2
- package/dist/loader-runner/service.d.ts +8 -8
- package/dist/loader-runner/utils.d.ts +3 -3
- package/dist/loader-runner/worker.d.ts +3 -3
- package/dist/logging/createConsoleLogger.d.ts +4 -4
- package/dist/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 +3 -3
- package/dist/node/nodeConsole.d.ts +2 -2
- package/dist/rspack.d.ts +6 -15
- package/dist/rspackOptionsApply.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +3 -3
- package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
- package/dist/sharing/SharePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +3 -3
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +15 -15
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +5 -5
- package/dist/stats/StatsPrinter.d.ts +3 -3
- package/dist/stats/statsFactoryUtils.d.ts +5 -5
- package/dist/swc.d.ts +2 -2
- package/dist/taps/compilation.d.ts +2 -2
- package/dist/taps/compiler.d.ts +1 -1
- package/dist/taps/contextModuleFactory.d.ts +1 -1
- package/dist/taps/index.d.ts +6 -6
- package/dist/taps/javascriptModules.d.ts +1 -1
- package/dist/taps/normalModuleFactory.d.ts +1 -1
- package/dist/taps/types.d.ts +3 -3
- package/dist/trace/index.d.ts +4 -4
- package/dist/trace/traceHookPlugin.d.ts +1 -1
- package/dist/util/SplitChunkSize.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/createReadonlyMap.d.ts +1 -1
- package/dist/util/fs.d.ts +14 -14
- package/dist/util/hash/wasm-hash.d.ts +1 -1
- package/dist/util/identifier.d.ts +1 -1
- package/dist/util/index.d.ts +1 -2
- package/dist/util/source.d.ts +2 -2
- package/dist/util/validateConfig.d.ts +1 -1
- package/dist/worker.js +111 -111
- package/hot/dev-server.js +64 -64
- package/hot/emitter.js +11 -11
- package/hot/lazy-compilation-node.js +41 -41
- package/hot/lazy-compilation-web.js +52 -52
- package/hot/log-apply-result.js +36 -36
- package/hot/log.js +30 -30
- package/hot/only-dev-server.js +92 -92
- package/hot/poll.js +31 -31
- package/hot/signal.js +53 -53
- package/module.d.ts +215 -215
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { CollectTypeScriptInfoOptions } from
|
|
2
|
-
export { resolveCollectTypeScriptInfo } from
|
|
3
|
-
export type { PluginImportOptions } from
|
|
4
|
-
export { resolvePluginImport } from
|
|
5
|
-
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig
|
|
1
|
+
export type { CollectTypeScriptInfoOptions } from "./collectTypeScriptInfo";
|
|
2
|
+
export { resolveCollectTypeScriptInfo } from "./collectTypeScriptInfo";
|
|
3
|
+
export type { PluginImportOptions } from "./pluginImport";
|
|
4
|
+
export { resolvePluginImport } from "./pluginImport";
|
|
5
|
+
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Config, EnvConfig, EsParserConfig, JscConfig, ModuleConfig, ParserConfig, TerserEcmaVersion, TransformConfig, TsParserConfig } from
|
|
2
|
-
import type { CollectTypeScriptInfoOptions } from
|
|
3
|
-
import type { PluginImportOptions } from
|
|
1
|
+
import type { Config, EnvConfig, EsParserConfig, JscConfig, ModuleConfig, ParserConfig, TerserEcmaVersion, TransformConfig, TsParserConfig } from "../../../compiled/@swc/types";
|
|
2
|
+
import type { CollectTypeScriptInfoOptions } from "./collectTypeScriptInfo";
|
|
3
|
+
import type { PluginImportOptions } from "./pluginImport";
|
|
4
4
|
export type SwcLoaderEnvConfig = EnvConfig;
|
|
5
5
|
export type SwcLoaderJscConfig = JscConfig;
|
|
6
6
|
export type SwcLoaderModuleConfig = ModuleConfig;
|
|
@@ -9,12 +9,7 @@ export type SwcLoaderEsParserConfig = EsParserConfig;
|
|
|
9
9
|
export type SwcLoaderTsParserConfig = TsParserConfig;
|
|
10
10
|
export type SwcLoaderTransformConfig = TransformConfig;
|
|
11
11
|
export type SwcLoaderOptions = Config & {
|
|
12
|
-
isModule?: boolean |
|
|
13
|
-
/**
|
|
14
|
-
* Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
|
|
15
|
-
* providing better TypeScript development experience and smaller output bundle size.
|
|
16
|
-
*/
|
|
17
|
-
collectTypeScriptInfo?: CollectTypeScriptInfoOptions;
|
|
12
|
+
isModule?: boolean | "unknown";
|
|
18
13
|
/**
|
|
19
14
|
* Experimental features provided by Rspack.
|
|
20
15
|
* @experimental
|
|
@@ -22,11 +17,14 @@ export type SwcLoaderOptions = Config & {
|
|
|
22
17
|
rspackExperiments?: {
|
|
23
18
|
import?: PluginImportOptions;
|
|
24
19
|
/**
|
|
25
|
-
* @deprecated Use top-level `collectTypeScriptInfo` instead.
|
|
26
20
|
* Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
|
|
27
21
|
* providing better TypeScript development experience and smaller output bundle size.
|
|
28
22
|
*/
|
|
29
23
|
collectTypeScriptInfo?: CollectTypeScriptInfoOptions;
|
|
24
|
+
/**
|
|
25
|
+
* Enable React Server Components support.
|
|
26
|
+
*/
|
|
27
|
+
reactServerComponents?: boolean;
|
|
30
28
|
};
|
|
31
29
|
};
|
|
32
30
|
export interface TerserCompressOptions {
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import type { Compilation } from
|
|
3
|
-
import type { Compiler } from
|
|
4
|
-
import type { Module } from
|
|
5
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import type { Compilation } from "../Compilation";
|
|
3
|
+
import type { Compiler } from "../Compiler";
|
|
4
|
+
import type { Module } from "../Module";
|
|
5
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
6
6
|
export type CircularDependencyRspackPluginOptions = {
|
|
7
7
|
/**
|
|
8
8
|
* When `true`, the plugin will emit `ERROR` diagnostics rather than the
|
|
9
9
|
* default `WARN` level.
|
|
10
10
|
*/
|
|
11
11
|
failOnError?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* When `true`, asynchronous imports like `import("some-module")` will not
|
|
14
|
+
* be considered connections that can create cycles.
|
|
15
|
+
*/
|
|
16
|
+
allowAsyncCycles?: boolean;
|
|
12
17
|
/**
|
|
13
18
|
* Cycles containing any module name that matches this regex will _not_ be
|
|
14
19
|
* counted as a cycle.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type RawCopyPattern } from
|
|
1
|
+
import { type RawCopyPattern } from "@rspack/binding";
|
|
2
2
|
export type CopyRspackPluginOptions = {
|
|
3
3
|
/** An array of objects that describe the copy operations to be performed. */
|
|
4
|
-
patterns: (string | (Pick<RawCopyPattern,
|
|
4
|
+
patterns: (string | (Pick<RawCopyPattern, "from"> & Partial<Omit<RawCopyPattern, "from">>))[];
|
|
5
5
|
};
|
|
6
6
|
export declare const CopyRspackPlugin: {
|
|
7
7
|
new (copy: CopyRspackPluginOptions): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
3
3
|
export declare class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
affectedHooks: "compilation";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
3
3
|
export declare class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
affectedHooks: "compilation";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RawDllReferenceAgencyPluginOptions } from
|
|
1
|
+
import { type RawDllReferenceAgencyPluginOptions } from "@rspack/binding";
|
|
2
2
|
export type DllReferenceAgencyPluginOptions = RawDllReferenceAgencyPluginOptions;
|
|
3
3
|
export declare const DllReferenceAgencyPlugin: {
|
|
4
4
|
new (options: RawDllReferenceAgencyPluginOptions): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import type { Compiler } from
|
|
3
|
-
import type { EntryDynamicNormalized } from
|
|
4
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../Compiler";
|
|
3
|
+
import type { EntryDynamicNormalized } from "../config";
|
|
4
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
5
5
|
export declare class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
6
6
|
private context;
|
|
7
7
|
private entry;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { ChunkLoadingType, Compiler } from
|
|
10
|
+
import type { ChunkLoadingType, Compiler } from "../exports";
|
|
11
11
|
declare const EnableChunkLoadingPluginInner: {
|
|
12
12
|
new (type: string): {
|
|
13
13
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import type { Compiler, LibraryType } from
|
|
3
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import type { Compiler, LibraryType } from "..";
|
|
3
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
4
4
|
export declare class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
5
5
|
private type;
|
|
6
6
|
name: BuiltinPluginName;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EntryDependency, type JsEntryOptions } from
|
|
2
|
-
import type { EntryDescriptionNormalized } from
|
|
1
|
+
import { EntryDependency, type JsEntryOptions } from "@rspack/binding";
|
|
2
|
+
import type { EntryDescriptionNormalized } from "../config";
|
|
3
3
|
/**
|
|
4
4
|
* Options for the `EntryPlugin`.
|
|
5
5
|
*/
|
|
6
|
-
export type EntryOptions = Omit<EntryDescriptionNormalized,
|
|
6
|
+
export type EntryOptions = Omit<EntryDescriptionNormalized, "import"> & {
|
|
7
7
|
/**
|
|
8
8
|
* The name of the entry chunk.
|
|
9
9
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RawEvalDevToolModulePluginOptions } from
|
|
1
|
+
import { type RawEvalDevToolModulePluginOptions } from "@rspack/binding";
|
|
2
2
|
export type { RawEvalDevToolModulePluginOptions as EvalDevToolModulePluginOptions };
|
|
3
3
|
export declare const EvalDevToolModulePlugin: {
|
|
4
4
|
new (options: RawEvalDevToolModulePluginOptions): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import type { Externals } from
|
|
3
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import type { Externals } from "..";
|
|
3
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
4
4
|
export declare class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
5
5
|
#private;
|
|
6
6
|
private type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
3
3
|
export declare class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
4
4
|
private global;
|
|
5
5
|
name: BuiltinPluginName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import type { Compiler } from
|
|
3
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../Compiler";
|
|
3
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
4
4
|
export declare class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
raw(compiler: Compiler): BuiltinPlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName, type RawHttpUriPluginOptions } from
|
|
2
|
-
import type { Compiler } from
|
|
3
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName, type RawHttpUriPluginOptions } from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../Compiler";
|
|
3
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
4
4
|
export type HttpUriPluginOptionsAllowedUris = (string | RegExp)[];
|
|
5
5
|
export type HttpUriPluginOptions = {
|
|
6
6
|
/**
|
|
@@ -22,7 +22,7 @@ export type HttpUriPluginOptions = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Custom http client
|
|
24
24
|
*/
|
|
25
|
-
httpClient?: RawHttpUriPluginOptions[
|
|
25
|
+
httpClient?: RawHttpUriPluginOptions["httpClient"];
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* Plugin that allows loading modules from HTTP URLs
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
-
resourceRegExp: NonNullable<RawIgnorePluginOptions[
|
|
4
|
+
resourceRegExp: NonNullable<RawIgnorePluginOptions["resourceRegExp"]>;
|
|
5
5
|
/** A RegExp to test the context (directory) against. */
|
|
6
|
-
contextRegExp?: RawIgnorePluginOptions[
|
|
6
|
+
contextRegExp?: RawIgnorePluginOptions["contextRegExp"];
|
|
7
7
|
} | {
|
|
8
8
|
/** A Filter function that receives `resource` and `context` as arguments, must return boolean. */
|
|
9
|
-
checkResource: NonNullable<RawIgnorePluginOptions[
|
|
9
|
+
checkResource: NonNullable<RawIgnorePluginOptions["checkResource"]>;
|
|
10
10
|
};
|
|
11
11
|
export declare const IgnorePlugin: {
|
|
12
12
|
new (options: IgnorePluginOptions): {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import * as liteTapable from
|
|
3
|
-
import type { Chunk } from
|
|
4
|
-
import { type Compilation } from
|
|
5
|
-
import type Hash from
|
|
6
|
-
import { RspackBuiltinPlugin } from
|
|
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
7
|
export type CompilationHooks = {
|
|
8
8
|
chunkHash: liteTapable.SyncHook<[Chunk, Hash]>;
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Drafts, type FeatureOptions, type NonStandard, type PseudoClasses } from
|
|
2
|
-
import type { AssetConditions } from
|
|
1
|
+
import { type Drafts, type FeatureOptions, type NonStandard, type PseudoClasses } from "../builtin-loader/lightningcss";
|
|
2
|
+
import type { AssetConditions } from "../util/assetCondition";
|
|
3
3
|
export type LightningCssMinimizerRspackPluginOptions = {
|
|
4
4
|
test?: AssetConditions;
|
|
5
5
|
include?: AssetConditions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
3
3
|
export declare class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
private deterministic;
|
|
5
5
|
name: BuiltinPluginName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
3
3
|
export declare class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
affectedHooks: "compilation";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
3
3
|
export declare class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
affectedHooks: "compilation";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
3
3
|
export declare class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
affectedHooks: "compilation";
|
|
@@ -1,4 +1,4 @@
|
|
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type RawProgressPluginOptions } from
|
|
2
|
-
export type ProgressPluginArgument = Partial<Omit<RawProgressPluginOptions,
|
|
1
|
+
import { type RawProgressPluginOptions } from "@rspack/binding";
|
|
2
|
+
export type ProgressPluginArgument = Partial<Omit<RawProgressPluginOptions, "handler">> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
|
|
3
3
|
export declare const ProgressPlugin: {
|
|
4
4
|
new (progress?: ProgressPluginArgument): {
|
|
5
5
|
name: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
2
|
-
import * as liteTapable from
|
|
3
|
-
import { type Compilation } from
|
|
4
|
-
import type { Compiler } from
|
|
5
|
-
import type { CreatePartialRegisters } from
|
|
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
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
|
|
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
|
}
|
|
9
9
|
export type RsdoctorPluginOptions = {
|
|
10
|
-
moduleGraphFeatures?: boolean | (
|
|
11
|
-
chunkGraphFeatures?: boolean | (
|
|
10
|
+
moduleGraphFeatures?: boolean | ("graph" | "ids" | "sources")[];
|
|
11
|
+
chunkGraphFeatures?: boolean | ("graph" | "assets")[];
|
|
12
12
|
sourceMapFeatures?: {
|
|
13
13
|
module?: boolean;
|
|
14
14
|
cheap?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type RawRslibPluginOptions } from
|
|
2
|
-
export type RslibPluginArgument = Partial<Omit<RawRslibPluginOptions,
|
|
1
|
+
import { type RawRslibPluginOptions } from "@rspack/binding";
|
|
2
|
+
export type RslibPluginArgument = Partial<Omit<RawRslibPluginOptions, "handler">> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
|
|
3
3
|
export declare const RslibPlugin: {
|
|
4
4
|
new (rslib: RawRslibPluginOptions): {
|
|
5
5
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type RawRstestPluginOptions } from
|
|
2
|
-
export type RstestPluginArgument = Partial<Omit<RawRstestPluginOptions,
|
|
1
|
+
import { type RawRstestPluginOptions } from "@rspack/binding";
|
|
2
|
+
export type RstestPluginArgument = Partial<Omit<RawRstestPluginOptions, "handler">> | ((percentage: number, msg: string, ...args: string[]) => void) | undefined;
|
|
3
3
|
export declare const RstestPlugin: {
|
|
4
4
|
new (rstest: RawRstestPluginOptions): {
|
|
5
5
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
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): {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import binding from
|
|
2
|
-
import * as liteTapable from
|
|
3
|
-
import type { Chunk } from
|
|
4
|
-
import { type Compilation } from
|
|
5
|
-
import type { CreatePartialRegisters } from
|
|
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
6
|
export declare const RuntimePluginImpl: {
|
|
7
7
|
new (): {
|
|
8
8
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
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): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import type { Compiler } from
|
|
3
|
-
import type { OptimizationSplitChunksOptions } from
|
|
4
|
-
import { RspackBuiltinPlugin } from
|
|
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
5
|
export declare class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
6
6
|
private options;
|
|
7
7
|
name: BuiltinPluginName;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { type RawSubresourceIntegrityPluginOptions } from
|
|
2
|
-
import type { Compiler } from
|
|
3
|
-
export type SubresourceIntegrityHashFunction =
|
|
1
|
+
import { type RawSubresourceIntegrityPluginOptions } from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../Compiler";
|
|
3
|
+
export type SubresourceIntegrityHashFunction = "sha256" | "sha384" | "sha512";
|
|
4
4
|
export type SubresourceIntegrityPluginOptions = {
|
|
5
5
|
hashFuncNames?: [
|
|
6
6
|
SubresourceIntegrityHashFunction,
|
|
7
7
|
...SubresourceIntegrityHashFunction[]
|
|
8
8
|
];
|
|
9
9
|
htmlPlugin?: string | false;
|
|
10
|
-
enabled?:
|
|
10
|
+
enabled?: "auto" | boolean;
|
|
11
11
|
};
|
|
12
|
-
export type NativeSubresourceIntegrityPluginOptions = Omit<RawSubresourceIntegrityPluginOptions,
|
|
12
|
+
export type NativeSubresourceIntegrityPluginOptions = Omit<RawSubresourceIntegrityPluginOptions, "htmlPlugin"> & {
|
|
13
13
|
htmlPlugin: string | false;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LiteralUnion } from
|
|
2
|
-
import type { AssetConditions } from
|
|
1
|
+
import type { LiteralUnion } from "../config";
|
|
2
|
+
import type { AssetConditions } from "../util/assetCondition";
|
|
3
3
|
type ExtractCommentsCondition = boolean | RegExp;
|
|
4
4
|
type ExtractCommentsBanner = string | boolean;
|
|
5
5
|
type ExtractCommentsObject = {
|
|
@@ -54,7 +54,7 @@ export interface JsFormatOptions {
|
|
|
54
54
|
* - `'all'`: preserves all comments
|
|
55
55
|
* @default false
|
|
56
56
|
*/
|
|
57
|
-
comments?: false |
|
|
57
|
+
comments?: false | "some" | "all";
|
|
58
58
|
/**
|
|
59
59
|
* Currently noop.
|
|
60
60
|
* @default 5
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import type { Compiler } from
|
|
3
|
-
import { RspackBuiltinPlugin } from
|
|
1
|
+
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../Compiler";
|
|
3
|
+
import { RspackBuiltinPlugin } from "./base";
|
|
4
4
|
export declare class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
|
|
5
5
|
name: BuiltinPluginName;
|
|
6
6
|
raw(compiler: Compiler): BuiltinPlugin | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type BuiltinPlugin, BuiltinPluginName } from
|
|
2
|
-
import type { Compiler } from
|
|
3
|
-
import type { ChunkLoading, OutputModule, WasmLoading, WorkerPublicPath } from
|
|
4
|
-
import { RspackBuiltinPlugin } from
|
|
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";
|
|
5
5
|
export declare class WorkerPlugin extends RspackBuiltinPlugin {
|
|
6
6
|
private chunkLoading;
|
|
7
7
|
private wasmLoading;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import binding from
|
|
2
|
-
import type { Compiler, RspackPluginInstance } from
|
|
3
|
-
type AffectedHooks = keyof Compiler[
|
|
1
|
+
import binding from "@rspack/binding";
|
|
2
|
+
import type { Compiler, RspackPluginInstance } from "..";
|
|
3
|
+
type AffectedHooks = keyof Compiler["hooks"];
|
|
4
4
|
export declare function canInherentFromParent(affectedHooks?: AffectedHooks): boolean;
|
|
5
5
|
export declare abstract class RspackBuiltinPlugin implements RspackPluginInstance {
|
|
6
6
|
abstract raw(compiler: Compiler): binding.BuiltinPlugin | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type RawCssExtractPluginOption } from
|
|
2
|
-
import type { Compiler, LiteralUnion } from
|
|
3
|
-
export * from
|
|
4
|
-
export type { CssExtractRspackLoaderOptions } from
|
|
1
|
+
import { type RawCssExtractPluginOption } from "@rspack/binding";
|
|
2
|
+
import type { Compiler, LiteralUnion } from "../..";
|
|
3
|
+
export * from "./loader";
|
|
4
|
+
export type { CssExtractRspackLoaderOptions } from "./loader";
|
|
5
5
|
export interface CssExtractRspackPluginOptions {
|
|
6
|
-
filename?: RawCssExtractPluginOption[
|
|
7
|
-
chunkFilename?: RawCssExtractPluginOption[
|
|
6
|
+
filename?: RawCssExtractPluginOption["filename"];
|
|
7
|
+
chunkFilename?: RawCssExtractPluginOption["chunkFilename"];
|
|
8
8
|
ignoreOrder?: boolean;
|
|
9
9
|
insert?: string | ((linkTag: HTMLLinkElement) => void);
|
|
10
10
|
attributes?: Record<string, string>;
|
|
11
|
-
linkType?: LiteralUnion<
|
|
11
|
+
linkType?: LiteralUnion<"text/css", string> | false;
|
|
12
12
|
runtime?: boolean;
|
|
13
13
|
pathinfo?: boolean;
|
|
14
14
|
enforceRelative?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoaderContext, LoaderDefinition } from
|
|
1
|
+
import type { LoaderContext, LoaderDefinition } from "../..";
|
|
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__";
|
|
@@ -17,5 +17,5 @@ export declare function hotLoader(content: string, context: {
|
|
|
17
17
|
locals?: Record<string, string>;
|
|
18
18
|
}): string;
|
|
19
19
|
declare const loader: LoaderDefinition;
|
|
20
|
-
export declare const pitch: LoaderDefinition[
|
|
20
|
+
export declare const pitch: LoaderDefinition["pitch"];
|
|
21
21
|
export default loader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoaderContext } from
|
|
1
|
+
import type { LoaderContext } from "../..";
|
|
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
|
-
import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from
|
|
2
|
-
import * as liteTapable from
|
|
3
|
-
import { type Compilation } from
|
|
4
|
-
import type { HtmlRspackPluginOptions } from
|
|
1
|
+
import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from "@rspack/binding";
|
|
2
|
+
import * as liteTapable from "@rspack/lite-tapable";
|
|
3
|
+
import { type Compilation } from "../../Compilation";
|
|
4
|
+
import type { HtmlRspackPluginOptions } from "./options";
|
|
5
5
|
type ExtraPluginHookData = {
|
|
6
6
|
plugin: {
|
|
7
7
|
options: HtmlRspackPluginOptions;
|