@rspack/browser 1.7.0-beta.0 → 1.7.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 (174) 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 +25 -22
  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/browser/BrowserHttpImportEsmPlugin.d.ts +1 -1
  33. package/dist/browser/BrowserRequirePlugin.d.ts +1 -1
  34. package/dist/browser/buffer.d.ts +1 -1
  35. package/dist/browser/fs.d.ts +1 -1
  36. package/dist/browser/index.d.ts +3 -3
  37. package/dist/builtin-loader/index.d.ts +1 -1
  38. package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +1 -1
  39. package/dist/builtin-loader/swc/index.d.ts +5 -5
  40. package/dist/builtin-loader/swc/types.d.ts +10 -4
  41. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  42. package/dist/builtin-plugin/{WarnCaseSensitiveModulesPlugin.d.ts → CaseSensitivePlugin.d.ts} +1 -1
  43. package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +5 -10
  44. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
  45. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
  46. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
  47. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
  48. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
  49. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +4 -4
  50. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
  51. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +3 -3
  52. package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
  53. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +1 -1
  54. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
  55. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
  56. package/dist/builtin-plugin/ExternalsPlugin.d.ts +3 -3
  57. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
  58. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +3 -3
  59. package/dist/builtin-plugin/HttpUriPlugin.d.ts +4 -4
  60. package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
  61. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +6 -6
  62. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
  63. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +2 -2
  64. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
  65. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
  66. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
  67. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
  68. package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
  69. package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
  70. package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
  71. package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -8
  72. package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
  73. package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
  74. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
  75. package/dist/builtin-plugin/RuntimePlugin.d.ts +5 -5
  76. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
  77. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +4 -4
  78. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +5 -5
  79. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -3
  80. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
  81. package/dist/builtin-plugin/WorkerPlugin.d.ts +4 -4
  82. package/dist/builtin-plugin/base.d.ts +3 -3
  83. package/dist/builtin-plugin/css-extract/index.d.ts +7 -7
  84. package/dist/builtin-plugin/css-extract/loader.d.ts +2 -2
  85. package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
  86. package/dist/builtin-plugin/html-plugin/hooks.d.ts +4 -4
  87. package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
  88. package/dist/builtin-plugin/html-plugin/options.d.ts +6 -6
  89. package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -5
  90. package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
  91. package/dist/builtin-plugin/index.d.ts +84 -84
  92. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
  93. package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
  94. package/dist/config/adapter.d.ts +7 -7
  95. package/dist/config/adapterRuleUse.d.ts +16 -16
  96. package/dist/config/browserslistTargetHandler.d.ts +1 -1
  97. package/dist/config/defaults.d.ts +11 -2
  98. package/dist/config/devServer.d.ts +32 -32
  99. package/dist/config/index.d.ts +5 -5
  100. package/dist/config/normalization.d.ts +9 -13
  101. package/dist/config/target.d.ts +7 -7
  102. package/dist/config/types.d.ts +82 -80
  103. package/dist/container/ContainerPlugin.d.ts +4 -4
  104. package/dist/container/ContainerReferencePlugin.d.ts +4 -4
  105. package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -3
  106. package/dist/container/ModuleFederationPlugin.d.ts +6 -6
  107. package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
  108. package/dist/container/index.d.ts +4 -4
  109. package/dist/exports.d.ts +76 -72
  110. package/dist/index.d.ts +3 -3
  111. package/dist/index.mjs +2715 -2738
  112. package/dist/lib/AbstractMethodError.d.ts +1 -1
  113. package/dist/lib/Cache.d.ts +2 -2
  114. package/dist/lib/CacheFacade.d.ts +3 -3
  115. package/dist/lib/DllPlugin.d.ts +1 -1
  116. package/dist/lib/DllReferencePlugin.d.ts +5 -5
  117. package/dist/lib/EntryOptionPlugin.d.ts +2 -2
  118. package/dist/lib/EnvironmentPlugin.d.ts +1 -1
  119. package/dist/lib/HookWebpackError.d.ts +2 -2
  120. package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
  121. package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
  122. package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
  123. package/dist/lib/WebpackError.d.ts +3 -3
  124. package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
  125. package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
  126. package/dist/lib/cache/mergeEtags.d.ts +1 -1
  127. package/dist/loader-runner/ModuleError.d.ts +1 -1
  128. package/dist/loader-runner/index.d.ts +3 -3
  129. package/dist/loader-runner/loadLoader.d.ts +2 -2
  130. package/dist/loader-runner/service.d.ts +8 -8
  131. package/dist/loader-runner/utils.d.ts +3 -3
  132. package/dist/loader-runner/worker.d.ts +3 -3
  133. package/dist/logging/createConsoleLogger.d.ts +4 -4
  134. package/dist/napi-binding.d.ts +11 -4
  135. package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
  136. package/dist/node/NodeTemplatePlugin.d.ts +1 -1
  137. package/dist/node/NodeWatchFileSystem.d.ts +3 -3
  138. package/dist/node/nodeConsole.d.ts +2 -2
  139. package/dist/rslib-runtime.js +29 -0
  140. package/dist/rslib-runtime.mjs +68 -0
  141. package/dist/rspack.d.ts +15 -6
  142. package/dist/rspack.wasm32-wasi.wasm +0 -0
  143. package/dist/rspackOptionsApply.d.ts +1 -1
  144. package/dist/sharing/ConsumeSharedPlugin.d.ts +3 -3
  145. package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
  146. package/dist/sharing/SharePlugin.d.ts +1 -1
  147. package/dist/sharing/ShareRuntimePlugin.d.ts +3 -3
  148. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +15 -15
  149. package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
  150. package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
  151. package/dist/stats/StatsFactory.d.ts +5 -5
  152. package/dist/stats/StatsPrinter.d.ts +3 -3
  153. package/dist/stats/statsFactoryUtils.d.ts +5 -5
  154. package/dist/swc.d.ts +2 -2
  155. package/dist/taps/compilation.d.ts +2 -2
  156. package/dist/taps/compiler.d.ts +1 -1
  157. package/dist/taps/contextModuleFactory.d.ts +1 -1
  158. package/dist/taps/index.d.ts +6 -6
  159. package/dist/taps/javascriptModules.d.ts +1 -1
  160. package/dist/taps/normalModuleFactory.d.ts +1 -1
  161. package/dist/taps/types.d.ts +3 -3
  162. package/dist/trace/index.d.ts +4 -4
  163. package/dist/trace/traceHookPlugin.d.ts +1 -1
  164. package/dist/util/SplitChunkSize.d.ts +1 -1
  165. package/dist/util/createHash.d.ts +1 -1
  166. package/dist/util/createReadonlyMap.d.ts +1 -1
  167. package/dist/util/fs.d.ts +14 -14
  168. package/dist/util/hash/wasm-hash.d.ts +1 -1
  169. package/dist/util/identifier.d.ts +1 -1
  170. package/dist/util/index.d.ts +2 -1
  171. package/dist/util/source.d.ts +2 -2
  172. package/dist/util/validateConfig.d.ts +1 -1
  173. package/dist/wasi-worker-browser.mjs +22676 -22679
  174. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import type { AssetInfo, RawFuncUseCtx } from "../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. */
