@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.
Files changed (182) hide show
  1. package/dist/BuildInfo.d.ts +4 -4
  2. package/dist/Chunk.d.ts +3 -3
  3. package/dist/ChunkGraph.d.ts +3 -3
  4. package/dist/Chunks.d.ts +2 -2
  5. package/dist/Compilation.d.ts +40 -40
  6. package/dist/Compiler.d.ts +23 -25
  7. package/dist/ConcatenatedModule.d.ts +1 -1
  8. package/dist/ContextModule.d.ts +1 -1
  9. package/dist/ContextModuleFactory.d.ts +2 -2
  10. package/dist/Diagnostics.d.ts +2 -2
  11. package/dist/Entrypoint.d.ts +1 -1
  12. package/dist/ExecuteModulePlugin.d.ts +1 -1
  13. package/dist/ExportsInfo.d.ts +2 -2
  14. package/dist/ExternalModule.d.ts +1 -1
  15. package/dist/FileSystem.d.ts +3 -3
  16. package/dist/Module.d.ts +6 -6
  17. package/dist/ModuleGraph.d.ts +3 -3
  18. package/dist/MultiCompiler.d.ts +8 -8
  19. package/dist/MultiStats.d.ts +3 -3
  20. package/dist/MultiWatching.d.ts +3 -3
  21. package/dist/NativeWatchFileSystem.d.ts +5 -5
  22. package/dist/NormalModule.d.ts +6 -6
  23. package/dist/NormalModuleFactory.d.ts +4 -4
  24. package/dist/Resolver.d.ts +2 -2
  25. package/dist/ResolverFactory.d.ts +3 -3
  26. package/dist/RspackError.d.ts +2 -2
  27. package/dist/RuntimeGlobals.d.ts +2 -2
  28. package/dist/RuntimeModule.d.ts +4 -4
  29. package/dist/Stats.d.ts +4 -4
  30. package/dist/VirtualModulesPlugin.d.ts +1 -1
  31. package/dist/Watching.d.ts +5 -5
  32. package/dist/builtin-loader/index.d.ts +1 -1
  33. package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +1 -1
  34. package/dist/builtin-loader/swc/index.d.ts +5 -5
  35. package/dist/builtin-loader/swc/types.d.ts +8 -10
  36. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  37. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +10 -5
  38. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
  39. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  40. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
  41. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
  42. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  43. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +4 -4
  44. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  45. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +3 -3
  46. package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
  47. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +1 -1
  48. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  50. package/dist/builtin-plugin/ExternalsPlugin.d.ts +3 -3
  51. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
  52. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +3 -3
  53. package/dist/builtin-plugin/HttpUriPlugin.d.ts +4 -4
  54. package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
  55. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +6 -6
  56. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  57. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +2 -2
  58. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
  59. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
  60. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
  61. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
  62. package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  64. package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
  65. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -8
  66. package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
  67. package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
  68. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/RuntimePlugin.d.ts +5 -5
  70. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  71. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +4 -4
  72. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +5 -5
  73. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -3
  74. package/dist/builtin-plugin/{CaseSensitivePlugin.d.ts → WarnCaseSensitiveModulesPlugin.d.ts} +1 -1
  75. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
  76. package/dist/builtin-plugin/WorkerPlugin.d.ts +4 -4
  77. package/dist/builtin-plugin/base.d.ts +3 -3
  78. package/dist/builtin-plugin/css-extract/index.d.ts +7 -7
  79. package/dist/builtin-plugin/css-extract/loader.d.ts +2 -2
  80. package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
  81. package/dist/builtin-plugin/html-plugin/hooks.d.ts +4 -4
  82. package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
  83. package/dist/builtin-plugin/html-plugin/options.d.ts +6 -6
  84. package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -5
  85. package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
  86. package/dist/builtin-plugin/index.d.ts +88 -84
  87. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  88. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
  89. package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
  90. package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +10 -0
  91. package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +10 -0
  92. package/dist/builtin-plugin/rsc/index.d.ts +15 -0
  93. package/dist/config/adapter.d.ts +7 -7
  94. package/dist/config/adapterRuleUse.d.ts +16 -16
  95. package/dist/config/browserslistTargetHandler.d.ts +1 -1
  96. package/dist/config/defaults.d.ts +2 -11
  97. package/dist/config/devServer.d.ts +32 -32
  98. package/dist/config/index.d.ts +5 -5
  99. package/dist/config/normalization.d.ts +9 -9
  100. package/dist/config/target.d.ts +7 -7
  101. package/dist/config/types.d.ts +74 -75
  102. package/dist/container/ContainerPlugin.d.ts +4 -4
  103. package/dist/container/ContainerReferencePlugin.d.ts +4 -4
  104. package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -3
  105. package/dist/container/ModuleFederationPlugin.d.ts +6 -6
  106. package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
  107. package/dist/container/index.d.ts +4 -4
  108. package/dist/cssExtractHmr.js +19 -19
  109. package/dist/cssExtractLoader.js +16 -16
  110. package/dist/exports.d.ts +74 -76
  111. package/dist/index.d.ts +3 -3
  112. package/dist/index.js +1943 -1892
  113. package/dist/lib/AbstractMethodError.d.ts +1 -1
  114. package/dist/lib/Cache.d.ts +2 -2
  115. package/dist/lib/CacheFacade.d.ts +3 -3
  116. package/dist/lib/DllPlugin.d.ts +1 -1
  117. package/dist/lib/DllReferencePlugin.d.ts +5 -5
  118. package/dist/lib/EntryOptionPlugin.d.ts +2 -2
  119. package/dist/lib/EnvironmentPlugin.d.ts +1 -1
  120. package/dist/lib/HookWebpackError.d.ts +2 -2
  121. package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
  122. package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
  123. package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
  124. package/dist/lib/WebpackError.d.ts +3 -3
  125. package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
  126. package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
  127. package/dist/lib/cache/mergeEtags.d.ts +1 -1
  128. package/dist/loader-runner/ModuleError.d.ts +1 -1
  129. package/dist/loader-runner/index.d.ts +3 -3
  130. package/dist/loader-runner/loadLoader.d.ts +2 -2
  131. package/dist/loader-runner/service.d.ts +8 -8
  132. package/dist/loader-runner/utils.d.ts +3 -3
  133. package/dist/loader-runner/worker.d.ts +3 -3
  134. package/dist/logging/createConsoleLogger.d.ts +4 -4
  135. package/dist/moduleFederationDefaultRuntime.js +1 -1
  136. package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
  137. package/dist/node/NodeTemplatePlugin.d.ts +1 -1
  138. package/dist/node/NodeWatchFileSystem.d.ts +3 -3
  139. package/dist/node/nodeConsole.d.ts +2 -2
  140. package/dist/rspack.d.ts +6 -15
  141. package/dist/rspackOptionsApply.d.ts +1 -1
  142. package/dist/sharing/ConsumeSharedPlugin.d.ts +3 -3
  143. package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
  144. package/dist/sharing/SharePlugin.d.ts +1 -1
  145. package/dist/sharing/ShareRuntimePlugin.d.ts +3 -3
  146. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +15 -15
  147. package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
  148. package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
  149. package/dist/stats/StatsFactory.d.ts +5 -5
  150. package/dist/stats/StatsPrinter.d.ts +3 -3
  151. package/dist/stats/statsFactoryUtils.d.ts +5 -5
  152. package/dist/swc.d.ts +2 -2
  153. package/dist/taps/compilation.d.ts +2 -2
  154. package/dist/taps/compiler.d.ts +1 -1
  155. package/dist/taps/contextModuleFactory.d.ts +1 -1
  156. package/dist/taps/index.d.ts +6 -6
  157. package/dist/taps/javascriptModules.d.ts +1 -1
  158. package/dist/taps/normalModuleFactory.d.ts +1 -1
  159. package/dist/taps/types.d.ts +3 -3
  160. package/dist/trace/index.d.ts +4 -4
  161. package/dist/trace/traceHookPlugin.d.ts +1 -1
  162. package/dist/util/SplitChunkSize.d.ts +1 -1
  163. package/dist/util/createHash.d.ts +1 -1
  164. package/dist/util/createReadonlyMap.d.ts +1 -1
  165. package/dist/util/fs.d.ts +14 -14
  166. package/dist/util/hash/wasm-hash.d.ts +1 -1
  167. package/dist/util/identifier.d.ts +1 -1
  168. package/dist/util/index.d.ts +1 -2
  169. package/dist/util/source.d.ts +2 -2
  170. package/dist/util/validateConfig.d.ts +1 -1
  171. package/dist/worker.js +111 -111
  172. package/hot/dev-server.js +64 -64
  173. package/hot/emitter.js +11 -11
  174. package/hot/lazy-compilation-node.js +41 -41
  175. package/hot/lazy-compilation-web.js +52 -52
  176. package/hot/log-apply-result.js +36 -36
  177. package/hot/log.js +30 -30
  178. package/hot/only-dev-server.js +92 -92
  179. package/hot/poll.js +31 -31
  180. package/hot/signal.js +53 -53
  181. package/module.d.ts +215 -215
  182. package/package.json +4 -4
