@rspack/core 1.0.14 → 1.1.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.
Files changed (46) hide show
  1. package/compiled/@swc/types/index.d.ts +1962 -0
  2. package/compiled/@swc/types/index.js +19 -0
  3. package/compiled/@swc/types/license +201 -0
  4. package/compiled/@swc/types/package.json +1 -0
  5. package/compiled/enhanced-resolve/CachedInputFileSystem.js +267 -80
  6. package/compiled/enhanced-resolve/index.d.ts +849 -236
  7. package/compiled/enhanced-resolve/package.json +1 -1
  8. package/compiled/graceful-fs/index.js +10 -10
  9. package/compiled/graceful-fs/package.json +1 -1
  10. package/compiled/zod/index.d.ts +2 -2
  11. package/dist/Compilation.d.ts +7 -18
  12. package/dist/DependenciesBlock.d.ts +6 -4
  13. package/dist/FileSystem.d.ts +7 -2
  14. package/dist/Module.d.ts +17 -14
  15. package/dist/builtin-loader/swc/types.d.ts +9 -435
  16. package/dist/builtin-plugin/EntryPlugin.d.ts +14 -11
  17. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +10 -10
  18. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +1 -1
  19. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +10 -10
  20. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +8 -10
  21. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +10 -0
  22. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +8 -8
  23. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +1 -1
  24. package/dist/builtin-plugin/index.d.ts +4 -2
  25. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +3 -3
  26. package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +3 -3
  27. package/dist/config/adapter.d.ts +1 -1
  28. package/dist/config/adapterRuleUse.d.ts +1 -1
  29. package/dist/config/index.d.ts +1 -0
  30. package/dist/config/normalization.d.ts +4 -11
  31. package/dist/config/types.d.ts +417 -9
  32. package/dist/config/zod.d.ts +1044 -1303
  33. package/dist/exports.d.ts +4 -2
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.js +1023 -5103
  36. package/dist/util/ArrayQueue.d.ts +1 -9
  37. package/dist/util/asyncLib.d.ts +54 -0
  38. package/package.json +9 -9
  39. package/dist/builtin-loader/swc/react.d.ts +0 -15
  40. package/dist/lib/Dependency.d.ts +0 -23
  41. package/dist/lib/formatLocation.d.ts +0 -16
  42. package/dist/logging/runtime.d.ts +0 -16
  43. package/dist/util/IterableHelpers.d.ts +0 -12
  44. package/dist/util/scheme.d.ts +0 -6
  45. package/dist/util/webpack.d.ts +0 -4
  46. /package/dist/builtin-plugin/{LightningCssMiminizerRspackPlugin.d.ts → LightningCssMinimizerRspackPlugin.d.ts} +0 -0
@@ -2,7 +2,7 @@ import { type JsLibraryOptions, type RawOptions } from "@rspack/binding";
2
2
  import type { Compiler } from "../Compiler";
3
3
  import { type LoaderContext, type LoaderDefinition, type LoaderDefinitionFunction } from "./adapterRuleUse";
4
4
  import type { RspackOptionsNormalized } from "./normalization";
5
- import type { ChunkLoading, LibraryOptions, Resolve } from "./zod";
5
+ import type { ChunkLoading, LibraryOptions, Resolve } from "./types";
6
6
  export type { LoaderContext, LoaderDefinition, LoaderDefinitionFunction };
7
7
  export declare const getRawOptions: (options: RspackOptionsNormalized, compiler: Compiler) => RawOptions;
8
8
  export declare function getRawResolve(resolve: Resolve): RawOptions["resolve"];
@@ -6,7 +6,7 @@ import type { Module } from "../Module";
6
6
  import { type LoaderObject } from "../loader-runner";
7
7
  import type { Logger } from "../logging/Logger";
8
8
  import type Hash from "../util/hash";
9
- import type { Mode, PublicPath, Resolve, RuleSetUseItem, Target } from "./zod";
9
+ import type { Mode, PublicPath, Resolve, RuleSetUseItem, Target } from "./types";
10
10
  export declare const BUILTIN_LOADER_PREFIX = "builtin:";