@@ -461,7 +461,13 @@ export type Output = {
461
461
  /** An optional salt to update the hash. */
462
462
  hashSalt?: HashSalt;
463
463
  /**
464
- * Create async chunks that are loaded on demand.
464
+ * Controls whether dynamically imported modules are emitted as separate async chunks or bundled into
465
+ * existing chunks.
466
+ * - `true`: Modules loaded via `import()` are split into independent async chunks. These chunks are
467
+ * emitted as separate files and are loaded on demand at runtime. This enables code splitting and keeps
468
+ * the initial bundle smaller.
469
+ * - `false`: Dynamically imported modules are bundled into existing chunks instead of being emitted as
470
+ * separate files. No additional async chunk files are generated.
465
471
  * @default true
466
472
  * */
467
473
  asyncChunks?: AsyncChunks;
@@ -524,7 +530,7 @@ export type ResolveAlias = {
524
530
  /** The replacement of [tsconfig-paths-webpack-plugin](https://www.npmjs.com/package/tsconfig-paths-webpack-plugin) in Rspack. */
525
531
  export type ResolveTsConfig = string | {
526
532
  configFile: string;
527
- references?: string[] | "auto" | undefined;
533
+ references?: string[] | 'auto' | undefined;
528
534
  };
529
535
  /** Used to configure the Rspack module resolution */
530
536
  export type ResolveOptions = {
@@ -705,7 +711,7 @@ export type RuleSetRule = {
705
711
  /** Flag the module for side effects */
706
712
  sideEffects?: boolean;
707
713
  /** Specify loader category. */
708
- enforce?: "pre" | "post";
714
+ enforce?: 'pre' | 'post';
709
715
  /** A kind of Nested Rule, an array of Rules from which only the first matching Rule is used when the parent Rule matches. */
710
716
  oneOf?: (RuleSetRule | Falsy)[];
711
717
  /** A kind of Nested Rule, an array of Rules that is also used when the parent Rule matches. */
@@ -714,7 +720,7 @@ export type RuleSetRule = {
714
720
  extractSourceMap?: boolean;
715
721
  };
716
722
  /** A list of rules. */
717
- export type RuleSetRules = ("..." | RuleSetRule | Falsy)[];
723
+ export type RuleSetRules = ('...' | RuleSetRule | Falsy)[];
718
724
  /**
719
725
  * Options object for DataUrl condition.
720
726
  * */
@@ -774,8 +780,8 @@ export type CssModuleParserOptions = {
774
780
  * */
775
781
  url?: CssParserUrl;
776
782
  };
777
- type ExportsPresence = "error" | "warn" | "auto" | false;
778
- export type JavascriptParserCommonjsExports = boolean | "skipInEsm";
783
+ type ExportsPresence = 'error' | 'warn' | 'auto' | false;
784
+ export type JavascriptParserCommonjsExports = boolean | 'skipInEsm';
779
785
  export type JavascriptParserCommonjsOption = boolean | {
780
786
  /** Controls how CommonJS export mutations are handled. */
781
787
  exports?: JavascriptParserCommonjsExports;
@@ -785,7 +791,7 @@ export type JavascriptParserOptions = {
785
791
  * Specifies global mode for dynamic import.
786
792
  * @default 'lazy'
787
793
  * */
788
- dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once";
794
+ dynamicImportMode?: 'eager' | 'lazy' | 'weak' | 'lazy-once';
789
795
  /**
790
796
  * Specifies global preload for dynamic import.
791
797
  * @default false
@@ -800,7 +806,7 @@ export type JavascriptParserOptions = {
800
806
  * Specifies global fetchPriority for dynamic import
801
807
  * @default 'auto'
802
808
  */
803
- dynamicImportFetchPriority?: "low" | "high" | "auto";
809
+ dynamicImportFetchPriority?: 'low' | 'high' | 'auto';
804
810
  /**
805
811
  * Enable or disable evaluating import.meta.
806
812
  * @default true
@@ -810,7 +816,7 @@ export type JavascriptParserOptions = {
810
816
  * Enable parsing of new URL() syntax.
811
817
  * @default true
812
818
  * */
813
- url?: "relative" | "new-url-relative" | boolean;
819
+ url?: 'relative' | 'new-url-relative' | boolean;
814
820
  /**
815
821
  * Enable warnings for full dynamic dependencies
816
822
  * @default true
@@ -844,7 +850,7 @@ export type JavascriptParserOptions = {
844
850
  /** Provide custom syntax for Worker parsing, commonly used to support Worklet */
845
851
  worker?: string[] | boolean;
846
852
  /** Override the module to strict or non-strict. */
847
- overrideStrict?: "strict" | "non-strict";
853
+ overrideStrict?: 'strict' | 'non-strict';
848
854
  requireAsExpression?: boolean;
849
855
  requireDynamic?: boolean;
850
856
  requireResolve?: boolean;
@@ -859,7 +865,7 @@ export type JavascriptParserOptions = {
859
865
  */
860
866
  commonjsMagicComments?: boolean;
861
867
  /** Whether to tolerant exportsPresence for type reexport */
862
- typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
868
+ typeReexportsPresence?: 'no-tolerant' | 'tolerant' | 'tolerant-no-check';
863
869
  /** Whether to enable JSX parsing */
864
870
  jsx?: boolean;
865
871
  /** Whether to enable defer import */
@@ -882,17 +888,17 @@ export type ParserOptionsByModuleTypeKnown = {
882
888
  /** Parser options for `css` modules. */
883
889
  css?: CssParserOptions;
884
890
  /** Parser options for `css/auto` modules. */
885
- "css/auto"?: CssAutoParserOptions;
891
+ 'css/auto'?: CssAutoParserOptions;
886
892
  /** Parser options for `css/module` modules. */
887
- "css/module"?: CssModuleParserOptions;
893
+ 'css/module'?: CssModuleParserOptions;
888
894
  /** Parser options for `javascript` modules. */
889
895
  javascript?: JavascriptParserOptions;
890
896
  /** Parser options for `javascript/auto` modules. */
891
- "javascript/auto"?: JavascriptParserOptions;
897
+ 'javascript/auto'?: JavascriptParserOptions;
892
898
  /** Parser options for `javascript/dynamic` modules. */
893
- "javascript/dynamic"?: JavascriptParserOptions;
899
+ 'javascript/dynamic'?: JavascriptParserOptions;
894
900
  /** Parser options for `javascript/esm` modules. */
895
- "javascript/esm"?: JavascriptParserOptions;
901
+ 'javascript/esm'?: JavascriptParserOptions;
896
902
  /** Parser options for `json` modules. */
897
903
  json?: JsonParserOptions;
898
904
  };
@@ -903,7 +909,7 @@ export type ParserOptionsByModuleTypeUnknown = {
903
909
  /** Configure all parsers' options in one place with module.parser. */
904
910
  export type ParserOptionsByModuleType = ParserOptionsByModuleTypeKnown | ParserOptionsByModuleTypeUnknown;
905
911
  export type AssetGeneratorDataUrlOptions = {
906
- encoding?: false | "base64";
912
+ encoding?: false | 'base64';
907
913
  mimetype?: string;
908
914
  };
909
915
  export type AssetGeneratorDataUrlFunction = (content: Buffer, context: {
@@ -928,7 +934,7 @@ export type AssetModuleOutputPath = Filename;
928
934
  * Only for modules with module type 'asset' or 'asset/resource'.
929
935
  * @default "url"
930
936
  */
931
- export type AssetModuleImportMode = "url" | "preserve";
937
+ export type AssetModuleImportMode = 'url' | 'preserve';
932
938
  /** Options for asset modules. */
933
939
  export type AssetResourceGeneratorOptions = {
934
940
  /**
@@ -956,7 +962,7 @@ export type AssetResourceGeneratorOptions = {
956
962
  };
957
963
  /** Generator options for asset modules. */
958
964
  export type AssetGeneratorOptions = AssetInlineGeneratorOptions & AssetResourceGeneratorOptions;
959
- 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';
960
966
  export type CssGeneratorExportsOnly = boolean;
961
967
  export type CssGeneratorLocalIdentName = string;
962
968
  export type CssGeneratorEsModule = boolean;
@@ -1001,15 +1007,15 @@ export type GeneratorOptionsByModuleTypeKnown = {
1001
1007
  /** Generator options for asset modules. */
1002
1008
  asset?: AssetGeneratorOptions;
1003
1009
  /** Generator options for asset/inline modules. */
1004
- "asset/inline"?: AssetInlineGeneratorOptions;
1010
+ 'asset/inline'?: AssetInlineGeneratorOptions;
1005
1011
  /** Generator options for asset/resource modules. */
1006
- "asset/resource"?: AssetResourceGeneratorOptions;
1012
+ 'asset/resource'?: AssetResourceGeneratorOptions;
1007
1013
  /** Generator options for css modules. */
1008
1014
  css?: CssGeneratorOptions;
1009
1015
  /** Generator options for css/auto modules. */
1010
- "css/auto"?: CssAutoGeneratorOptions;
1016
+ 'css/auto'?: CssAutoGeneratorOptions;
1011
1017
  /** Generator options for css/module modules. */
1012
- "css/module"?: CssModuleGeneratorOptions;
1018
+ 'css/module'?: CssModuleGeneratorOptions;
1013
1019
  /** Generator options for json modules. */
1014
1020
  json?: JsonGeneratorOptions;
1015
1021
  };
@@ -1041,7 +1047,7 @@ export type ModuleOptions = {
1041
1047
  */
1042
1048
  unsafeCache?: boolean | RegExp;
1043
1049
  };
1044
- 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}`;
1045
1051
  /** Used to configure the target environment of Rspack output and the ECMAScript version of Rspack runtime code. */
1046
1052
  export type Target = false | AllowTarget | AllowTarget[];
1047
1053
  /**
@@ -1049,7 +1055,7 @@ export type Target = false | AllowTarget | AllowTarget[];
1049
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.
1050
1056
  * @default 'var'
1051
1057
  */
1052
- 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';
1053
1059
  /**
1054
1060
  * External item object when both libraryTarget and externalsType is 'umd'
1055
1061
  */
@@ -1173,7 +1179,7 @@ export type InfrastructureLogging = {
1173
1179
  /**
1174
1180
  * Enable infrastructure logging output.
1175
1181
  */
1176
- level?: "none" | "error" | "warn" | "info" | "log" | "verbose";
1182
+ level?: 'none' | 'error' | 'warn' | 'info' | 'log' | 'verbose';
1177
1183
  /**
1178
1184
  * Stream used for logging output.
1179
1185
  */
@@ -1182,11 +1188,11 @@ export type InfrastructureLogging = {
1182
1188
  /**
1183
1189
  * Configuration used to control the behavior of the Source Map generation.
1184
1190
  */
1185
- type DevToolPosition = "inline-" | "hidden-" | "eval-" | "";
1186
- type DevToolNoSources = "nosources-" | "";
1187
- type DevToolCheap = "cheap-" | "cheap-module-" | "";
1188
- type DevToolDebugIds = "-debugids" | "";
1189
- 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}`;
1190
1196
  /**
1191
1197
  * Options for mocking Node.js globals and modules.
1192
1198
  */
@@ -1201,7 +1207,7 @@ export type NodeOptions = {
1201
1207
  * - `"node-module"`: Replace `__dirname` in CommonJS modules to `fileURLToPath(import.meta.url + "/..")` when `output.module` is enabled.
1202
1208
  * - `"eval-only"`: Equivalent to `false`.
1203
1209
  */
1204
- __dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module";
1210
+ __dirname?: boolean | 'warn-mock' | 'mock' | 'eval-only' | 'node-module';
1205
1211
  /**
1206
1212
  * Controls the behavior of `__filename`.
1207
1213
  * @description
@@ -1212,7 +1218,7 @@ export type NodeOptions = {
1212
1218
  * - `"node-module"`: Replace `__filename` in CommonJS modules to `fileURLToPath(import.meta.url)` when `output.module` is enabled.
1213
1219
  * - `"eval-only"`: Equivalent to `false`.
1214
1220
  */
1215
- __filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module";
1221
+ __filename?: boolean | 'warn-mock' | 'mock' | 'eval-only' | 'node-module';
1216
1222
  /**
1217
1223
  * Controls the behavior of `global`.
1218
1224
  * @description
@@ -1222,7 +1228,7 @@ export type NodeOptions = {
1222
1228
  * @see {@link https://nodejs.org/api/globals.html#globals_global | Node.js documentation} for the exact behavior of this object.
1223
1229
  * @default "warn"
1224
1230
  */
1225
- global?: boolean | "warn";
1231
+ global?: boolean | 'warn';
1226
1232
  };
1227
1233
  /**
1228
1234
  * Options for mocking Node.js globals and modules.
@@ -1243,7 +1249,7 @@ export type SnapshotOptions = {};
1243
1249
  * cache: false
1244
1250
  */
1245
1251
  export type CacheOptions = boolean;
1246
- 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';
1247
1253
  type ModuleFilterItemTypes = RegExp | string | ((name: string, module: any, type: any) => boolean);
1248
1254
  type ModuleFilterTypes = boolean | ModuleFilterItemTypes | ModuleFilterItemTypes[];
1249
1255
  export type StatsColorOptions = {
@@ -1301,7 +1307,7 @@ export type StatsOptions = {
1301
1307
  * Enables or disables the display of entrypoint stats or sets it to 'auto'.
1302
1308
  * @default false
1303
1309
  */
1304
- entrypoints?: boolean | "auto";
1310
+ entrypoints?: boolean | 'auto';
1305
1311
  /**
1306
1312
  * Enables or disables the display of chunk group stats.
1307
1313
  * @default true
@@ -1409,7 +1415,7 @@ export type StatsOptions = {
1409
1415
  * - `'log'`, true: Errors, warnings, info messages, log messages, groups, and clears are logged. Collapsed groups are initially collapsed.
1410
1416
  * - `'verbose'`: All log levels except debug and trace are logged. Collapsed groups are initially expanded.
1411
1417
  */
1412
- logging?: "none" | "error" | "warn" | "info" | "log" | "verbose" | boolean;
1418
+ logging?: 'none' | 'error' | 'warn' | 'info' | 'log' | 'verbose' | boolean;
1413
1419
  /**
1414
1420
  * Enables or disables debug logging, or specifies a filter for debug logging.
1415
1421
  */
@@ -1644,7 +1650,7 @@ export type StatsOptions = {
1644
1650
  */
1645
1651
  warningsSpace?: number;
1646
1652
  };
1647
- export type MultiStatsOptions = Omit<StatsOptions, "children"> & {
1653
+ export type MultiStatsOptions = Omit<StatsOptions, 'children'> & {
1648
1654
  children?: StatsValue | (StatsValue | undefined)[];
1649
1655
  };
1650
1656
  /**
@@ -1665,7 +1671,7 @@ export type WebpackPluginFunction = (this: WebpackCompiler, compiler: WebpackCom
1665
1671
  export type Plugin = RspackPluginInstance | RspackPluginFunction | WebpackPluginInstance | WebpackPluginFunction | Falsy;
1666
1672
  export type Plugins = Plugin[];
1667
1673
  /** Used to control how the runtime chunk is generated. */
1668
- export type OptimizationRuntimeChunk = boolean | "single" | "multiple" | {
1674
+ export type OptimizationRuntimeChunk = boolean | 'single' | 'multiple' | {
1669
1675
  name?: string | ((value: {
1670
1676
  name: string;
1671
1677
  }) => string);
@@ -1673,7 +1679,7 @@ export type OptimizationRuntimeChunk = boolean | "single" | "multiple" | {
1673
1679
  export type OptimizationSplitChunksNameFunction = (module: Module, chunks: Chunk[], cacheGroupKey: string) => string | undefined;
1674
1680
  type OptimizationSplitChunksName = string | false | OptimizationSplitChunksNameFunction;
1675
1681
  type OptimizationSplitChunksSizes = number | Record<string, number>;
1676
- type OptimizationSplitChunksChunks = "initial" | "async" | "all" | RegExp | ((chunk: Chunk) => boolean);
1682
+ type OptimizationSplitChunksChunks = 'initial' | 'async' | 'all' | RegExp | ((chunk: Chunk) => boolean);
1677
1683
  type SharedOptimizationSplitChunksCacheGroup = {
1678
1684
  /**
1679
1685
  * This indicates which chunks will be selected for optimization.
@@ -1790,11 +1796,11 @@ export type Optimization = {
1790
1796
  /**
1791
1797
  * Which algorithm to use when choosing module ids.
1792
1798
  */
1793
- moduleIds?: "named" | "natural" | "deterministic";
1799
+ moduleIds?: 'named' | 'natural' | 'deterministic';
1794
1800
  /**
1795
1801
  * Which algorithm to use when choosing chunk ids.
1796
1802
  */
1797
- chunkIds?: "natural" | "named" | "deterministic" | "size" | "total-size";
1803
+ chunkIds?: 'natural' | 'named' | 'deterministic' | 'size' | 'total-size';
1798
1804
  /**
1799
1805
  * Whether to minimize the bundle.
1800
1806
  * The value is `true` in production mode.
@@ -1805,7 +1811,7 @@ export type Optimization = {
1805
1811
  * Customize the minimizer.
1806
1812
  * By default, `rspack.SwcJsMinimizerRspackPlugin` and `rspack.LightningCssMinimizerRspackPlugin` are used.
1807
1813
  */
1808
- minimizer?: ("..." | Plugin)[];
1814
+ minimizer?: ('...' | Plugin)[];
1809
1815
  /**
1810
1816
  * Whether to merge chunks which contain the same modules.
1811
1817
  * Setting optimization.mergeDuplicateChunks to false will disable this optimization.
@@ -1845,7 +1851,7 @@ export type Optimization = {
1845
1851
  * The value is `true` in production mode.
1846
1852
  * The value is `false` in development mode.
1847
1853
  * */
1848
- sideEffects?: "flag" | boolean;
1854
+ sideEffects?: 'flag' | boolean;
1849
1855
  /**
1850
1856
  * After enabling, Rspack will analyze which exports the module provides, including re-exported modules.
1851
1857
  * @default true
@@ -1871,14 +1877,14 @@ export type Optimization = {
1871
1877
  * The value is `true` in production mode.
1872
1878
  * The value is `false` in development mode.
1873
1879
  * */
1874
- usedExports?: "global" | boolean;
1880
+ usedExports?: 'global' | boolean;
1875
1881
  /**
1876
1882
  * Allows to control export mangling.
1877
1883
  *
1878
1884
  * The value is `isdeterministic` in production mode.
1879
1885
  * The value is `false` in development mode.
1880
1886
  */
1881
- mangleExports?: "size" | "deterministic" | boolean;
1887
+ mangleExports?: 'size' | 'deterministic' | boolean;
1882
1888
  /**
1883
1889
  * Allows to inline exports when possible to reduce code size.
1884
1890
  *
@@ -1915,9 +1921,9 @@ export type Optimization = {
1915
1921
  * cache: false
1916
1922
  */
1917
1923
  export type ExperimentCacheOptions = boolean | {
1918
- type: "memory";
1924
+ type: 'memory';
1919
1925
  } | {
1920
- type: "persistent";
1926
+ type: 'persistent';
1921
1927
  buildDependencies?: string[];
1922
1928
  version?: string;
1923
1929
  snapshot?: {
@@ -1926,7 +1932,7 @@ export type ExperimentCacheOptions = boolean | {
1926
1932
  managedPaths?: (string | RegExp)[];
1927
1933
  };
1928
1934
  storage?: {
1929
- type: "filesystem";
1935
+ type: 'filesystem';
1930
1936
  directory?: string;
1931
1937
  };
1932
1938
  };
@@ -1949,7 +1955,7 @@ export type RspackFutureOptions = {
1949
1955
  /**
1950
1956
  * Force specific features.
1951
1957
  */
1952
- force?: boolean | ("version" | "uniqueId")[];
1958
+ force?: boolean | ('version' | 'uniqueId')[];
1953
1959
  };
1954
1960
  };
1955
1961
  /**
@@ -2061,7 +2067,7 @@ export type Incremental = {
2061
2067
  /**
2062
2068
  * Presets for incremental
2063
2069
  */
2064
- export type IncrementalPresets = boolean | "none" | "safe" | "advance" | "advance-silent";
2070
+ export type IncrementalPresets = boolean | 'none' | 'safe' | 'advance' | 'advance-silent';
2065
2071
  /**
2066
2072
  * Options for experiments.buildHttp
2067
2073
  */
@@ -2097,6 +2103,7 @@ export type Experiments = {
2097
2103
  outputModule?: boolean;
2098
2104
  /**
2099
2105
  * Enable top-level await.
2106
+ * @deprecated This option is deprecated, top-level await is enabled by default.
2100
2107
  * @default true
2101
2108
  */
2102
2109
  topLevelAwait?: boolean;
@@ -2123,11 +2130,6 @@ export type Experiments = {
2123
2130
  * Enable incremental builds.
2124
2131
  */
2125
2132
  incremental?: IncrementalPresets | Incremental;
2126
- /**
2127
- * Enable multi-threaded code splitting algorithm.
2128
- * @deprecated This option is deprecated, it has a huge regression in some edge cases where the chunk graph has lots of cycles. We'll improve the performance of build_chunk_graph in the future instead
2129
- */
2130
- parallelCodeSplitting?: boolean;
2131
2133
  /**
2132
2134
  * Enable future default options.
2133
2135
  * @default false
@@ -2219,7 +2221,7 @@ export type WatchOptions = {
2219
2221
  * Options for devServer, it based on `webpack-dev-server@5`
2220
2222
  * */
2221
2223
  export type DevServer = DevServerOptions;
2222
- export type { Middleware as DevServerMiddleware } from "./devServer";
2224
+ export type { Middleware as DevServerMiddleware } from './devServer';
2223
2225
  /**
2224
2226
  * Ignore specific warnings.
2225
2227
  */
@@ -2259,7 +2261,7 @@ export type Performance = false | {
2259
2261
  /**
2260
2262
  * Sets the format of the hints: warnings, errors or nothing at all.
2261
2263
  */
2262
- hints?: false | "warning" | "error";
2264
+ hints?: false | 'warning' | 'error';
2263
2265
  /**
2264
2266
  * File size limit (in bytes) when exceeded, that webpack will provide performance hints.
2265
2267
  * @default 250000
@@ -1,7 +1,7 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from "../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 "../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 "../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';