@@ -5,17 +5,17 @@
5
5
  export declare const getDefaultTarget: (context: string) => "browserslist" | "web";
6
6
  export type PlatformTargetProperties = {
7
7
  /** web platform, importing of http(s) and std: is available */
8
- web?: boolean | null;
8
+ web: boolean | null;
9
9
  /** browser platform, running in a normal web browser */
10
- browser?: boolean | null;
10
+ browser: boolean | null;
11
11
  /** (Web)Worker platform, running in a web/shared/service worker */
12
- webworker?: boolean | null;
12
+ webworker: boolean | null;
13
13
  /** node platform, require of node built-in modules is available */
14
- node?: boolean | null;
14
+ node: boolean | null;
15
15
  /** nwjs platform, require of legacy nw.gui is available */
16
- nwjs?: boolean | null;
16
+ nwjs: boolean | null;
17
17
  /** electron platform, require of some electron built-in modules is available */
18
- electron?: boolean | null;
18
+ electron: boolean | null;
19
19
  };
20
20
  export type ElectronContextTargetProperties = {
21
21
  /** in main context */
@@ -75,7 +75,7 @@ type Never<T> = {
75
75
  [P in keyof T]?: never;
76
76
  };
77
77
  type Mix<A, B> = (A & Never<B>) | (Never<A> & B) | (A & B);
78
- export type TargetProperties = Mix<Mix<PlatformTargetProperties, ElectronContextTargetProperties>, Mix<ApiTargetProperties, EcmaTargetProperties>>;
78
+ type TargetProperties = Mix<Mix<PlatformTargetProperties, ElectronContextTargetProperties>, Mix<ApiTargetProperties, EcmaTargetProperties>>;
79
79
  /**
80
80
  * @param target the target
81
81
  * @param context the context directory
@@ -1,14 +1,14 @@
1
- import type { AssetInfo, RawFuncUseCtx } from '@rspack/binding';
2
- import type { HttpUriPluginOptions } from '../builtin-plugin/HttpUriPlugin';
3
- import type { ChunkGraph } from '../ChunkGraph';
4
- import type { Compilation, PathData } from '../Compilation';
5
- import type { Compiler } from '../Compiler';
6
- import type { Chunk } from '../exports';
7
- import type WebpackError from '../lib/WebpackError';
8
- import type { Module } from '../Module';
9
- import type ModuleGraph from '../ModuleGraph';
10
- import type { ResolveCallback } from './adapterRuleUse';
11
- import type { DevServerOptions } from './devServer';
1
+ import type { AssetInfo, RawFuncUseCtx } from "@rspack/binding";
2
+ import type { HttpUriPluginOptions } from "../builtin-plugin/HttpUriPlugin";
3
+ import type { ChunkGraph } from "../ChunkGraph";
4
+ import type { Compilation, PathData } from "../Compilation";
5
+ import type { Compiler } from "../Compiler";
6
+ import type { Chunk } from "../exports";
7
+ import type WebpackError from "../lib/WebpackError";
8
+ import type { Module } from "../Module";
9
+ import type ModuleGraph from "../ModuleGraph";
10
+ import type { ResolveCallback } from "./adapterRuleUse";
11
+ import type { DevServerOptions } from "./devServer";
12
12
  /** https://github.com/microsoft/TypeScript/issues/29729 */
13
13
  export type LiteralUnion<T extends U, U> = T | (U & Record<never, never>);
14
14
  export type FilenameTemplate = string;
@@ -26,23 +26,23 @@ export type Context = string;
26
26
  * The mode configuration is used to set the build mode of Rspack to enable the default optimization strategy.
27
27
  * @default 'production'
28
28
  * */
29
- export type Mode = 'development' | 'production' | 'none';
30
- export type Falsy = false | '' | 0 | null | undefined;
29
+ export type Mode = "development" | "production" | "none";
30
+ export type Falsy = false | "" | 0 | null | undefined;
31
31
  /** The publicPath of the resource referenced by this entry. */
32
- export type PublicPath = LiteralUnion<'auto', string> | Exclude<Filename, string>;
32
+ export type PublicPath = LiteralUnion<"auto", string> | Exclude<Filename, string>;
33
33
  /** The baseURI of the resource referenced by this entry. */
34
34
  export type BaseUri = string;
35
35
  /** How this entry load other chunks. */
36
- export type ChunkLoadingType = LiteralUnion<'jsonp' | 'import-scripts' | 'require' | 'async-node' | 'import', string>;
36
+ export type ChunkLoadingType = LiteralUnion<"jsonp" | "import-scripts" | "require" | "async-node" | "import", string>;
37
37
  /** How this entry load other chunks. */
38
38
  export type ChunkLoading = false | ChunkLoadingType;
39
39
  /** Whether to create a load-on-demand asynchronous chunk for entry. */
40
40
  export type AsyncChunks = boolean;
41
41
  /** Option to set the method of loading WebAssembly Modules. */
42
- export type WasmLoadingType = LiteralUnion<'fetch-streaming' | 'fetch' | 'async-node', string>;
42
+ export type WasmLoadingType = LiteralUnion<"fetch-streaming" | "fetch" | "async-node", string>;
43
43
  /** Option to set the method of loading WebAssembly Modules. */
44
44
  export type WasmLoading = false | WasmLoadingType;
45
- export type ScriptType = false | 'text/javascript' | 'module';
45
+ export type ScriptType = false | "text/javascript" | "module";
46
46
  export type LibraryCustomUmdObject = {
47
47
  amd?: string;
48
48
  commonjs?: string;
@@ -63,7 +63,7 @@ export type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
63
63
  /** Specify which export should be exposed as a library. */
64
64
  export type LibraryExport = string | string[];
65
65
  /** Configure how the library will be exposed. */
66
- export type LibraryType = LiteralUnion<'var' | 'module' | 'assign' | 'assign-properties' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system', string>;
66
+ export type LibraryType = LiteralUnion<"var" | "module" | "assign" | "assign-properties" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system", string>;
67
67
  /** When using output.library.type: "umd", setting output.library.umdNamedDefine to true will name the AMD module of the UMD build. */
68
68
  export type UmdNamedDefine = boolean;
69
69
  /** Options for library. */
@@ -152,7 +152,7 @@ export type Entry = EntryStatic | EntryDynamic;
152
152
  /** The output directory as an absolute path. */
153
153
  export type Path = string;
154
154
  /** Tells Rspack to include comments in bundles with information about the contained modules. */
155
- export type Pathinfo = boolean | 'verbose';
155
+ export type Pathinfo = boolean | "verbose";
156
156
  /** Before generating the products, delete all files in the output directory. */
157
157
  export type AssetModuleFilename = Filename;
158
158
  /** Specifies the filename of WebAssembly modules. */
@@ -160,7 +160,7 @@ export type WebassemblyModuleFilename = string;
160
160
  /** This option determines the name of non-initial chunk files. */
161
161
  export type ChunkFilename = Filename;
162
162
  /** Allows you to set the [crossorigin attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) */
163
- export type CrossOriginLoading = false | 'anonymous' | 'use-credentials';
163
+ export type CrossOriginLoading = false | "anonymous" | "use-credentials";
164
164
  /** This option determines the name of CSS output files on disk. */
165
165
  export type CssFilename = Filename;
166
166
  /** This option determines the name of non-initial CSS output files on disk. */
@@ -212,14 +212,14 @@ export type TrustedTypes = {
212
212
  /**
213
213
  * If the call to `trustedTypes.createPolicy(...)` fails -- e.g., due to the policy name missing from the CSP `trusted-types` list, or it being a duplicate name, etc. -- controls whether to continue with loading in the hope that `require-trusted-types-for 'script'` isn't enforced yet, versus fail immediately. Default behavior is 'stop'.
214
214
  */
215
- onPolicyCreationFailure?: 'continue' | 'stop';
215
+ onPolicyCreationFailure?: "continue" | "stop";
216
216
  };
217
217
  /** The encoding to use when generating the hash. */
218
218
  export type HashDigest = string;
219
219
  /** The prefix length of the hash digest to use. */
220
220
  export type HashDigestLength = number;
221
221
  /** The hashing algorithm to use. */
222
- export type HashFunction = 'md4' | 'xxhash64' | 'sha256';
222
+ export type HashFunction = "md4" | "xxhash64" | "sha256";
223
223
  /** An optional salt to update the hash. */
224
224
  export type HashSalt = string;
225
225
  /** Configure how source maps are named. */
@@ -530,7 +530,7 @@ export type ResolveAlias = {
530
530
  /** The replacement of [tsconfig-paths-webpack-plugin](https://www.npmjs.com/package/tsconfig-paths-webpack-plugin) in Rspack. */
531
531
  export type ResolveTsConfig = string | {
532
532
  configFile: string;
533
- references?: string[] | 'auto' | undefined;
533
+ references?: string[] | "auto" | undefined;
534
534
  };
535
535
  /** Used to configure the Rspack module resolution */
536
536
  export type ResolveOptions = {
@@ -711,7 +711,7 @@ export type RuleSetRule = {
711
711
  /** Flag the module for side effects */
712
712
  sideEffects?: boolean;
713
713
  /** Specify loader category. */
714
- enforce?: 'pre' | 'post';
714
+ enforce?: "pre" | "post";
715
715
  /** A kind of Nested Rule, an array of Rules from which only the first matching Rule is used when the parent Rule matches. */
716
716
  oneOf?: (RuleSetRule | Falsy)[];
717
717
  /** A kind of Nested Rule, an array of Rules that is also used when the parent Rule matches. */
@@ -720,7 +720,7 @@ export type RuleSetRule = {
720
720
  extractSourceMap?: boolean;
721
721
  };
722
722
  /** A list of rules. */
723
- export type RuleSetRules = ('...' | RuleSetRule | Falsy)[];
723
+ export type RuleSetRules = ("..." | RuleSetRule | Falsy)[];
724
724
  /**
725
725
  * Options object for DataUrl condition.
726
726
  * */
@@ -780,8 +780,8 @@ export type CssModuleParserOptions = {
780
780
  * */
781
781
  url?: CssParserUrl;
782
782
  };
783
- type ExportsPresence = 'error' | 'warn' | 'auto' | false;
784
- export type JavascriptParserCommonjsExports = boolean | 'skipInEsm';
783
+ type ExportsPresence = "error" | "warn" | "auto" | false;
784
+ export type JavascriptParserCommonjsExports = boolean | "skipInEsm";
785
785
  export type JavascriptParserCommonjsOption = boolean | {
786
786
  /** Controls how CommonJS export mutations are handled. */
787
787
  exports?: JavascriptParserCommonjsExports;
@@ -791,7 +791,7 @@ export type JavascriptParserOptions = {
791
791
  * Specifies global mode for dynamic import.
792
792
  * @default 'lazy'
793
793
  * */
794
- dynamicImportMode?: 'eager' | 'lazy' | 'weak' | 'lazy-once';
794
+ dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once";
795
795
  /**
796
796
  * Specifies global preload for dynamic import.
797
797
  * @default false
@@ -806,7 +806,7 @@ export type JavascriptParserOptions = {
806
806
  * Specifies global fetchPriority for dynamic import
807
807
  * @default 'auto'
808
808
  */
809
- dynamicImportFetchPriority?: 'low' | 'high' | 'auto';
809
+ dynamicImportFetchPriority?: "low" | "high" | "auto";
810
810
  /**
811
811
  * Enable or disable evaluating import.meta.
812
812
  * @default true
@@ -816,7 +816,7 @@ export type JavascriptParserOptions = {
816
816
  * Enable parsing of new URL() syntax.
817
817
  * @default true
818
818
  * */
819
- url?: 'relative' | 'new-url-relative' | boolean;
819
+ url?: "relative" | "new-url-relative" | boolean;
820
820
  /**
821
821
  * Enable warnings for full dynamic dependencies
822
822
  * @default true
@@ -850,7 +850,7 @@ export type JavascriptParserOptions = {
850
850
  /** Provide custom syntax for Worker parsing, commonly used to support Worklet */
851
851
  worker?: string[] | boolean;
852
852
  /** Override the module to strict or non-strict. */
853
- overrideStrict?: 'strict' | 'non-strict';
853
+ overrideStrict?: "strict" | "non-strict";
854
854
  requireAsExpression?: boolean;
855
855
  requireDynamic?: boolean;
856
856
  requireResolve?: boolean;
@@ -865,7 +865,7 @@ export type JavascriptParserOptions = {
865
865
  */
866
866
  commonjsMagicComments?: boolean;
867
867
  /** Whether to tolerant exportsPresence for type reexport */
868
- typeReexportsPresence?: 'no-tolerant' | 'tolerant' | 'tolerant-no-check';
868
+ typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
869
869
  /** Whether to enable JSX parsing */
870
870
  jsx?: boolean;
871
871
  /** Whether to enable defer import */
@@ -888,17 +888,17 @@ export type ParserOptionsByModuleTypeKnown = {
888
888
  /** Parser options for `css` modules. */
889
889
  css?: CssParserOptions;
890
890
  /** Parser options for `css/auto` modules. */
891
- 'css/auto'?: CssAutoParserOptions;
891
+ "css/auto"?: CssAutoParserOptions;
892
892
  /** Parser options for `css/module` modules. */
893
- 'css/module'?: CssModuleParserOptions;
893
+ "css/module"?: CssModuleParserOptions;
894
894
  /** Parser options for `javascript` modules. */
895
895
  javascript?: JavascriptParserOptions;
896
896
  /** Parser options for `javascript/auto` modules. */
897
- 'javascript/auto'?: JavascriptParserOptions;
897
+ "javascript/auto"?: JavascriptParserOptions;
898
898
  /** Parser options for `javascript/dynamic` modules. */
899
- 'javascript/dynamic'?: JavascriptParserOptions;
899
+ "javascript/dynamic"?: JavascriptParserOptions;
900
900
  /** Parser options for `javascript/esm` modules. */
901
- 'javascript/esm'?: JavascriptParserOptions;
901
+ "javascript/esm"?: JavascriptParserOptions;
902
902
  /** Parser options for `json` modules. */
903
903
  json?: JsonParserOptions;
904
904
  };
@@ -909,7 +909,7 @@ export type ParserOptionsByModuleTypeUnknown = {
909
909
  /** Configure all parsers' options in one place with module.parser. */
910
910
  export type ParserOptionsByModuleType = ParserOptionsByModuleTypeKnown | ParserOptionsByModuleTypeUnknown;
911
911
  export type AssetGeneratorDataUrlOptions = {
912
- encoding?: false | 'base64';
912
+ encoding?: false | "base64";
913
913
  mimetype?: string;
914
914
  };
915
915
  export type AssetGeneratorDataUrlFunction = (content: Buffer, context: {
@@ -934,7 +934,7 @@ export type AssetModuleOutputPath = Filename;
934
934
  * Only for modules with module type 'asset' or 'asset/resource'.
935
935
  * @default "url"
936
936
  */
937
- export type AssetModuleImportMode = 'url' | 'preserve';
937
+ export type AssetModuleImportMode = "url" | "preserve";
938
938
  /** Options for asset modules. */
939
939
  export type AssetResourceGeneratorOptions = {
940
940
  /**
@@ -962,7 +962,7 @@ export type AssetResourceGeneratorOptions = {
962
962
  };
963
963
  /** Generator options for asset modules. */
964
964
  export type AssetGeneratorOptions = AssetInlineGeneratorOptions & AssetResourceGeneratorOptions;
965
- export type CssGeneratorExportsConvention = 'as-is' | 'camel-case' | 'camel-case-only' | 'dashes' | 'dashes-only';
965
+ export type CssGeneratorExportsConvention = "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only";
966
966
  export type CssGeneratorExportsOnly = boolean;
967
967
  export type CssGeneratorLocalIdentName = string;
968
968
  export type CssGeneratorEsModule = boolean;
@@ -1007,15 +1007,15 @@ export type GeneratorOptionsByModuleTypeKnown = {
1007
1007
  /** Generator options for asset modules. */
1008
1008
  asset?: AssetGeneratorOptions;
1009
1009
  /** Generator options for asset/inline modules. */
1010
- 'asset/inline'?: AssetInlineGeneratorOptions;
1010
+ "asset/inline"?: AssetInlineGeneratorOptions;
1011
1011
  /** Generator options for asset/resource modules. */
1012
- 'asset/resource'?: AssetResourceGeneratorOptions;
1012
+ "asset/resource"?: AssetResourceGeneratorOptions;
1013
1013
  /** Generator options for css modules. */
1014
1014
  css?: CssGeneratorOptions;
1015
1015
  /** Generator options for css/auto modules. */
1016
- 'css/auto'?: CssAutoGeneratorOptions;
1016
+ "css/auto"?: CssAutoGeneratorOptions;
1017
1017
  /** Generator options for css/module modules. */
1018
- 'css/module'?: CssModuleGeneratorOptions;
1018
+ "css/module"?: CssModuleGeneratorOptions;
1019
1019
  /** Generator options for json modules. */
1020
1020
  json?: JsonGeneratorOptions;
1021
1021
  };
@@ -1047,7 +1047,7 @@ export type ModuleOptions = {
1047
1047
  */
1048
1048
  unsafeCache?: boolean | RegExp;
1049
1049
  };
1050
- type AllowTarget = 'web' | 'webworker' | 'es3' | 'es5' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'es2024' | 'es2025' | 'node' | 'async-node' | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | 'electron-main' | `electron${number}-main` | `electron${number}.${number}-main` | 'electron-renderer' | `electron${number}-renderer` | `electron${number}.${number}-renderer` | 'electron-preload' | `electron${number}-preload` | `electron${number}.${number}-preload` | 'nwjs' | `nwjs${number}` | `nwjs${number}.${number}` | 'node-webkit' | `node-webkit${number}` | `node-webkit${number}.${number}` | 'browserslist' | `browserslist:${string}`;
1050
+ type AllowTarget = "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "es2025" | "node" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | "nwjs" | `nwjs${number}` | `nwjs${number}.${number}` | "node-webkit" | `node-webkit${number}` | `node-webkit${number}.${number}` | "browserslist" | `browserslist:${string}`;
1051
1051
  /** Used to configure the target environment of Rspack output and the ECMAScript version of Rspack runtime code. */
1052
1052
  export type Target = false | AllowTarget | AllowTarget[];
1053
1053
  /**
@@ -1055,7 +1055,7 @@ export type Target = false | AllowTarget | AllowTarget[];
1055
1055
  * `amd`, `umd`, `system` and `jsonp` externals depend on the `output.libraryTarget` being set to the same value e.g. you can only consume amd externals within an amd library.
1056
1056
  * @default 'var'
1057
1057
  */
1058
- export type ExternalsType = 'var' | 'module' | 'assign' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system' | 'promise' | 'import' | 'module-import' | 'script' | 'node-commonjs' | 'commonjs-import';
1058
+ export type ExternalsType = "var" | "module" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "promise" | "import" | "module-import" | "script" | "node-commonjs" | "commonjs-import";
1059
1059
  /**
1060
1060
  * External item object when both libraryTarget and externalsType is 'umd'
1061
1061
  */
@@ -1179,7 +1179,7 @@ export type InfrastructureLogging = {
1179
1179
  /**
1180
1180
  * Enable infrastructure logging output.
1181
1181
  */
1182
- level?: 'none' | 'error' | 'warn' | 'info' | 'log' | 'verbose';
1182
+ level?: "none" | "error" | "warn" | "info" | "log" | "verbose";
1183
1183
  /**
1184
1184
  * Stream used for logging output.
1185
1185
  */
@@ -1188,11 +1188,11 @@ export type InfrastructureLogging = {
1188
1188
  /**
1189
1189
  * Configuration used to control the behavior of the Source Map generation.
1190
1190
  */
1191
- type DevToolPosition = 'inline-' | 'hidden-' | 'eval-' | '';
1192
- type DevToolNoSources = 'nosources-' | '';
1193
- type DevToolCheap = 'cheap-' | 'cheap-module-' | '';
1194
- type DevToolDebugIds = '-debugids' | '';
1195
- export type DevTool = false | 'eval' | `${DevToolPosition}${DevToolNoSources}${DevToolCheap}source-map${DevToolDebugIds}`;
1191
+ type DevToolPosition = "inline-" | "hidden-" | "eval-" | "";
1192
+ type DevToolNoSources = "nosources-" | "";
1193
+ type DevToolCheap = "cheap-" | "cheap-module-" | "";
1194
+ type DevToolDebugIds = "-debugids" | "";
1195
+ export type DevTool = false | "eval" | `${DevToolPosition}${DevToolNoSources}${DevToolCheap}source-map${DevToolDebugIds}`;
1196
1196
  /**
1197
1197
  * Options for mocking Node.js globals and modules.
1198
1198
  */
@@ -1207,7 +1207,7 @@ export type NodeOptions = {
1207
1207
  * - `"node-module"`: Replace `__dirname` in CommonJS modules to `fileURLToPath(import.meta.url + "/..")` when `output.module` is enabled.
1208
1208
  * - `"eval-only"`: Equivalent to `false`.
1209
1209
  */
1210
- __dirname?: boolean | 'warn-mock' | 'mock' | 'eval-only' | 'node-module';
1210
+ __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module";
1211
1211
  /**
1212
1212
  * Controls the behavior of `__filename`.
1213
1213
  * @description
@@ -1218,7 +1218,7 @@ export type NodeOptions = {
1218
1218
  * - `"node-module"`: Replace `__filename` in CommonJS modules to `fileURLToPath(import.meta.url)` when `output.module` is enabled.
1219
1219
  * - `"eval-only"`: Equivalent to `false`.
1220
1220
  */
1221
- __filename?: boolean | 'warn-mock' | 'mock' | 'eval-only' | 'node-module';
1221
+ __filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module";
1222
1222
  /**
1223
1223
  * Controls the behavior of `global`.
1224
1224
  * @description
@@ -1228,7 +1228,7 @@ export type NodeOptions = {
1228
1228
  * @see {@link https://nodejs.org/api/globals.html#globals_global | Node.js documentation} for the exact behavior of this object.
1229
1229
  * @default "warn"
1230
1230
  */
1231
- global?: boolean | 'warn';
1231
+ global?: boolean | "warn";
1232
1232
  };
1233
1233
  /**
1234
1234
  * Options for mocking Node.js globals and modules.
@@ -1249,7 +1249,7 @@ export type SnapshotOptions = {};
1249
1249
  * cache: false
1250
1250
  */
1251
1251
  export type CacheOptions = boolean;
1252
- export type StatsPresets = 'normal' | 'none' | 'verbose' | 'errors-only' | 'errors-warnings' | 'minimal' | 'detailed' | 'summary';
1252
+ export type StatsPresets = "normal" | "none" | "verbose" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary";
1253
1253
  type ModuleFilterItemTypes = RegExp | string | ((name: string, module: any, type: any) => boolean);
1254
1254
  type ModuleFilterTypes = boolean | ModuleFilterItemTypes | ModuleFilterItemTypes[];
1255
1255
  export type StatsColorOptions = {
@@ -1307,7 +1307,7 @@ export type StatsOptions = {
1307
1307
  * Enables or disables the display of entrypoint stats or sets it to 'auto'.
1308
1308
  * @default false
1309
1309
  */
1310
- entrypoints?: boolean | 'auto';
1310
+ entrypoints?: boolean | "auto";
1311
1311
  /**
1312
1312
  * Enables or disables the display of chunk group stats.
1313
1313
  * @default true
@@ -1415,7 +1415,7 @@ export type StatsOptions = {
1415
1415
  * - `'log'`, true: Errors, warnings, info messages, log messages, groups, and clears are logged. Collapsed groups are initially collapsed.
1416
1416
  * - `'verbose'`: All log levels except debug and trace are logged. Collapsed groups are initially expanded.
1417
1417
  */
1418
- logging?: 'none' | 'error' | 'warn' | 'info' | 'log' | 'verbose' | boolean;
1418
+ logging?: "none" | "error" | "warn" | "info" | "log" | "verbose" | boolean;
1419
1419
  /**
1420
1420
  * Enables or disables debug logging, or specifies a filter for debug logging.
1421
1421
  */
@@ -1650,7 +1650,7 @@ export type StatsOptions = {
1650
1650
  */
1651
1651
  warningsSpace?: number;
1652
1652
  };
1653
- export type MultiStatsOptions = Omit<StatsOptions, 'children'> & {
1653
+ export type MultiStatsOptions = Omit<StatsOptions, "children"> & {
1654
1654
  children?: StatsValue | (StatsValue | undefined)[];
1655
1655
  };
1656
1656
  /**
@@ -1671,7 +1671,7 @@ export type WebpackPluginFunction = (this: WebpackCompiler, compiler: WebpackCom
1671
1671
  export type Plugin = RspackPluginInstance | RspackPluginFunction | WebpackPluginInstance | WebpackPluginFunction | Falsy;
1672
1672
  export type Plugins = Plugin[];
1673
1673
  /** Used to control how the runtime chunk is generated. */
1674
- export type OptimizationRuntimeChunk = boolean | 'single' | 'multiple' | {
1674
+ export type OptimizationRuntimeChunk = boolean | "single" | "multiple" | {
1675
1675
  name?: string | ((value: {
1676
1676
  name: string;
1677
1677
  }) => string);
@@ -1679,7 +1679,7 @@ export type OptimizationRuntimeChunk = boolean | 'single' | 'multiple' | {
1679
1679
  export type OptimizationSplitChunksNameFunction = (module: Module, chunks: Chunk[], cacheGroupKey: string) => string | undefined;
1680
1680
  type OptimizationSplitChunksName = string | false | OptimizationSplitChunksNameFunction;
1681
1681
  type OptimizationSplitChunksSizes = number | Record<string, number>;
1682
- type OptimizationSplitChunksChunks = 'initial' | 'async' | 'all' | RegExp | ((chunk: Chunk) => boolean);
1682
+ type OptimizationSplitChunksChunks = "initial" | "async" | "all" | RegExp | ((chunk: Chunk) => boolean);
1683
1683
  type SharedOptimizationSplitChunksCacheGroup = {
1684
1684
  /**
1685
1685
  * This indicates which chunks will be selected for optimization.
@@ -1796,11 +1796,11 @@ export type Optimization = {
1796
1796
  /**
1797
1797
  * Which algorithm to use when choosing module ids.
1798
1798
  */
1799
- moduleIds?: 'named' | 'natural' | 'deterministic';
1799
+ moduleIds?: "named" | "natural" | "deterministic";
1800
1800
  /**
1801
1801
  * Which algorithm to use when choosing chunk ids.
1802
1802
  */
1803
- chunkIds?: 'natural' | 'named' | 'deterministic' | 'size' | 'total-size';
1803
+ chunkIds?: "natural" | "named" | "deterministic" | "size" | "total-size";
1804
1804
  /**
1805
1805
  * Whether to minimize the bundle.
1806
1806
  * The value is `true` in production mode.
@@ -1811,7 +1811,7 @@ export type Optimization = {
1811
1811
  * Customize the minimizer.
1812
1812
  * By default, `rspack.SwcJsMinimizerRspackPlugin` and `rspack.LightningCssMinimizerRspackPlugin` are used.
1813
1813
  */
1814
- minimizer?: ('...' | Plugin)[];
1814
+ minimizer?: ("..." | Plugin)[];
1815
1815
  /**
1816
1816
  * Whether to merge chunks which contain the same modules.
1817
1817
  * Setting optimization.mergeDuplicateChunks to false will disable this optimization.
@@ -1851,7 +1851,7 @@ export type Optimization = {
1851
1851
  * The value is `true` in production mode.
1852
1852
  * The value is `false` in development mode.
1853
1853
  * */
1854
- sideEffects?: 'flag' | boolean;
1854
+ sideEffects?: "flag" | boolean;
1855
1855
  /**
1856
1856
  * After enabling, Rspack will analyze which exports the module provides, including re-exported modules.
1857
1857
  * @default true
@@ -1877,14 +1877,14 @@ export type Optimization = {
1877
1877
  * The value is `true` in production mode.
1878
1878
  * The value is `false` in development mode.
1879
1879
  * */
1880
- usedExports?: 'global' | boolean;
1880
+ usedExports?: "global" | boolean;
1881
1881
  /**
1882
1882
  * Allows to control export mangling.
1883
1883
  *
1884
1884
  * The value is `isdeterministic` in production mode.
1885
1885
  * The value is `false` in development mode.
1886
1886
  */
1887
- mangleExports?: 'size' | 'deterministic' | boolean;
1887
+ mangleExports?: "size" | "deterministic" | boolean;
1888
1888
  /**
1889
1889
  * Allows to inline exports when possible to reduce code size.
1890
1890
  *
@@ -1921,9 +1921,9 @@ export type Optimization = {
1921
1921
  * cache: false
1922
1922
  */
1923
1923
  export type ExperimentCacheOptions = boolean | {
1924
- type: 'memory';
1924
+ type: "memory";
1925
1925
  } | {
1926
- type: 'persistent';
1926
+ type: "persistent";
1927
1927
  buildDependencies?: string[];
1928
1928
  version?: string;
1929
1929
  snapshot?: {
@@ -1932,7 +1932,7 @@ export type ExperimentCacheOptions = boolean | {
1932
1932
  managedPaths?: (string | RegExp)[];
1933
1933
  };
1934
1934
  storage?: {
1935
- type: 'filesystem';
1935
+ type: "filesystem";
1936
1936
  directory?: string;
1937
1937
  };
1938
1938
  };
@@ -1955,7 +1955,7 @@ export type RspackFutureOptions = {
1955
1955
  /**
1956
1956
  * Force specific features.
1957
1957
  */
1958
- force?: boolean | ('version' | 'uniqueId')[];
1958
+ force?: boolean | ("version" | "uniqueId")[];
1959
1959
  };
1960
1960
  };
1961
1961
  /**
@@ -2067,7 +2067,7 @@ export type Incremental = {
2067
2067
  /**
2068
2068
  * Presets for incremental
2069
2069
  */
2070
- export type IncrementalPresets = boolean | 'none' | 'safe' | 'advance' | 'advance-silent';
2070
+ export type IncrementalPresets = boolean | "none" | "safe" | "advance" | "advance-silent";
2071
2071
  /**
2072
2072
  * Options for experiments.buildHttp
2073
2073
  */
@@ -2103,7 +2103,6 @@ export type Experiments = {
2103
2103
  outputModule?: boolean;
2104
2104
  /**
2105
2105
  * Enable top-level await.
2106
- * @deprecated This option is deprecated, top-level await is enabled by default.
2107
2106
  * @default true
2108
2107
  */
2109
2108
  topLevelAwait?: boolean;
@@ -2221,7 +2220,7 @@ export type WatchOptions = {
2221
2220
  * Options for devServer, it based on `webpack-dev-server@5`
2222
2221
  * */
2223
2222
  export type DevServer = DevServerOptions;
2224
- export type { Middleware as DevServerMiddleware } from './devServer';
2223
+ export type { Middleware as DevServerMiddleware } from "./devServer";
2225
2224
  /**
2226
2225
  * Ignore specific warnings.
2227
2226
  */
@@ -2261,7 +2260,7 @@ export type Performance = false | {
2261
2260
  /**
2262
2261
  * Sets the format of the hints: warnings, errors or nothing at all.
2263
2262
  */
2264
- hints?: false | 'warning' | 'error';
2263
+ hints?: false | "warning" | "error";
2265
2264
  /**
2266
2265
  * File size limit (in bytes) when exceeded, that webpack will provide performance hints.
2267
2266
  * @default 250000
@@ -1,7 +1,7 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
2
- import { RspackBuiltinPlugin } from '../builtin-plugin/base';
3
- import type { Compiler } from '../Compiler';
4
- import type { EntryRuntime, FilenameTemplate, LibraryOptions } from '../config';
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import { RspackBuiltinPlugin } from "../builtin-plugin/base";
3
+ import type { Compiler } from "../Compiler";
4
+ import type { EntryRuntime, FilenameTemplate, LibraryOptions } from "../config";
5
5
  export type ContainerPluginOptions = {
6
6
  exposes: Exposes;
7
7
  filename?: FilenameTemplate;
@@ -1,7 +1,7 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
2
- import { RspackBuiltinPlugin } from '../builtin-plugin/base';
3
- import type { Compiler } from '../Compiler';
4
- import type { ExternalsType } from '../config';
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import { RspackBuiltinPlugin } from "../builtin-plugin/base";
3
+ import type { Compiler } from "../Compiler";
4
+ import type { ExternalsType } from "../config";
5
5
  export type ContainerReferencePluginOptions = {
6
6
  remoteType: ExternalsType;
7
7
  remotes: Remotes;
@@ -1,6 +1,6 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
2
- import { RspackBuiltinPlugin } from '../builtin-plugin/base';
3
- import type { Compiler } from '../Compiler';
1
+ import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
2
+ import { RspackBuiltinPlugin } from "../builtin-plugin/base";
3
+ import type { Compiler } from "../Compiler";
4
4
  export type RemoteAliasMap = Record<string, {
5
5
  name: string;
6
6
  entry?: string;
@@ -1,11 +1,11 @@
1
- import type { Compiler } from '../Compiler';
2
- import { type ModuleFederationManifestPluginOptions } from './ModuleFederationManifestPlugin';
3
- import type { ModuleFederationPluginV1Options } from './ModuleFederationPluginV1';
4
- export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options, 'enhanced'> {
1
+ import type { Compiler } from "../Compiler";
2
+ import { type ModuleFederationManifestPluginOptions } from "./ModuleFederationManifestPlugin";
3
+ import type { ModuleFederationPluginV1Options } from "./ModuleFederationPluginV1";
4
+ export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options, "enhanced"> {
5
5
  runtimePlugins?: RuntimePlugins;
6
6
  implementation?: string;
7
- shareStrategy?: 'version-first' | 'loaded-first';
8
- manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, 'remoteAliasMap' | 'globalName' | 'name' | 'exposes' | 'shared'>;
7
+ shareStrategy?: "version-first" | "loaded-first";
8
+ manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, "remoteAliasMap" | "globalName" | "name" | "exposes" | "shared">;
9
9
  }
10
10
  export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
11
11
  export declare class ModuleFederationPlugin {
@@ -1,8 +1,8 @@
1
- import type { Compiler } from '../Compiler';
2
- import type { EntryRuntime, ExternalsType, LibraryOptions } from '../config';
3
- import { type Shared } from '../sharing/SharePlugin';
4
- import { type Exposes } from './ContainerPlugin';
5
- import { type Remotes } from './ContainerReferencePlugin';
1
+ import type { Compiler } from "../Compiler";
2
+ import type { EntryRuntime, ExternalsType, LibraryOptions } from "../config";
3
+ import { type Shared } from "../sharing/SharePlugin";
4
+ import { type Exposes } from "./ContainerPlugin";
5
+ import { type Remotes } from "./ContainerReferencePlugin";
6
6
  export interface ModuleFederationPluginV1Options {
7
7
  exposes?: Exposes;
8
8
  filename?: string;
@@ -1,4 +1,4 @@
1
- export * from './ContainerPlugin';
2
- export * from './ContainerReferencePlugin';
3
- export * from './ModuleFederationPlugin';
4
- export * from './ModuleFederationPluginV1';
1
+ export * from "./ContainerPlugin";
2
+ export * from "./ContainerReferencePlugin";
3
+ export * from "./ModuleFederationPlugin";
4
+ export * from "./ModuleFederationPluginV1";