11
11
  export interface ComposeJsUseOptions {
12
12
  devtool: RawOptions["devtool"];
@@ -2,3 +2,4 @@ export * from "./adapter";
2
2
  export * from "./defaults";
3
3
  export * from "./normalization";
4
4
  export * from "./zod";
5
+ export type * from "./types";
@@ -8,25 +8,17 @@
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
10
  import type { Compilation } from "../Compilation";
11
- import type { AssetModuleFilename, AsyncChunks, Bail, BaseUri, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryFilename, EntryRuntime, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, Layer, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, NoParseOption, Node, 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 "./zod";
11
+ import type { 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, NoParseOption, Node, 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";
12
12
  export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
13
13
  export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
14
14
  export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
15
15
  export interface EntryStaticNormalized {
16
16
  [k: string]: EntryDescriptionNormalized;
17
17
  }
18
- export interface EntryDescriptionNormalized {
18
+ export type EntryDescriptionNormalized = Pick<EntryDescription, "runtime" | "chunkLoading" | "asyncChunks" | "publicPath" | "baseUri" | "filename" | "library" | "layer"> & {
19
19
  import?: string[];
20
- runtime?: EntryRuntime;
21
- chunkLoading?: ChunkLoading;
22
- asyncChunks?: AsyncChunks;
23
- publicPath?: PublicPath;
24
- baseUri?: BaseUri;
25
- filename?: EntryFilename;
26
- library?: LibraryOptions;
27
20
  dependOn?: string[];
28
- layer?: Layer;
29
- }
21
+ };
30
22
  export interface OutputNormalized {
31
23
  path?: Path;
32
24
  pathinfo?: boolean | "verbose";
@@ -75,6 +67,7 @@ export interface OutputNormalized {
75
67
  charset?: boolean;
76
68
  chunkLoadTimeout?: number;
77
69
  cssHeadDataCompression?: boolean;
70
+ compareBeforeEmit?: boolean;
78
71
  }
79
72
  export interface ModuleOptionsNormalized {
80
73
  defaultRules?: RuleSetRules;
@@ -1,5 +1,6 @@
1
1
  import type { JsAssetInfo, RawFuncUseCtx } from "@rspack/binding";
2
- import type { PathData } from "../Compilation";
2
+ import type * as webpackDevServer from "webpack-dev-server";
3
+ import type { Compilation, PathData } from "../Compilation";
3
4
  import type { Compiler } from "../Compiler";
4
5
  import type { Module } from "../Module";
5
6
  import type { Chunk } from "../exports";
@@ -88,10 +89,14 @@ export type EntryRuntime = false | string;
88
89
  export type EntryItem = string | string[];
89
90
  /** The entry that the current entry depends on. With dependOn option you can share the modules from one entry chunk to another. */
90
91
  export type EntryDependOn = string | string[];
92
+ /**
93
+ * An object with entry point description.
94
+ */
91
95
  export type EntryDescription = {
92
96
  /**
93
97
  * The path to the entry module.
94
98
  * @default './src/index.js'
99
+ * @example ['./src/index.js', './src/foo.js']
95
100
  * */
96
101
  import: EntryItem;
97
102
  /**
@@ -112,11 +117,21 @@ export type EntryDescription = {
112
117
  wasmLoading?: WasmLoading;
113
118
  /** The filename of the entry chunk. */
114
119
  filename?: EntryFilename;
115
- /** The format of the chunk generated by this entry as a library. */
120
+ /**
121
+ * The format of the chunk generated by this entry as a library.
122
+ * For detailed configuration, see `output.library`.
123
+ */
116
124
  library?: LibraryOptions;
117
- /** The entry that the current entry depends on. With dependOn option you can share the modules from one entry chunk to another. */
125
+ /**
126
+ * The entry that the current entry depends on. With `dependOn` option
127
+ * you can share the modules from one entry chunk to another.
128
+ */
118
129
  dependOn?: EntryDependOn;
119
- /** The layer of this entry, make the corresponding configuration take effect through layer matching in SplitChunks, Rules, Stats, and Externals. */
130
+ /**
131
+ * Specifies the layer in which modules of this entrypoint are placed.
132
+ * Make the corresponding configuration take effect through layer matching
133
+ * in split chunks, rules, stats, and externals.
134
+ */
120
135
  layer?: Layer;
121
136
  };
122
137
  export type EntryUnnamed = EntryItem;
@@ -385,12 +400,12 @@ export type Output = {
385
400
  hashDigest?: HashDigest;
386
401
  /**
387
402
  * The prefix length of the hash digest to use.
388
- * @default 20
403
+ * @default 16
389
404
  * */
390
405
  hashDigestLength?: HashDigestLength;
391
406
  /**
392
407
  * The hashing algorithm to use.
393
- * @default 'md4'
408
+ * @default 'xxhash64'
394
409
  * */
395
410
  hashFunction?: HashFunction;
396
411
  /** An optional salt to update the hash. */
@@ -435,6 +450,10 @@ export type Output = {
435
450
  charset?: boolean;
436
451
  /** Tell Rspack what kind of ES-features may be used in the generated runtime-code. */
437
452
  environment?: Environment;
453
+ /**
454
+ * Check if to be emitted file already exists and have the same content before writing to output filesystem.
455
+ */
456
+ compareBeforeEmit?: boolean;
438
457
  };
439
458
  /**
440
459
  * Path alias
@@ -621,9 +640,9 @@ export type RuleSetRule = {
621
640
  /** Specify loader category. */
622
641
  enforce?: "pre" | "post";
623
642
  /** A kind of Nested Rule, an array of Rules from which only the first matching Rule is used when the parent Rule matches. */
624
- oneOf?: RuleSetRule[];
643
+ oneOf?: (RuleSetRule | Falsy)[];
625
644
  /** A kind of Nested Rule, an array of Rules that is also used when the parent Rule matches. */
626
- rules?: RuleSetRule[];
645
+ rules?: (RuleSetRule | Falsy)[];
627
646
  };
628
647
  /** A list of rules. */
629
648
  export type RuleSetRules = ("..." | RuleSetRule | Falsy)[];
@@ -712,6 +731,10 @@ export type JavascriptParserOptions = {
712
731
  * @default false
713
732
  * */
714
733
  wrappedContextCritical?: boolean;
734
+ /**
735
+ * Set the inner regular expression for partial dynamic dependencies
736
+ * */
737
+ wrappedContextRegExp?: RegExp;
715
738
  /**
716
739
  * Warn or error for using non-existent exports and conflicting re-exports.
717
740
  * @default 'auto'
@@ -868,7 +891,15 @@ export type ExternalsType = "var" | "module" | "assign" | "this" | "window" | "s
868
891
  /**
869
892
  * The dependency used for the external.
870
893
  */
871
- export type ExternalItemValue = string | boolean | string[] | Record<string, string | string[]>;
894
+ export type ExternalItemValue = string | boolean | string[] | {
895
+ /**
896
+ * only available when libraryTarget and externalsType is 'umd'
897
+ */
898
+ root: string | string[];
899
+ commonjs: string | string[];
900
+ commonjs2: string | string[];
901
+ amd?: string | string[];
902
+ };
872
903
  /**
873
904
  * If an dependency matches exactly a property of the object, the property value is used as dependency.
874
905
  */
@@ -1643,4 +1674,381 @@ export type Optimization = {
1643
1674
  * */
1644
1675
  emitOnErrors?: boolean;
1645
1676
  };
1677
+ /**
1678
+ * Options for future Rspack features.
1679
+ */
1680
+ export type RspackFutureOptions = {
1681
+ /**
1682
+ * Information about the bundler.
1683
+ */
1684
+ bundlerInfo?: {
1685
+ /**
1686
+ * Version of the bundler.
1687
+ */
1688
+ version?: string;
1689
+ /**
1690
+ * Name of the bundler.
1691
+ */
1692
+ bundler?: string;
1693
+ /**
1694
+ * Force specific features.
1695
+ */
1696
+ force?: boolean | ("version" | "uniqueId")[];
1697
+ };
1698
+ };
1699
+ /**
1700
+ * Options for server listening.
1701
+ */
1702
+ type ListenOptions = {
1703
+ /**
1704
+ * The port to listen on.
1705
+ */
1706
+ port?: number;
1707
+ /**
1708
+ * The host to listen on.
1709
+ */
1710
+ host?: string;
1711
+ /**
1712
+ * The backlog of connections.
1713
+ */
1714
+ backlog?: number;
1715
+ /**
1716
+ * The path for Unix socket.
1717
+ */
1718
+ path?: string;
1719
+ /**
1720
+ * Whether the server is exclusive.
1721
+ */
1722
+ exclusive?: boolean;
1723
+ /**
1724
+ * Whether the socket is readable by all users.
1725
+ */
1726
+ readableAll?: boolean;
1727
+ /**
1728
+ * Whether the socket is writable by all users.
1729
+ */
1730
+ writableAll?: boolean;
1731
+ /**
1732
+ * Whether to use IPv6 only.
1733
+ */
1734
+ ipv6Only?: boolean;
1735
+ };
1736
+ /**
1737
+ * Options for lazy compilation.
1738
+ */
1739
+ export type LazyCompilationOptions = {
1740
+ /**
1741
+ * Backend configuration for lazy compilation.
1742
+ */
1743
+ backend?: {
1744
+ /**
1745
+ * Client script path.
1746
+ */
1747
+ client?: string;
1748
+ /**
1749
+ * Listening options.
1750
+ */
1751
+ listen?: number | ListenOptions;
1752
+ /**
1753
+ * Protocol to use.
1754
+ */
1755
+ protocol?: "http" | "https";
1756
+ };
1757
+ /**
1758
+ * Enable lazy compilation for imports.
1759
+ */
1760
+ imports?: boolean;
1761
+ /**
1762
+ * Enable lazy compilation for entries.
1763
+ */
1764
+ entries?: boolean;
1765
+ /**
1766
+ * Test function or regex to determine which modules to include.
1767
+ */
1768
+ test?: RegExp | ((module: any) => boolean);
1769
+ };
1770
+ /**
1771
+ * Options for incremental builds.
1772
+ */
1773
+ export type Incremental = {
1774
+ /**
1775
+ * Enable incremental make.
1776
+ */
1777
+ make?: boolean;
1778
+ /**
1779
+ * Enable incremental asset emission.
1780
+ */
1781
+ emitAssets?: boolean;
1782
+ /**
1783
+ * Enable inference of async modules.
1784
+ */
1785
+ inferAsyncModules?: boolean;
1786
+ /**
1787
+ * Enable incremental provided exports.
1788
+ */
1789
+ providedExports?: boolean;
1790
+ /**
1791
+ * Enables diagnostics for dependencies.
1792
+ */
1793
+ dependenciesDiagnostics?: boolean;
1794
+ /**
1795
+ * Enable incremental module hashes.
1796
+ */
1797
+ modulesHashes?: boolean;
1798
+ /**
1799
+ * Enable incremental module code generation.
1800
+ */
1801
+ modulesCodegen?: boolean;
1802
+ /**
1803
+ * Enable incremental module runtime requirements.
1804
+ */
1805
+ modulesRuntimeRequirements?: boolean;
1806
+ /**
1807
+ * Enable incremental build chunk graph.
1808
+ */
1809
+ buildChunkGraph?: boolean;
1810
+ };
1811
+ /**
1812
+ * Experimental features configuration.
1813
+ */
1814
+ export type Experiments = {
1815
+ /**
1816
+ * Enable lazy compilation.
1817
+ */
1818
+ lazyCompilation?: boolean | LazyCompilationOptions;
1819
+ /**
1820
+ * Enable async WebAssembly.
1821
+ * Support the new WebAssembly according to the [updated specification](https://github.com/WebAssembly/esm-integration), it makes a WebAssembly module an async module.
1822
+ */
1823
+ asyncWebAssembly?: boolean;
1824
+ /**
1825
+ * Enable output as ES module.
1826
+ */
1827
+ outputModule?: boolean;
1828
+ /**
1829
+ * Enable top-level await.
1830
+ */
1831
+ topLevelAwait?: boolean;
1832
+ /**
1833
+ * Enable CSS support.
1834
+ *
1835
+ * @description
1836
+ * Once enabled, Rspack will enable native CSS support, and CSS related parser and generator options.
1837
+ * - `module.parser["css/auto"]`
1838
+ * - `module.parser.css`
1839
+ * - `module.parser["css/module"]`
1840
+ * - `module.generator["css/auto"]`
1841
+ * - `module.generator.css`
1842
+ * - `module.generator["css/module"]`
1843
+ */
1844
+ css?: boolean;
1845
+ /**
1846
+ * Enable module layers feature.
1847
+ * @default false
1848
+ */
1849
+ layers?: boolean;
1850
+ /**
1851
+ * Enable incremental builds.
1852
+ */
1853
+ incremental?: boolean | Incremental;
1854
+ /**
1855
+ * Enable future default options.
1856
+ */
1857
+ futureDefaults?: boolean;
1858
+ /**
1859
+ * Enable future Rspack features default options.
1860
+ */
1861
+ rspackFuture?: RspackFutureOptions;
1862
+ };
1863
+ export type Watch = boolean;
1864
+ /** Options for watch mode. */
1865
+ export type WatchOptions = {
1866
+ /**
1867
+ * Add a delay before rebuilding once the first file changed.
1868
+ * This allows webpack to aggregate any other changes made during this time period into one rebuild.
1869
+ * @default 5
1870
+ */
1871
+ aggregateTimeout?: number;
1872
+ /**
1873
+ * Follow symlinks while looking for files.
1874
+ * This is usually not needed as webpack already resolves symlinks ('resolve.symlinks' and 'resolve.alias').
1875
+ */
1876
+ followSymlinks?: boolean;
1877
+ /**
1878
+ * Ignore some files from being watched.
1879
+ */
1880
+ ignored?: string | RegExp | string[];
1881
+ /**
1882
+ * Turn on polling by passing true, or specifying a poll interval in milliseconds.
1883
+ * @default false
1884
+ */
1885
+ poll?: number | boolean;
1886
+ /**
1887
+ * Stop watching when stdin stream has ended.
1888
+ */
1889
+ stdin?: boolean;
1890
+ };
1891
+ /**
1892
+ * Options for devServer, it based on `webpack-dev-server@5`
1893
+ * */
1894
+ export interface DevServer extends webpackDevServer.Configuration {
1895
+ }
1896
+ /**
1897
+ * An array of either regular expressions or functions that determine if a warning should be ignored.
1898
+ */
1899
+ export type IgnoreWarnings = (RegExp | ((error: Error, compilation: Compilation) => boolean))[];
1900
+ /**
1901
+ * Capture a "profile" of the application, including statistics and hints, which can then be dissected using the Analyze tool.
1902
+ * */
1903
+ export type Profile = boolean;
1904
+ /**
1905
+ * Fail out on the first error instead of tolerating it.
1906
+ * @default false
1907
+ * */
1908
+ export type Bail = boolean;
1909
+ /** Options to control how Rspack notifies you of assets and entry points that exceed a specific file limit. */
1910
+ export type Performance = false | {
1911
+ /**
1912
+ * Filter function to select assets that are checked.
1913
+ */
1914
+ assetFilter?: (assetFilename: string) => boolean;
1915
+ /**
1916
+ * Sets the format of the hints: warnings, errors or nothing at all.
1917
+ */
1918
+ hints?: false | "warning" | "error";
1919
+ /**
1920
+ * File size limit (in bytes) when exceeded, that webpack will provide performance hints.
1921
+ * @default 250000
1922
+ */
1923
+ maxAssetSize?: number;
1924
+ /**
1925
+ * Total size of an entry point (in bytes).
1926
+ * @default 250000
1927
+ */
1928
+ maxEntrypointSize?: number;
1929
+ };
1930
+ export type RspackOptions = {
1931
+ /**
1932
+ * The name of the Rspack configuration.
1933
+ */
1934
+ name?: Name;
1935
+ /**
1936
+ * An array of dependencies required by the project.
1937
+ */
1938
+ dependencies?: Dependencies;
1939
+ /**
1940
+ * The entry point of the application.
1941
+ */
1942
+ entry?: Entry;
1943
+ /**
1944
+ * Configuration for the output of the compilation.
1945
+ */
1946
+ output?: Output;
1947
+ /**
1948
+ * The environment in which the code should run.
1949
+ */
1950
+ target?: Target;
1951
+ /**
1952
+ * The mode in which Rspack should operate.
1953
+ */
1954
+ mode?: Mode;
1955
+ /**
1956
+ * Options for experimental features.
1957
+ */
1958
+ experiments?: Experiments;
1959
+ /**
1960
+ * External libraries that should not be bundled.
1961
+ */
1962
+ externals?: Externals;
1963
+ /**
1964
+ * The type of externals.
1965
+ */
1966
+ externalsType?: ExternalsType;
1967
+ /**
1968
+ * Presets for external libraries.
1969
+ */
1970
+ externalsPresets?: ExternalsPresets;
1971
+ /**
1972
+ * Logging options for infrastructure.
1973
+ */
1974
+ infrastructureLogging?: InfrastructureLogging;
1975
+ /**
1976
+ * Options for caching.
1977
+ */
1978
+ cache?: CacheOptions;
1979
+ /**
1980
+ * The context in which the compilation should occur.
1981
+ */
1982
+ context?: Context;
1983
+ /**
1984
+ * The source map configuration.
1985
+ */
1986
+ devtool?: DevTool;
1987
+ /**
1988
+ * Options for Node.js environment.
1989
+ */
1990
+ node?: Node;
1991
+ /**
1992
+ * Configuration for loaders.
1993
+ */
1994
+ loader?: Loader;
1995
+ /**
1996
+ * Warnings to ignore during compilation.
1997
+ */
1998
+ ignoreWarnings?: IgnoreWarnings;
1999
+ /**
2000
+ * Options for watch mode.
2001
+ */
2002
+ watchOptions?: WatchOptions;
2003
+ /**
2004
+ * Whether to enable watch mode.
2005
+ */
2006
+ watch?: Watch;
2007
+ /**
2008
+ * Options for the stats output.
2009
+ */
2010
+ stats?: StatsValue;
2011
+ /**
2012
+ * Options for snapshotting.
2013
+ */
2014
+ snapshot?: SnapshotOptions;
2015
+ /**
2016
+ * Optimization options.
2017
+ */
2018
+ optimization?: Optimization;
2019
+ /**
2020
+ * Options for resolving modules.
2021
+ */
2022
+ resolve?: ResolveOptions;
2023
+ /**
2024
+ * Options for resolving loader modules.
2025
+ */
2026
+ resolveLoader?: ResolveOptions;
2027
+ /**
2028
+ * Plugins to use during compilation.
2029
+ */
2030
+ plugins?: Plugins;
2031
+ /**
2032
+ * Configuration for the development server.
2033
+ */
2034
+ devServer?: DevServer;
2035
+ /**
2036
+ * Options for module configuration.
2037
+ */
2038
+ module?: ModuleOptions;
2039
+ /**
2040
+ * Whether to capture a profile of the application.
2041
+ */
2042
+ profile?: Profile;
2043
+ /**
2044
+ * Whether to fail on the first error.
2045
+ */
2046
+ bail?: Bail;
2047
+ /**
2048
+ * Performance optimization options.
2049
+ */
2050
+ performance?: Performance;
2051
+ };
2052
+ /** Configuration for Rspack */
2053
+ export type Configuration = RspackOptions;
1646
2054
  export {};