@rspack-canary/core 1.7.0-canary-a2d4dc73-20251231074311 → 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 -6
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- 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 +1943 -1892
- 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,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./options";
|
|
2
|
+
export * from "./plugin";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Compilation } from
|
|
1
|
+
import { Compilation } from "../../Compilation";
|
|
2
2
|
export type TemplateRenderFunction = (params: Record<string, any>) => string | Promise<string>;
|
|
3
3
|
export type TemplateParamFunction = (params: Record<string, any>) => Record<string, any> | Promise<Record<string, any>>;
|
|
4
4
|
export type HtmlRspackPluginOptions = {
|
|
@@ -28,13 +28,13 @@ export type HtmlRspackPluginOptions = {
|
|
|
28
28
|
* If not specified, it will be automatically determined based on `scriptLoading` value.
|
|
29
29
|
* @default true
|
|
30
30
|
*/
|
|
31
|
-
inject?: boolean |
|
|
31
|
+
inject?: boolean | "head" | "body";
|
|
32
32
|
/** The public path used for script and link tags. */
|
|
33
33
|
publicPath?: string;
|
|
34
34
|
/** Inject a [`base`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base) tag. */
|
|
35
35
|
base?: string | {
|
|
36
36
|
href?: string;
|
|
37
|
-
target?:
|
|
37
|
+
target?: "_self" | "_blank" | "_parent" | "_top";
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* Modern browsers support non-blocking JavaScript loading ([`defer` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#defer)) to improve the page startup performance.
|
|
@@ -42,7 +42,7 @@ export type HtmlRspackPluginOptions = {
|
|
|
42
42
|
* Setting this option to `'module'` adds attribute `type="module"` to the `script`. This also implies `defer` attribute on the `script`, since modules are automatically deferred.
|
|
43
43
|
* @default "defer"
|
|
44
44
|
* */
|
|
45
|
-
scriptLoading?:
|
|
45
|
+
scriptLoading?: "blocking" | "defer" | "module" | "systemjs-module";
|
|
46
46
|
/** Allows you to add only some chunks. */
|
|
47
47
|
chunks?: string[];
|
|
48
48
|
/** Allows you to skip some chunks. */
|
|
@@ -51,12 +51,12 @@ export type HtmlRspackPluginOptions = {
|
|
|
51
51
|
* Allows to control how chunks should be sorted before they are included to the HTML.
|
|
52
52
|
* @default "auto"
|
|
53
53
|
*/
|
|
54
|
-
chunksSortMode?:
|
|
54
|
+
chunksSortMode?: "auto" | "manual";
|
|
55
55
|
/**
|
|
56
56
|
* Configure the SRI hash algorithm, which is disabled by default.
|
|
57
57
|
* @deprecated Use `experiments.SubresourceIntegrityPlugin` instead.
|
|
58
58
|
*/
|
|
59
|
-
sri?:
|
|
59
|
+
sri?: "sha256" | "sha384" | "sha512";
|
|
60
60
|
/**
|
|
61
61
|
* Controls whether to minify the output, disabled by default.
|
|
62
62
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type JsHtmlPluginTag } from
|
|
2
|
-
import type { Compilation } from
|
|
3
|
-
import type { Compiler } from
|
|
4
|
-
import { type HtmlRspackPluginHooks } from
|
|
5
|
-
import { type HtmlRspackPluginOptions } from
|
|
1
|
+
import { type JsHtmlPluginTag } from "@rspack/binding";
|
|
2
|
+
import type { Compilation } from "../../Compilation";
|
|
3
|
+
import type { Compiler } from "../../Compiler";
|
|
4
|
+
import { type HtmlRspackPluginHooks } from "./hooks";
|
|
5
|
+
import { type HtmlRspackPluginOptions } from "./options";
|
|
6
6
|
declare const HtmlRspackPluginImpl: {
|
|
7
7
|
new (c?: HtmlRspackPluginOptions | undefined): {
|
|
8
8
|
name: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from
|
|
1
|
+
import type { CreatePartialRegisters } from "../../taps/types";
|
|
2
2
|
export declare const createHtmlPluginHooksRegisters: CreatePartialRegisters<`HtmlPlugin`>;
|
|
@@ -1,84 +1,88 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export { createNativePlugin, RspackBuiltinPlugin } from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
56
|
-
export * from
|
|
57
|
-
export * from
|
|
58
|
-
export * from
|
|
59
|
-
export * from
|
|
60
|
-
export * from
|
|
61
|
-
export * from
|
|
62
|
-
export * from
|
|
63
|
-
export * from
|
|
64
|
-
export * from
|
|
65
|
-
export * from
|
|
66
|
-
export * from
|
|
67
|
-
export * from
|
|
68
|
-
export * from
|
|
69
|
-
export * from
|
|
70
|
-
export * from
|
|
71
|
-
export * from
|
|
72
|
-
export * from
|
|
73
|
-
export * from
|
|
74
|
-
export * from
|
|
75
|
-
export
|
|
76
|
-
export * from
|
|
77
|
-
export * from
|
|
78
|
-
export * from
|
|
79
|
-
export * from
|
|
80
|
-
export * from
|
|
81
|
-
export * from
|
|
82
|
-
export * from
|
|
83
|
-
export * from
|
|
84
|
-
export * from
|
|
1
|
+
export * from "./APIPlugin";
|
|
2
|
+
export * from "./ArrayPushCallbackChunkFormatPlugin";
|
|
3
|
+
export * from "./AssetModulesPlugin";
|
|
4
|
+
export * from "./AsyncWebAssemblyModulesPlugin";
|
|
5
|
+
export * from "./BannerPlugin";
|
|
6
|
+
export * from "./BundlerInfoRspackPlugin";
|
|
7
|
+
export { createNativePlugin, RspackBuiltinPlugin } from "./base";
|
|
8
|
+
export * from "./ChunkPrefetchPreloadPlugin";
|
|
9
|
+
export * from "./CircularDependencyRspackPlugin";
|
|
10
|
+
export * from "./CommonJsChunkFormatPlugin";
|
|
11
|
+
export * from "./ContextReplacementPlugin";
|
|
12
|
+
export * from "./CopyRspackPlugin";
|
|
13
|
+
export * from "./CssChunkingPlugin";
|
|
14
|
+
export * from "./CssModulesPlugin";
|
|
15
|
+
export * from "./css-extract/index";
|
|
16
|
+
export * from "./DataUriPlugin";
|
|
17
|
+
export * from "./DefinePlugin";
|
|
18
|
+
export * from "./DeterministicChunkIdsPlugin";
|
|
19
|
+
export * from "./DeterministicModuleIdsPlugin";
|
|
20
|
+
export * from "./DllEntryPlugin";
|
|
21
|
+
export * from "./DllReferenceAgencyPlugin";
|
|
22
|
+
export * from "./DynamicEntryPlugin";
|
|
23
|
+
export * from "./ElectronTargetPlugin";
|
|
24
|
+
export * from "./EnableChunkLoadingPlugin";
|
|
25
|
+
export * from "./EnableLibraryPlugin";
|
|
26
|
+
export * from "./EnableWasmLoadingPlugin";
|
|
27
|
+
export * from "./EnsureChunkConditionsPlugin";
|
|
28
|
+
export * from "./EntryPlugin";
|
|
29
|
+
export * from "./EsmLibraryPlugin";
|
|
30
|
+
export * from "./EvalDevToolModulePlugin";
|
|
31
|
+
export * from "./EvalSourceMapDevToolPlugin";
|
|
32
|
+
export * from "./ExternalsPlugin";
|
|
33
|
+
export * from "./FetchCompileAsyncWasmPlugin";
|
|
34
|
+
export * from "./FileUriPlugin";
|
|
35
|
+
export * from "./FlagDependencyExportsPlugin";
|
|
36
|
+
export * from "./FlagDependencyUsagePlugin";
|
|
37
|
+
export * from "./HotModuleReplacementPlugin";
|
|
38
|
+
export * from "./HttpExternalsRspackPlugin";
|
|
39
|
+
export * from "./HttpUriPlugin";
|
|
40
|
+
export * from "./html-plugin/index";
|
|
41
|
+
export * from "./IgnorePlugin";
|
|
42
|
+
export * from "./InferAsyncModulesPlugin";
|
|
43
|
+
export * from "./InlineExportsPlugin";
|
|
44
|
+
export * from "./JavascriptModulesPlugin";
|
|
45
|
+
export * from "./JsLoaderRspackPlugin";
|
|
46
|
+
export * from "./JsonModulesPlugin";
|
|
47
|
+
export * from "./LibManifestPlugin";
|
|
48
|
+
export * from "./LightningCssMinimizerRspackPlugin";
|
|
49
|
+
export * from "./LightningCssMinimizerRspackPlugin";
|
|
50
|
+
export * from "./LimitChunkCountPlugin";
|
|
51
|
+
export * from "./lazy-compilation/middleware";
|
|
52
|
+
export * from "./MangleExportsPlugin";
|
|
53
|
+
export * from "./MergeDuplicateChunksPlugin";
|
|
54
|
+
export * from "./ModuleChunkFormatPlugin";
|
|
55
|
+
export * from "./ModuleConcatenationPlugin";
|
|
56
|
+
export * from "./ModuleInfoHeaderPlugin";
|
|
57
|
+
export * from "./NamedChunkIdsPlugin";
|
|
58
|
+
export * from "./NamedModuleIdsPlugin";
|
|
59
|
+
export * from "./NaturalChunkIdsPlugin";
|
|
60
|
+
export * from "./NaturalModuleIdsPlugin";
|
|
61
|
+
export * from "./NodeTargetPlugin";
|
|
62
|
+
export * from "./NoEmitOnErrorsPlugin";
|
|
63
|
+
export * from "./NormalModuleReplacementPlugin";
|
|
64
|
+
export * from "./OccurrenceChunkIdsPlugin";
|
|
65
|
+
export * from "./ProgressPlugin";
|
|
66
|
+
export * from "./ProvidePlugin";
|
|
67
|
+
export * from "./RealContentHashPlugin";
|
|
68
|
+
export * from "./RemoveDuplicateModulesPlugin";
|
|
69
|
+
export * from "./RemoveEmptyChunksPlugin";
|
|
70
|
+
export * from "./RsdoctorPlugin";
|
|
71
|
+
export * from "./RslibPlugin";
|
|
72
|
+
export * from "./RstestPlugin";
|
|
73
|
+
export * from "./RuntimeChunkPlugin";
|
|
74
|
+
export * from "./RuntimePlugin";
|
|
75
|
+
export { createRscPlugins, RSC_LAYERS_NAMES } from "./rsc";
|
|
76
|
+
export * from "./rsc/Coordinator";
|
|
77
|
+
export * from "./rsc/RscClientPlugin";
|
|
78
|
+
export * from "./rsc/RscServerPlugin";
|
|
79
|
+
export * from "./SideEffectsFlagPlugin";
|
|
80
|
+
export * from "./SizeLimitsPlugin";
|
|
81
|
+
export * from "./SourceMapDevToolPlugin";
|
|
82
|
+
export * from "./SplitChunksPlugin";
|
|
83
|
+
export * from "./SubresourceIntegrityPlugin";
|
|
84
|
+
export * from "./SwcJsMinimizerPlugin";
|
|
85
|
+
export * from "./URLPlugin";
|
|
86
|
+
export * from "./WarnCaseSensitiveModulesPlugin";
|
|
87
|
+
export * from "./WebWorkerTemplatePlugin";
|
|
88
|
+
export * from "./WorkerPlugin";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Module } from
|
|
1
|
+
import type { Module } from "../../Module";
|
|
2
2
|
export declare const BuiltinLazyCompilationPlugin: {
|
|
3
3
|
new (currentActiveModules: () => Set<string>, entries: boolean, imports: boolean, client: string, test?: RegExp | ((module: Module) => boolean) | undefined): {
|
|
4
4
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Compiler, MultiCompiler } from
|
|
2
|
-
import type { MiddlewareHandler } from
|
|
1
|
+
import { type Compiler, MultiCompiler } from "../..";
|
|
2
|
+
import type { MiddlewareHandler } from "../../config/devServer";
|
|
3
3
|
export declare const LAZY_COMPILATION_PREFIX = "/lazy-compilation-using-";
|
|
4
4
|
/**
|
|
5
5
|
* Create a middleware that handles lazy compilation requests from the client.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Compiler } from "../../Compiler";
|
|
2
|
+
export declare const GET_OR_INIT_BINDING: unique symbol;
|
|
3
|
+
export declare class Coordinator {
|
|
4
|
+
#private;
|
|
5
|
+
constructor();
|
|
6
|
+
applyServerCompiler(serverCompiler: Compiler): void;
|
|
7
|
+
applyClientCompiler(clientCompiler: Compiler): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type binding from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../..";
|
|
3
|
+
import { RspackBuiltinPlugin } from "../base";
|
|
4
|
+
import { type Coordinator } from "./Coordinator";
|
|
5
|
+
export declare class RscClientPlugin extends RspackBuiltinPlugin {
|
|
6
|
+
#private;
|
|
7
|
+
name: string;
|
|
8
|
+
constructor(coordinator: Coordinator);
|
|
9
|
+
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type binding from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../..";
|
|
3
|
+
import { RspackBuiltinPlugin } from "../base";
|
|
4
|
+
import { type Coordinator } from "./Coordinator";
|
|
5
|
+
export declare class RscServerPlugin extends RspackBuiltinPlugin {
|
|
6
|
+
#private;
|
|
7
|
+
name: string;
|
|
8
|
+
constructor(coordinator: Coordinator);
|
|
9
|
+
raw(compiler: Compiler): binding.BuiltinPlugin;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RspackPluginInstance } from "../..";
|
|
2
|
+
export declare function createRscPlugins(): {
|
|
3
|
+
ServerPlugin: RspackPluginInstance;
|
|
4
|
+
ClientPlugin: RspackPluginInstance;
|
|
5
|
+
};
|
|
6
|
+
export declare const RSC_LAYERS_NAMES: {
|
|
7
|
+
/**
|
|
8
|
+
* The layer for server-only runtime and picking up `react-server` export conditions.
|
|
9
|
+
*/
|
|
10
|
+
REACT_SERVER_COMPONENTS: string;
|
|
11
|
+
/**
|
|
12
|
+
* Server Side Rendering layer for app.
|
|
13
|
+
*/
|
|
14
|
+
SERVER_SIDE_RENDERING: string;
|
|
15
|
+
};
|
package/dist/config/adapter.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type RawOptions } from
|
|
2
|
-
import type { Compiler } from
|
|
3
|
-
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction, type PitchLoaderDefinitionFunction } from
|
|
4
|
-
import type { RspackOptionsNormalized } from
|
|
5
|
-
import type { Resolve } from
|
|
6
|
-
export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction, PitchLoaderDefinitionFunction
|
|
1
|
+
import { type RawOptions } from "@rspack/binding";
|
|
2
|
+
import type { Compiler } from "../Compiler";
|
|
3
|
+
import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction, type PitchLoaderDefinitionFunction } from "./adapterRuleUse";
|
|
4
|
+
import type { RspackOptionsNormalized } from "./normalization";
|
|
5
|
+
import type { Resolve } from "./types";
|
|
6
|
+
export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction, PitchLoaderDefinitionFunction };
|
|
7
7
|
export declare const getRawOptions: (options: RspackOptionsNormalized, compiler: Compiler) => RawOptions;
|
|
8
|
-
export declare function getRawResolve(resolve: Resolve): RawOptions[
|
|
8
|
+
export declare function getRawResolve(resolve: Resolve): RawOptions["resolve"];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { AssetInfo, RawModuleRuleUse, RawOptions } from
|
|
2
|
-
import type { Compilation } from
|
|
3
|
-
import type { Compiler } from
|
|
4
|
-
import { type LoaderObject } from
|
|
5
|
-
import type { Logger } from
|
|
6
|
-
import type { Module } from
|
|
7
|
-
import type { ResolveRequest } from
|
|
8
|
-
import type Hash from
|
|
9
|
-
import type { RspackOptionsNormalized } from
|
|
10
|
-
import type { Mode, PublicPath, Resolve, RuleSetUseItem, Target } from
|
|
1
|
+
import type { AssetInfo, RawModuleRuleUse, RawOptions } from "@rspack/binding";
|
|
2
|
+
import type { Compilation } from "../Compilation";
|
|
3
|
+
import type { Compiler } from "../Compiler";
|
|
4
|
+
import { type LoaderObject } from "../loader-runner";
|
|
5
|
+
import type { Logger } from "../logging/Logger";
|
|
6
|
+
import type { Module } from "../Module";
|
|
7
|
+
import type { ResolveRequest } from "../Resolver";
|
|
8
|
+
import type Hash from "../util/hash";
|
|
9
|
+
import type { RspackOptionsNormalized } from "./normalization";
|
|
10
|
+
import type { Mode, PublicPath, Resolve, RuleSetUseItem, Target } from "./types";
|
|
11
11
|
export declare const BUILTIN_LOADER_PREFIX = "builtin:";
|
|
12
12
|
export interface ComposeJsUseOptions {
|
|
13
|
-
context: RawOptions[
|
|
14
|
-
mode: RawOptions[
|
|
15
|
-
experiments: RawOptions[
|
|
13
|
+
context: RawOptions["context"];
|
|
14
|
+
mode: RawOptions["mode"];
|
|
15
|
+
experiments: RawOptions["experiments"];
|
|
16
16
|
compiler: Compiler;
|
|
17
17
|
}
|
|
18
18
|
export interface RawSourceMap {
|
|
@@ -87,7 +87,7 @@ export interface Diagnostic {
|
|
|
87
87
|
* If provided, it becomes the `StatsError.file` value in stats.
|
|
88
88
|
*/
|
|
89
89
|
file?: string;
|
|
90
|
-
severity:
|
|
90
|
+
severity: "error" | "warning";
|
|
91
91
|
}
|
|
92
92
|
export interface LoaderExperiments {
|
|
93
93
|
emitDiagnostic(diagnostic: Diagnostic): void;
|
|
@@ -387,5 +387,5 @@ export type LoaderDefinition<OptionsType = {}, ContextAdditions = {}> = LoaderDe
|
|
|
387
387
|
pitch?: PitchLoaderDefinitionFunction;
|
|
388
388
|
};
|
|
389
389
|
export declare function createRawModuleRuleUses(uses: RuleSetUseItem | RuleSetUseItem[], path: string, options: ComposeJsUseOptions): RawModuleRuleUse[];
|
|
390
|
-
export declare function isUseSourceMap(devtool: RspackOptionsNormalized[
|
|
391
|
-
export declare function isUseSimpleSourceMap(devtool: RspackOptionsNormalized[
|
|
390
|
+
export declare function isUseSourceMap(devtool: RspackOptionsNormalized["devtool"]): boolean;
|
|
391
|
+
export declare function isUseSimpleSourceMap(devtool: RspackOptionsNormalized["devtool"]): boolean;
|
|
@@ -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 { ApiTargetProperties, EcmaTargetProperties, PlatformTargetProperties } from
|
|
10
|
+
import type { ApiTargetProperties, EcmaTargetProperties, PlatformTargetProperties } from "./target";
|
|
11
11
|
/**
|
|
12
12
|
* @param browsers supported browsers list
|
|
13
13
|
* @returns target properties
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import type { RspackOptionsNormalized } from
|
|
2
|
-
export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) =>
|
|
3
|
-
platform: false | {
|
|
4
|
-
web: boolean | null | undefined;
|
|
5
|
-
browser: boolean | null | undefined;
|
|
6
|
-
webworker: boolean | null | undefined;
|
|
7
|
-
node: boolean | null | undefined;
|
|
8
|
-
nwjs: boolean | null | undefined;
|
|
9
|
-
electron: boolean | null | undefined;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
1
|
+
import type { RspackOptionsNormalized } from "./normalization";
|
|
2
|
+
export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) => void;
|
|
12
3
|
export declare const applyRspackOptionsBaseDefaults: (options: RspackOptionsNormalized) => void;
|
|
13
4
|
export declare const getPnpDefault: () => boolean;
|
|
@@ -7,22 +7,22 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack-dev-server/blob/master/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type * as http from
|
|
11
|
-
import type * as net from
|
|
12
|
-
import type * as stream from
|
|
13
|
-
import type * as url from
|
|
14
|
-
import type { Compiler, LiteralUnion, MultiCompiler, MultiStats, Stats, Watching } from
|
|
15
|
-
type Logger = ReturnType<Compiler[
|
|
16
|
-
type MultiWatching = MultiCompiler[
|
|
17
|
-
type BasicServer = import(
|
|
18
|
-
type ReadStream = import(
|
|
19
|
-
type IncomingMessage = import(
|
|
20
|
-
type ServerResponse = import(
|
|
21
|
-
type ServerOptions = import(
|
|
10
|
+
import type * as http from "node:http";
|
|
11
|
+
import type * as net from "node:net";
|
|
12
|
+
import type * as stream from "node:stream";
|
|
13
|
+
import type * as url from "node:url";
|
|
14
|
+
import type { Compiler, LiteralUnion, MultiCompiler, MultiStats, Stats, Watching } from "..";
|
|
15
|
+
type Logger = ReturnType<Compiler["getInfrastructureLogger"]>;
|
|
16
|
+
type MultiWatching = MultiCompiler["watch"];
|
|
17
|
+
type BasicServer = import("net").Server | import("tls").Server;
|
|
18
|
+
type ReadStream = import("fs").ReadStream;
|
|
19
|
+
type IncomingMessage = import("http").IncomingMessage;
|
|
20
|
+
type ServerResponse = import("http").ServerResponse;
|
|
21
|
+
type ServerOptions = import("https").ServerOptions & {
|
|
22
22
|
spdy?: {
|
|
23
23
|
plain?: boolean | undefined;
|
|
24
24
|
ssl?: boolean | undefined;
|
|
25
|
-
|
|
25
|
+
"x-forwarded-for"?: string | undefined;
|
|
26
26
|
protocol?: string | undefined;
|
|
27
27
|
protocols?: string[] | undefined;
|
|
28
28
|
};
|
|
@@ -36,15 +36,15 @@ type Headers = {
|
|
|
36
36
|
key: string;
|
|
37
37
|
value: string;
|
|
38
38
|
}[] | Record<string, string | string[]>;
|
|
39
|
-
type OutputFileSystem = import(
|
|
40
|
-
statSync: import(
|
|
41
|
-
readFileSync: typeof import(
|
|
39
|
+
type OutputFileSystem = import("..").OutputFileSystem & {
|
|
40
|
+
statSync: import("fs").StatSyncFn;
|
|
41
|
+
readFileSync: typeof import("fs").readFileSync;
|
|
42
42
|
};
|
|
43
|
-
type RspackConfiguration = import(
|
|
44
|
-
type Port = number | LiteralUnion<
|
|
43
|
+
type RspackConfiguration = import("..").Configuration;
|
|
44
|
+
type Port = number | LiteralUnion<"auto", string>;
|
|
45
45
|
type HistoryContext = {
|
|
46
46
|
readonly match: RegExpMatchArray;
|
|
47
|
-
readonly parsedUrl: import(
|
|
47
|
+
readonly parsedUrl: import("url").Url;
|
|
48
48
|
readonly request: any;
|
|
49
49
|
};
|
|
50
50
|
type RewriteTo = (context: HistoryContext) => string;
|
|
@@ -68,13 +68,13 @@ type DevMiddlewareOptions<RequestInternal extends IncomingMessage = IncomingMess
|
|
|
68
68
|
writeToDisk?: boolean | ((targetPath: string) => boolean) | undefined;
|
|
69
69
|
methods?: string[] | undefined;
|
|
70
70
|
headers?: any;
|
|
71
|
-
publicPath?: NonNullable<RspackConfiguration[
|
|
72
|
-
stats?: RspackConfiguration[
|
|
71
|
+
publicPath?: NonNullable<RspackConfiguration["output"]>["publicPath"];
|
|
72
|
+
stats?: RspackConfiguration["stats"];
|
|
73
73
|
serverSideRender?: boolean | undefined;
|
|
74
74
|
outputFileSystem?: OutputFileSystem | undefined;
|
|
75
75
|
index?: string | boolean | undefined;
|
|
76
76
|
modifyResponseData?: ModifyResponseData<RequestInternal, ResponseInternal> | undefined;
|
|
77
|
-
etag?:
|
|
77
|
+
etag?: "strong" | "weak" | undefined;
|
|
78
78
|
lastModified?: boolean | undefined;
|
|
79
79
|
cacheControl?: string | number | boolean | {
|
|
80
80
|
maxAge?: number;
|
|
@@ -100,7 +100,7 @@ type WatchFiles = {
|
|
|
100
100
|
paths: string | string[];
|
|
101
101
|
options?: (ChokidarWatchOptions & {
|
|
102
102
|
aggregateTimeout?: number;
|
|
103
|
-
ignored?: ChokidarWatchOptions[
|
|
103
|
+
ignored?: ChokidarWatchOptions["ignored"];
|
|
104
104
|
poll?: number | boolean;
|
|
105
105
|
}) | undefined;
|
|
106
106
|
};
|
|
@@ -111,12 +111,12 @@ type Static = {
|
|
|
111
111
|
staticOptions?: ServeStaticOptions | undefined;
|
|
112
112
|
watch?: boolean | (ChokidarWatchOptions & {
|
|
113
113
|
aggregateTimeout?: number;
|
|
114
|
-
ignored?: ChokidarWatchOptions[
|
|
114
|
+
ignored?: ChokidarWatchOptions["ignored"];
|
|
115
115
|
poll?: number | boolean;
|
|
116
116
|
}) | undefined;
|
|
117
117
|
};
|
|
118
|
-
type ServerType<A extends BasicApplication = BasicApplication, S extends BasicServer = import(
|
|
119
|
-
type ServerConfiguration<A extends BasicApplication = BasicApplication, S extends BasicServer = import(
|
|
118
|
+
type ServerType<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> = LiteralUnion<"http" | "https" | "spdy" | "http2", string> | ((arg0: ServerOptions, arg1: A) => S);
|
|
119
|
+
type ServerConfiguration<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> = {
|
|
120
120
|
type?: ServerType<A, S> | undefined;
|
|
121
121
|
options?: ServerOptions | undefined;
|
|
122
122
|
};
|
|
@@ -170,7 +170,7 @@ type WebSocketURL = {
|
|
|
170
170
|
username?: string | undefined;
|
|
171
171
|
};
|
|
172
172
|
type ClientConfiguration = {
|
|
173
|
-
logging?:
|
|
173
|
+
logging?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
|
174
174
|
overlay?: boolean | {
|
|
175
175
|
warnings?: OverlayMessageOptions;
|
|
176
176
|
errors?: OverlayMessageOptions;
|
|
@@ -181,11 +181,11 @@ type ClientConfiguration = {
|
|
|
181
181
|
webSocketTransport?: string | undefined;
|
|
182
182
|
webSocketURL?: string | WebSocketURL | undefined;
|
|
183
183
|
};
|
|
184
|
-
export type DevServerOptions<A extends BasicApplication = BasicApplication, S extends BasicServer = import(
|
|
184
|
+
export type DevServerOptions<A extends BasicApplication = BasicApplication, S extends BasicServer = import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> = {
|
|
185
185
|
ipc?: string | boolean | undefined;
|
|
186
186
|
host?: string | undefined;
|
|
187
187
|
port?: Port | undefined;
|
|
188
|
-
hot?: boolean |
|
|
188
|
+
hot?: boolean | "only" | undefined;
|
|
189
189
|
liveReload?: boolean | undefined;
|
|
190
190
|
devMiddleware?: DevMiddlewareOptions | undefined;
|
|
191
191
|
compress?: boolean | undefined;
|
|
@@ -210,9 +210,9 @@ interface HttpProxyMiddlewareOptions extends HttpProxyServerOptions {
|
|
|
210
210
|
[regexp: string]: string;
|
|
211
211
|
} | ((path: string, req: Request) => string) | ((path: string, req: Request) => Promise<string>);
|
|
212
212
|
router?: {
|
|
213
|
-
[hostOrPath: string]: HttpProxyServerOptions[
|
|
214
|
-
} | ((req: Request) => HttpProxyServerOptions[
|
|
215
|
-
logLevel?:
|
|
213
|
+
[hostOrPath: string]: HttpProxyServerOptions["target"];
|
|
214
|
+
} | ((req: Request) => HttpProxyServerOptions["target"]) | ((req: Request) => Promise<HttpProxyServerOptions["target"]>);
|
|
215
|
+
logLevel?: "debug" | "info" | "warn" | "error" | "silent";
|
|
216
216
|
logProvider?: LogProviderCallback;
|
|
217
217
|
onError?: OnErrorCallback;
|
|
218
218
|
onProxyRes?: OnProxyResCallback;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export type { RawSourceMap } from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export type * from
|
|
1
|
+
export * from "./adapter";
|
|
2
|
+
export type { RawSourceMap } from "./adapterRuleUse";
|
|
3
|
+
export * from "./defaults";
|
|
4
|
+
export * from "./normalization";
|
|
5
|
+
export type * from "./types";
|
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { HttpUriPluginOptions } from
|
|
11
|
-
import type { Compilation } from
|
|
12
|
-
import type WebpackError from
|
|
13
|
-
import type { Amd, AssetModuleFilename, Bail, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, Node, NoParseOption, Optimization, OutputModule, ParserOptionsByModuleType, Path, Performance, Plugins, Profile, PublicPath, Resolve, RspackFutureOptions, RspackOptions, RuleSetRules, ScriptType, SnapshotOptions, SourceMapFilename, StatsValue, StrictModuleErrorHandling, Target, TrustedTypes, UniqueName, WasmLoading, Watch, WatchOptions, WebassemblyModuleFilename, WorkerPublicPath } from
|
|
10
|
+
import type { HttpUriPluginOptions } from "../builtin-plugin";
|
|
11
|
+
import type { Compilation } from "../Compilation";
|
|
12
|
+
import type WebpackError from "../lib/WebpackError";
|
|
13
|
+
import type { Amd, AssetModuleFilename, Bail, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, Node, NoParseOption, Optimization, OutputModule, ParserOptionsByModuleType, Path, Performance, Plugins, Profile, PublicPath, Resolve, RspackFutureOptions, RspackOptions, RuleSetRules, ScriptType, SnapshotOptions, SourceMapFilename, StatsValue, StrictModuleErrorHandling, Target, TrustedTypes, UniqueName, WasmLoading, Watch, WatchOptions, WebassemblyModuleFilename, WorkerPublicPath } from "./types";
|
|
14
14
|
export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
|
|
15
15
|
export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
|
|
16
16
|
export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
|
|
17
17
|
export interface EntryStaticNormalized {
|
|
18
18
|
[k: string]: EntryDescriptionNormalized;
|
|
19
19
|
}
|
|
20
|
-
export type EntryDescriptionNormalized = Pick<EntryDescription,
|
|
20
|
+
export type EntryDescriptionNormalized = Pick<EntryDescription, "runtime" | "chunkLoading" | "wasmLoading" | "asyncChunks" | "publicPath" | "baseUri" | "filename" | "library" | "layer"> & {
|
|
21
21
|
import?: string[];
|
|
22
22
|
dependOn?: string[];
|
|
23
23
|
};
|
|
24
24
|
export interface OutputNormalized {
|
|
25
25
|
path?: Path;
|
|
26
|
-
pathinfo?: boolean |
|
|
26
|
+
pathinfo?: boolean | "verbose";
|
|
27
27
|
clean?: Clean;
|
|
28
28
|
publicPath?: PublicPath;
|
|
29
29
|
filename?: Filename;
|
|
@@ -79,9 +79,9 @@ export interface ModuleOptionsNormalized {
|
|
|
79
79
|
unsafeCache?: boolean | RegExp;
|
|
80
80
|
}
|
|
81
81
|
export type ExperimentCacheNormalized = boolean | {
|
|
82
|
-
type:
|
|
82
|
+
type: "memory";
|
|
83
83
|
} | {
|
|
84
|
-
type:
|
|
84
|
+
type: "persistent";
|
|
85
85
|
buildDependencies: string[];
|
|
86
86
|
version: string;
|
|
87
87
|
snapshot: {
|
|
@@ -90,7 +90,7 @@ export type ExperimentCacheNormalized = boolean | {
|
|
|
90
90
|
managedPaths: (string | RegExp)[];
|
|
91
91
|
};
|
|
92
92
|
storage: {
|
|
93
|
-
type:
|
|
93
|
+
type: "filesystem";
|
|
94
94
|
directory: string;
|
|
95
95
|
};
|
|
96
96
|
};
|