@depup/webpack 5.106.0-depup.0 → 5.109.0-depup.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.
- package/README.md +9 -11
- package/changes.json +16 -24
- package/hot/dev-server.js +2 -0
- package/lib/APIPlugin.js +60 -35
- package/lib/AsyncDependenciesBlock.js +3 -0
- package/lib/AutomaticPrefetchPlugin.js +6 -1
- package/lib/BannerPlugin.js +13 -5
- package/lib/Cache.js +27 -5
- package/lib/CacheFacade.js +41 -0
- package/lib/Chunk.js +71 -25
- package/lib/ChunkGraph.js +141 -9
- package/lib/ChunkGroup.js +115 -28
- package/lib/ChunkTemplate.js +9 -0
- package/lib/CircularModulesPlugin.js +190 -0
- package/lib/CleanPlugin.js +23 -26
- package/lib/CodeGenerationResults.js +19 -0
- package/lib/CompatibilityPlugin.js +54 -37
- package/lib/Compilation.js +635 -107
- package/lib/Compiler.js +93 -31
- package/lib/ConcatenationScope.js +34 -4
- package/lib/ConditionalInitFragment.js +6 -0
- package/lib/ConstPlugin.js +15 -12
- package/lib/ContextExclusionPlugin.js +3 -1
- package/lib/ContextModule.js +345 -55
- package/lib/ContextModuleFactory.js +193 -51
- package/lib/ContextReplacementPlugin.js +8 -1
- package/lib/DefinePlugin.js +498 -127
- package/lib/DependenciesBlock.js +6 -1
- package/lib/Dependency.js +159 -11
- package/lib/DependencyTemplate.js +7 -1
- package/lib/DependencyTemplates.js +4 -0
- package/lib/DotenvPlugin.js +3 -0
- package/lib/DynamicEntryPlugin.js +3 -1
- package/lib/EntryOptionPlugin.js +42 -2
- package/lib/EntryPlugin.js +4 -1
- package/lib/Entrypoint.js +5 -1
- package/lib/EnvironmentPlugin.js +3 -2
- package/lib/ErrorHelpers.js +7 -0
- package/lib/EvalDevToolModulePlugin.js +3 -1
- package/lib/EvalSourceMapDevToolPlugin.js +11 -11
- package/lib/ExportsInfo.js +399 -108
- package/lib/ExportsInfoApiPlugin.js +4 -3
- package/lib/ExternalModule.js +376 -78
- package/lib/ExternalModuleFactoryPlugin.js +75 -3
- package/lib/ExternalsPlugin.js +3 -1
- package/lib/FileSystemInfo.js +575 -149
- package/lib/FlagAllModulesAsUsedPlugin.js +3 -6
- package/lib/FlagDependencyExportsPlugin.js +82 -9
- package/lib/FlagDependencyUsagePlugin.js +92 -6
- package/lib/FlagEntryExportAsUsedPlugin.js +4 -1
- package/lib/Generator.js +24 -3
- package/lib/HotModuleReplacementPlugin.js +110 -44
- package/lib/IgnorePlugin.js +5 -2
- package/lib/IgnoreWarningsPlugin.js +2 -1
- package/lib/InitFragment.js +15 -0
- package/lib/JavascriptMetaInfoPlugin.js +9 -6
- package/lib/LazyBarrel.js +389 -0
- package/lib/LibraryTemplatePlugin.js +2 -1
- package/lib/LoaderOptionsPlugin.js +3 -1
- package/lib/LoaderTargetPlugin.js +3 -1
- package/lib/MainTemplate.js +15 -0
- package/lib/ManifestPlugin.js +9 -2
- package/lib/Module.js +121 -60
- package/lib/ModuleFactory.js +6 -1
- package/lib/ModuleFilenameHelpers.js +5 -2
- package/lib/ModuleGraph.js +69 -2
- package/lib/ModuleGraphConnection.js +9 -0
- package/lib/ModuleInfoHeaderPlugin.js +5 -0
- package/lib/ModuleNotFoundError.js +3 -83
- package/lib/ModuleProfile.js +27 -1
- package/lib/ModuleSourceTypeConstants.js +52 -19
- package/lib/ModuleTemplate.js +10 -0
- package/lib/ModuleTypeConstants.js +20 -4
- package/lib/MultiCompiler.js +59 -4
- package/lib/MultiStats.js +9 -0
- package/lib/MultiWatching.js +6 -0
- package/lib/NoEmitOnErrorsPlugin.js +1 -1
- package/lib/NodeStuffPlugin.js +78 -46
- package/lib/NormalModule.js +485 -181
- package/lib/NormalModuleFactory.js +148 -29
- package/lib/NormalModuleReplacementPlugin.js +3 -1
- package/lib/NullFactory.js +1 -0
- package/lib/OptionsApply.js +1 -0
- package/lib/Parser.js +3 -1
- package/lib/PlatformPlugin.js +2 -1
- package/lib/PrefetchPlugin.js +4 -1
- package/lib/ProgressPlugin.js +351 -161
- package/lib/ProvidePlugin.js +6 -3
- package/lib/RawModule.js +32 -16
- package/lib/RecordIdsPlugin.js +9 -0
- package/lib/RequestShortener.js +8 -0
- package/lib/ResolverFactory.js +5 -0
- package/lib/RuntimeGlobals.js +58 -5
- package/lib/RuntimeModule.js +22 -7
- package/lib/RuntimePlugin.js +104 -26
- package/lib/RuntimeTemplate.js +616 -37
- package/lib/SelfModuleFactory.js +3 -0
- package/lib/SourceMapDevToolModuleOptionsPlugin.js +2 -0
- package/lib/SourceMapDevToolPlugin.js +341 -63
- package/lib/Stats.js +6 -0
- package/lib/Template.js +29 -3
- package/lib/TemplatedPathPlugin.js +505 -138
- package/lib/UseStrictPlugin.js +3 -2
- package/lib/WarnCaseSensitiveModulesPlugin.js +72 -3
- package/lib/WarnDeprecatedOptionPlugin.js +6 -2
- package/lib/WarnNoModeSetPlugin.js +18 -2
- package/lib/WatchIgnorePlugin.js +5 -1
- package/lib/Watching.js +25 -3
- package/lib/WebpackError.js +3 -74
- package/lib/WebpackIsIncludedPlugin.js +4 -2
- package/lib/WebpackOptionsApply.js +88 -25
- package/lib/WebpackOptionsDefaulter.js +1 -0
- package/lib/asset/AssetBytesGenerator.js +28 -10
- package/lib/asset/AssetBytesParser.js +1 -0
- package/lib/asset/AssetGenerator.js +199 -60
- package/lib/asset/AssetModule.js +47 -0
- package/lib/asset/AssetModulesPlugin.js +115 -24
- package/lib/asset/AssetParser.js +4 -2
- package/lib/asset/AssetSourceGenerator.js +26 -8
- package/lib/asset/AssetSourceParser.js +1 -0
- package/lib/asset/RawDataUrlModule.js +23 -13
- package/lib/asset/WebManifestGenerator.js +164 -0
- package/lib/asset/WebManifestParser.js +130 -0
- package/lib/async-modules/AsyncModuleHelpers.js +1 -0
- package/lib/async-modules/AwaitDependenciesInitFragment.js +18 -4
- package/lib/async-modules/InferAsyncModulesPlugin.js +1 -1
- package/lib/async-modules/isGeneratorLowered.js +26 -0
- package/lib/buildChunkGraph.js +107 -15
- package/lib/bun/BunTargetPlugin.js +42 -0
- package/lib/cache/AddBuildDependenciesPlugin.js +3 -1
- package/lib/cache/AddManagedPathsPlugin.js +5 -1
- package/lib/cache/IdleFileCachePlugin.js +6 -1
- package/lib/cache/MemoryCachePlugin.js +1 -1
- package/lib/cache/MemoryWithGcCachePlugin.js +4 -1
- package/lib/cache/PackFileCacheStrategy.js +43 -7
- package/lib/cache/ResolverCachePlugin.js +12 -1
- package/lib/cache/getLazyHashedEtag.js +13 -2
- package/lib/cache/mergeEtags.js +4 -0
- package/lib/cli.js +142 -20
- package/lib/config/browserslistTargetHandler.js +141 -0
- package/lib/config/defaults.js +591 -41
- package/lib/config/defineConfig.js +31 -0
- package/lib/config/normalization.js +46 -1
- package/lib/config/target.js +200 -2
- package/lib/container/ContainerEntryDependency.js +2 -0
- package/lib/container/ContainerEntryModule.js +27 -14
- package/lib/container/ContainerEntryModuleFactory.js +1 -0
- package/lib/container/ContainerExposedDependency.js +6 -2
- package/lib/container/ContainerPlugin.js +2 -1
- package/lib/container/ContainerReferencePlugin.js +3 -2
- package/lib/container/FallbackDependency.js +9 -7
- package/lib/container/FallbackItemDependency.js +1 -0
- package/lib/container/FallbackModule.js +22 -9
- package/lib/container/FallbackModuleFactory.js +1 -0
- package/lib/container/ModuleFederationPlugin.js +12 -26
- package/lib/container/RemoteModule.js +33 -10
- package/lib/container/RemoteRuntimeModule.js +15 -12
- package/lib/container/RemoteToExternalDependency.js +1 -0
- package/lib/container/options.js +7 -0
- package/lib/css/CssGenerator.js +534 -272
- package/lib/css/CssInjectStyleRuntimeModule.js +86 -70
- package/lib/css/CssLoadingRuntimeModule.js +156 -77
- package/lib/{CssModule.js → css/CssModule.js} +72 -37
- package/lib/css/CssModulesPlugin.js +356 -204
- package/lib/css/CssParser.js +3452 -1950
- package/lib/css/syntax.js +4058 -0
- package/lib/debug/ProfilingPlugin.js +33 -2
- package/lib/deno/DenoTargetPlugin.js +41 -0
- package/lib/dependencies/AMDDefineDependency.js +29 -17
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +19 -6
- package/lib/dependencies/AMDPlugin.js +6 -3
- package/lib/dependencies/AMDRequireArrayDependency.js +13 -11
- package/lib/dependencies/AMDRequireContextDependency.js +10 -11
- package/lib/dependencies/AMDRequireDependenciesBlock.js +1 -0
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +28 -14
- package/lib/dependencies/AMDRequireDependency.js +28 -20
- package/lib/dependencies/AMDRequireItemDependency.js +1 -0
- package/lib/dependencies/AMDRuntimeModules.js +3 -0
- package/lib/dependencies/CachedConstDependency.js +9 -1
- package/lib/dependencies/CommonJsDependencyHelpers.js +104 -0
- package/lib/dependencies/CommonJsExportRequireDependency.js +138 -38
- package/lib/dependencies/CommonJsExportsDependency.js +74 -20
- package/lib/dependencies/CommonJsExportsParserPlugin.js +246 -15
- package/lib/dependencies/CommonJsFullRequireDependency.js +62 -27
- package/lib/dependencies/CommonJsImportsParserPlugin.js +187 -24
- package/lib/dependencies/CommonJsPlugin.js +7 -4
- package/lib/dependencies/CommonJsRequireContextDependency.js +13 -13
- package/lib/dependencies/CommonJsRequireDependency.js +135 -13
- package/lib/dependencies/CommonJsSelfReferenceDependency.js +60 -16
- package/lib/dependencies/ConstDependency.js +22 -12
- package/lib/dependencies/ContextDependency.js +13 -2
- package/lib/dependencies/ContextDependencyHelpers.js +7 -4
- package/lib/dependencies/ContextDependencyTemplateAsId.js +2 -1
- package/lib/dependencies/ContextDependencyTemplateAsRequireCall.js +1 -0
- package/lib/dependencies/ContextElementDependency.js +27 -14
- package/lib/dependencies/CreateRequireParserPlugin.js +14 -7
- package/lib/dependencies/CreateScriptUrlDependency.js +9 -7
- package/lib/dependencies/CriticalDependencyWarning.js +3 -1
- package/lib/dependencies/CssIcssExportDependency.js +682 -368
- package/lib/dependencies/CssIcssImportDependency.js +62 -17
- package/lib/dependencies/CssIcssSymbolDependency.js +36 -17
- package/lib/dependencies/CssImportDependency.js +37 -1
- package/lib/dependencies/CssUrlDependency.js +87 -14
- package/lib/dependencies/DelegatedSourceDependency.js +1 -0
- package/lib/dependencies/DllEntryDependency.js +12 -13
- package/lib/dependencies/DynamicExports.js +5 -0
- package/lib/dependencies/EntryDependency.js +1 -0
- package/lib/dependencies/ExportBindingInitFragment.js +164 -0
- package/lib/dependencies/ExportsInfoDependency.js +18 -12
- package/lib/dependencies/ExternalModuleDependency.js +13 -5
- package/lib/dependencies/ExternalModuleInitFragment.js +10 -5
- package/lib/dependencies/ExternalModuleInitFragmentDependency.js +19 -12
- package/lib/dependencies/HarmonyAcceptDependency.js +24 -26
- package/lib/dependencies/HarmonyAcceptImportDependency.js +2 -0
- package/lib/dependencies/HarmonyCompatibilityDependency.js +33 -14
- package/lib/dependencies/HarmonyDetectionParserPlugin.js +108 -30
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +32 -2
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +70 -33
- package/lib/dependencies/HarmonyExportExpressionDependency.js +140 -46
- package/lib/dependencies/HarmonyExportHeaderDependency.js +11 -9
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +253 -37
- package/lib/dependencies/HarmonyExportInitFragment.js +28 -20
- package/lib/dependencies/HarmonyExportSpecifierDependency.js +88 -18
- package/lib/dependencies/HarmonyExports.js +6 -1
- package/lib/dependencies/HarmonyImportDependency.js +59 -3
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +139 -146
- package/lib/dependencies/HarmonyImportGuard.js +426 -0
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +22 -1
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +136 -17
- package/lib/{HarmonyLinkingError.js → dependencies/HarmonyLinkingError.js} +6 -3
- package/lib/dependencies/HarmonyModulesPlugin.js +11 -1
- package/lib/dependencies/HarmonyTopLevelThisParserPlugin.js +2 -1
- package/lib/dependencies/HtmlEntryDependency.js +1295 -0
- package/lib/dependencies/HtmlInlineHtmlDependency.js +107 -0
- package/lib/dependencies/HtmlInlineScriptDependency.js +126 -0
- package/lib/dependencies/HtmlInlineStyleDependency.js +152 -0
- package/lib/dependencies/HtmlSourceDependency.js +172 -0
- package/lib/dependencies/ImportContextDependency.js +9 -9
- package/lib/dependencies/ImportDependency.js +92 -3
- package/lib/dependencies/ImportEagerDependency.js +2 -0
- package/lib/dependencies/ImportMetaContextDependency.js +1 -0
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +35 -19
- package/lib/dependencies/ImportMetaContextPlugin.js +40 -8
- package/lib/dependencies/ImportMetaGlobDependency.js +81 -0
- package/lib/dependencies/ImportMetaGlobDependencyParserPlugin.js +78 -0
- package/lib/dependencies/ImportMetaGlobHelpers.js +660 -0
- package/lib/dependencies/ImportMetaHotAcceptDependency.js +2 -0
- package/lib/dependencies/ImportMetaHotDeclineDependency.js +2 -0
- package/lib/dependencies/ImportMetaPlugin.js +595 -209
- package/lib/dependencies/ImportMetaResolveDependency.js +90 -0
- package/lib/dependencies/ImportParserPlugin.js +114 -27
- package/lib/dependencies/ImportPhase.js +17 -11
- package/lib/dependencies/ImportPlugin.js +2 -1
- package/lib/dependencies/ImportWeakDependency.js +3 -0
- package/lib/dependencies/JsonExportsDependency.js +15 -10
- package/lib/dependencies/LoaderDependency.js +2 -0
- package/lib/dependencies/LoaderImportDependency.js +3 -0
- package/lib/dependencies/LoaderPlugin.js +9 -2
- package/lib/dependencies/LocalModule.js +15 -12
- package/lib/dependencies/LocalModuleDependency.js +15 -13
- package/lib/dependencies/LocalModulesHelpers.js +3 -0
- package/lib/dependencies/ModuleDecoratorDependency.js +16 -10
- package/lib/dependencies/ModuleDependency.js +14 -0
- package/lib/dependencies/ModuleDependencyTemplateAsId.js +1 -0
- package/lib/dependencies/ModuleDependencyTemplateAsRequireId.js +1 -0
- package/lib/dependencies/ModuleHotAcceptDependency.js +2 -0
- package/lib/dependencies/ModuleHotDeclineDependency.js +2 -0
- package/lib/dependencies/ModuleInitFragmentDependency.js +19 -11
- package/lib/dependencies/NullDependency.js +2 -0
- package/lib/dependencies/PrefetchDependency.js +1 -0
- package/lib/dependencies/ProvidedDependency.js +36 -27
- package/lib/dependencies/PureExpressionDependency.js +14 -10
- package/lib/dependencies/RequireContextDependency.js +1 -0
- package/lib/dependencies/RequireContextDependencyParserPlugin.js +2 -1
- package/lib/dependencies/RequireContextPlugin.js +2 -1
- package/lib/dependencies/RequireEnsureDependenciesBlock.js +1 -0
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +4 -6
- package/lib/dependencies/RequireEnsureDependency.js +16 -13
- package/lib/dependencies/RequireEnsureItemDependency.js +1 -0
- package/lib/dependencies/RequireEnsurePlugin.js +2 -1
- package/lib/dependencies/RequireHeaderDependency.js +7 -4
- package/lib/dependencies/RequireIncludeDependency.js +2 -0
- package/lib/dependencies/RequireIncludeDependencyParserPlugin.js +11 -12
- package/lib/dependencies/RequireIncludePlugin.js +2 -1
- package/lib/{RequireJsStuffPlugin.js → dependencies/RequireJsStuffPlugin.js} +9 -8
- package/lib/dependencies/RequireResolveContextDependency.js +10 -11
- package/lib/dependencies/RequireResolveDependency.js +2 -0
- package/lib/dependencies/RequireResolveHeaderDependency.js +8 -5
- package/lib/dependencies/RuntimeRequirementsDependency.js +11 -8
- package/lib/dependencies/StaticExportsDependency.js +13 -10
- package/lib/dependencies/SystemPlugin.js +9 -6
- package/lib/dependencies/SystemRuntimeModule.js +1 -0
- package/lib/dependencies/TopLevelAwaitDependency.js +93 -0
- package/lib/dependencies/URLContextDependency.js +8 -7
- package/lib/dependencies/URLDependency.js +157 -33
- package/lib/dependencies/URLPlugin.js +2 -0
- package/lib/dependencies/UnsupportedDependency.js +12 -13
- package/lib/dependencies/WebAssemblyExportImportedDependency.js +15 -16
- package/lib/dependencies/WebAssemblyImportDependency.js +19 -18
- package/lib/dependencies/WebpackIsIncludedDependency.js +3 -0
- package/lib/dependencies/{WorkerPlugin.js → WorkerAndWorkletPlugin.js} +364 -114
- package/lib/dependencies/WorkerDependency.js +111 -27
- package/lib/dependencies/WorkletDependency.js +278 -0
- package/lib/dependencies/getFunctionExpression.js +1 -0
- package/lib/dependencies/processExportInfo.js +14 -11
- package/lib/{DelegatedModule.js → dll/DelegatedModule.js} +71 -44
- package/lib/{DelegatedModuleFactoryPlugin.js → dll/DelegatedModuleFactoryPlugin.js} +27 -4
- package/lib/{DelegatedPlugin.js → dll/DelegatedPlugin.js} +5 -3
- package/lib/{DllEntryPlugin.js → dll/DllEntryPlugin.js} +9 -5
- package/lib/{DllModule.js → dll/DllModule.js} +36 -24
- package/lib/{DllModuleFactory.js → dll/DllModuleFactory.js} +5 -4
- package/lib/{DllPlugin.js → dll/DllPlugin.js} +24 -6
- package/lib/{DllReferencePlugin.js → dll/DllReferencePlugin.js} +26 -18
- package/lib/{LibManifestPlugin.js → dll/LibManifestPlugin.js} +14 -10
- package/lib/electron/ElectronTargetPlugin.js +24 -5
- package/lib/{AbstractMethodError.js → errors/AbstractMethodError.js} +10 -1
- package/lib/{AsyncDependencyToInitialChunkError.js → errors/AsyncDependencyToInitialChunkError.js} +8 -3
- package/lib/errors/BuildCycleError.js +1 -1
- package/lib/{ChunkRenderError.js → errors/ChunkRenderError.js} +1 -1
- package/lib/{CodeGenerationError.js → errors/CodeGenerationError.js} +1 -1
- package/lib/{CommentCompilationWarning.js → errors/CommentCompilationWarning.js} +9 -3
- package/lib/{ConcurrentCompilationError.js → errors/ConcurrentCompilationError.js} +5 -2
- package/lib/{EnvironmentNotSupportAsyncWarning.js → errors/EnvironmentNotSupportAsyncWarning.js} +5 -5
- package/lib/{HookWebpackError.js → errors/HookWebpackError.js} +20 -16
- package/lib/{IgnoreErrorModuleFactory.js → errors/IgnoreErrorModuleFactory.js} +7 -4
- package/lib/{InvalidDependenciesModuleWarning.js → errors/InvalidDependenciesModuleWarning.js} +6 -3
- package/lib/errors/JSONParseError.js +115 -0
- package/lib/errors/LoaderLoadingError.js +20 -0
- package/lib/{ModuleBuildError.js → errors/ModuleBuildError.js} +22 -16
- package/lib/{ModuleDependencyError.js → errors/ModuleDependencyError.js} +10 -3
- package/lib/{ModuleDependencyWarning.js → errors/ModuleDependencyWarning.js} +13 -5
- package/lib/{ModuleError.js → errors/ModuleError.js} +10 -14
- package/lib/{ModuleHashingError.js → errors/ModuleHashingError.js} +5 -1
- package/lib/errors/ModuleNotFoundError.js +94 -0
- package/lib/errors/ModuleParseError.js +141 -0
- package/lib/{ModuleRestoreError.js → errors/ModuleRestoreError.js} +4 -1
- package/lib/{ModuleStoreError.js → errors/ModuleStoreError.js} +5 -1
- package/lib/{ModuleWarning.js → errors/ModuleWarning.js} +13 -14
- package/lib/{NodeStuffInWebError.js → errors/NodeStuffInWebError.js} +7 -5
- package/lib/errors/NonErrorEmittedError.js +30 -0
- package/lib/{UnhandledSchemeError.js → errors/UnhandledSchemeError.js} +9 -2
- package/lib/{UnsupportedFeatureWarning.js → errors/UnsupportedFeatureWarning.js} +4 -3
- package/lib/errors/WebpackError.js +84 -0
- package/lib/esm/ExportWebpackRequireRuntimeModule.js +2 -0
- package/lib/esm/ModuleChunkFormatPlugin.js +52 -15
- package/lib/esm/ModuleChunkLoadingPlugin.js +11 -3
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +71 -49
- package/lib/hmr/HotModuleReplacement.runtime.js +175 -30
- package/lib/hmr/HotModuleReplacementRuntimeModule.js +8 -0
- package/lib/hmr/JavascriptHotModuleReplacement.runtime.js +173 -26
- package/lib/hmr/JavascriptHotModuleReplacementHelper.js +1 -0
- package/lib/hmr/LazyCompilationPlugin.js +154 -7
- package/lib/hmr/lazyCompilationBackend.js +34 -8
- package/lib/html/HtmlGenerator.js +1470 -0
- package/lib/html/HtmlModule.js +41 -0
- package/lib/html/HtmlModulesPlugin.js +1111 -0
- package/lib/html/HtmlParser.js +1970 -0
- package/lib/html/favicon.svg +1 -0
- package/lib/html/syntax.js +9020 -0
- package/lib/ids/ChunkModuleIdRangePlugin.js +3 -1
- package/lib/ids/DeterministicChunkIdsPlugin.js +3 -1
- package/lib/ids/DeterministicModuleIdsPlugin.js +3 -1
- package/lib/ids/HashedModuleIdsPlugin.js +2 -1
- package/lib/ids/IdHelpers.js +25 -2
- package/lib/ids/NamedChunkIdsPlugin.js +3 -1
- package/lib/ids/NamedModuleIdsPlugin.js +3 -1
- package/lib/ids/NaturalChunkIdsPlugin.js +1 -1
- package/lib/ids/NaturalModuleIdsPlugin.js +1 -1
- package/lib/ids/OccurrenceChunkIdsPlugin.js +2 -1
- package/lib/ids/OccurrenceModuleIdsPlugin.js +4 -1
- package/lib/ids/SyncModuleIdsPlugin.js +3 -1
- package/lib/index.js +66 -15
- package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +5 -6
- package/lib/javascript/BasicEvaluatedExpression.js +370 -49
- package/lib/javascript/ChunkFormatHelpers.js +2 -1
- package/lib/javascript/ChunkHelpers.js +1 -0
- package/lib/javascript/CommonJsChunkFormatPlugin.js +1 -1
- package/lib/javascript/EnableChunkLoadingPlugin.js +6 -1
- package/lib/javascript/JavascriptGenerator.js +213 -51
- package/lib/javascript/JavascriptModule.js +54 -0
- package/lib/javascript/JavascriptModulesPlugin.js +579 -183
- package/lib/javascript/JavascriptParser.js +1289 -462
- package/lib/javascript/JavascriptParserHelpers.js +10 -7
- package/lib/javascript/StartupHelpers.js +5 -0
- package/lib/javascript/syntax.js +4380 -0
- package/lib/json/JsonData.js +5 -0
- package/lib/json/JsonGenerator.js +21 -0
- package/lib/json/JsonModule.js +40 -0
- package/lib/json/JsonModulesPlugin.js +8 -1
- package/lib/json/JsonParser.js +18 -27
- package/lib/library/AbstractLibraryPlugin.js +17 -2
- package/lib/library/AmdLibraryPlugin.js +8 -0
- package/lib/library/AssignLibraryPlugin.js +21 -3
- package/lib/library/EnableLibraryPlugin.js +8 -2
- package/lib/library/ExportPropertyLibraryPlugin.js +10 -0
- package/lib/{FalseIIFEUmdWarning.js → library/FalseIIFEUmdWarning.js} +2 -1
- package/lib/library/JsonpLibraryPlugin.js +8 -0
- package/lib/library/ModuleLibraryPlugin.js +154 -7
- package/lib/library/SystemLibraryPlugin.js +11 -3
- package/lib/library/UmdLibraryPlugin.js +16 -0
- package/lib/loaders/LoaderRunner.js +714 -0
- package/lib/loaders/loadLoader.js +100 -0
- package/lib/logging/Logger.js +17 -0
- package/lib/logging/createConsoleLogger.js +7 -0
- package/lib/logging/runtime.js +2 -0
- package/lib/logging/truncateArgs.js +2 -0
- package/lib/node/CommonJsChunkLoadingPlugin.js +5 -1
- package/lib/node/NodeEnvironmentPlugin.js +7 -3
- package/lib/node/NodeSourcePlugin.js +1 -1
- package/lib/node/NodeTargetPlugin.js +4 -63
- package/lib/node/NodeTemplatePlugin.js +3 -1
- package/lib/node/NodeWatchFileSystem.js +40 -22
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +13 -9
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +23 -1
- package/lib/node/ReadFileCompileWasmPlugin.js +18 -1
- package/lib/node/RequireChunkLoadingRuntimeModule.js +21 -16
- package/lib/node/nodeBuiltins.js +80 -0
- package/lib/node/nodeConsole.js +116 -64
- package/lib/optimize/AggressiveMergingPlugin.js +3 -1
- package/lib/optimize/AggressiveSplittingPlugin.js +6 -1
- package/lib/optimize/ConcatenatedModule.js +585 -116
- package/lib/optimize/ConstExportsPlugin.js +211 -0
- package/lib/optimize/EnsureChunkConditionsPlugin.js +2 -1
- package/lib/optimize/FlagIncludedChunksPlugin.js +15 -4
- package/lib/optimize/InlineExports.js +178 -0
- package/lib/optimize/InnerGraph.js +374 -262
- package/lib/optimize/InnerGraphPlugin.js +246 -117
- package/lib/optimize/LimitChunkCountPlugin.js +9 -0
- package/lib/optimize/MangleExportsPlugin.js +5 -1
- package/lib/optimize/MergeDuplicateChunksPlugin.js +2 -0
- package/lib/optimize/MinChunkSizePlugin.js +2 -1
- package/lib/optimize/MinMaxSizeWarning.js +5 -4
- package/lib/optimize/ModuleConcatenationPlugin.js +159 -34
- package/lib/optimize/RealContentHashPlugin.js +125 -50
- package/lib/optimize/RemoveEmptyChunksPlugin.js +2 -1
- package/lib/optimize/RemoveParentModulesPlugin.js +3 -1
- package/lib/optimize/RuntimeChunkPlugin.js +2 -1
- package/lib/optimize/SideEffectsFlagPlugin.js +381 -55
- package/lib/optimize/SplitChunksPlugin.js +54 -6
- package/lib/performance/AssetsOverSizeLimitWarning.js +3 -2
- package/lib/performance/EntrypointsOverSizeLimitWarning.js +3 -2
- package/lib/performance/NoAsyncChunksWarning.js +5 -3
- package/lib/performance/SizeLimitsPlugin.js +8 -2
- package/lib/prefetch/ChunkPrefetchFunctionRuntimeModule.js +1 -0
- package/lib/prefetch/ChunkPrefetchPreloadPlugin.js +21 -0
- package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +1 -0
- package/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +5 -1
- package/lib/prefetch/ChunkPreloadTriggerRuntimeModule.js +25 -13
- package/lib/prefetch/ResourceHintPlugin.js +663 -0
- package/lib/prefetch/ResourceHintRuntimeModule.js +149 -0
- package/lib/prefetch/StartupAssetHintRuntimeModule.js +210 -0
- package/lib/prefetch/parseResourceHintOptions.js +103 -0
- package/lib/rules/BasicEffectRulePlugin.js +3 -0
- package/lib/rules/BasicMatcherRulePlugin.js +3 -0
- package/lib/rules/ObjectMatcherRulePlugin.js +3 -0
- package/lib/rules/RuleSetCompiler.js +132 -0
- package/lib/rules/UseEffectRulePlugin.js +10 -3
- package/lib/runtime/AsyncModuleGeneratorRuntimeModule.js +56 -0
- package/lib/runtime/AsyncModuleRuntimeModule.js +52 -33
- package/lib/runtime/AutoPublicPathRuntimeModule.js +22 -9
- package/lib/runtime/BaseUriRuntimeModule.js +1 -0
- package/lib/runtime/ChunkNameRuntimeModule.js +1 -0
- package/lib/runtime/CommonJsWrapRuntimeModule.js +37 -0
- package/lib/runtime/CompatGetDefaultExportRuntimeModule.js +2 -1
- package/lib/runtime/CompatRuntimeModule.js +2 -0
- package/lib/runtime/CreateFakeNamespaceObjectRuntimeModule.js +7 -4
- package/lib/runtime/CreateScriptRuntimeModule.js +1 -0
- package/lib/runtime/CreateScriptUrlRuntimeModule.js +1 -0
- package/lib/runtime/DefinePropertyGettersRuntimeModule.js +34 -4
- package/lib/runtime/EnsureChunkRuntimeModule.js +1 -0
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +88 -8
- package/lib/runtime/GetFullHashRuntimeModule.js +1 -0
- package/lib/runtime/GetMainFilenameRuntimeModule.js +1 -0
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +2 -1
- package/lib/runtime/GetWorkletBootstrapRuntimeModule.js +59 -0
- package/lib/runtime/GlobalRuntimeModule.js +1 -0
- package/lib/runtime/HasOwnPropertyRuntimeModule.js +2 -1
- package/lib/runtime/HelperRuntimeModule.js +5 -0
- package/lib/runtime/LoadScriptRuntimeModule.js +28 -37
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +354 -37
- package/lib/runtime/MakeNamespaceObjectRuntimeModule.js +2 -1
- package/lib/runtime/NonceRuntimeModule.js +1 -0
- package/lib/runtime/OnChunksLoadedRuntimeModule.js +5 -4
- package/lib/runtime/PublicPathRuntimeModule.js +1 -0
- package/lib/runtime/RelativeUrlRuntimeModule.js +4 -2
- package/lib/runtime/RuntimeIdRuntimeModule.js +1 -0
- package/lib/runtime/SetAnonymousDefaultNameRuntimeModule.js +38 -0
- package/lib/runtime/StartupChunkDependenciesPlugin.js +13 -1
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +2 -1
- package/lib/runtime/StartupEntrypointRuntimeModule.js +5 -3
- package/lib/runtime/SystemContextRuntimeModule.js +1 -0
- package/lib/runtime/ToBinaryRuntimeModule.js +1 -0
- package/lib/runtime/WorkerRuntimeModule.js +33 -0
- package/lib/schemes/DataUriPlugin.js +14 -2
- package/lib/schemes/FileUriPlugin.js +1 -1
- package/lib/schemes/HttpUriPlugin.js +86 -4
- package/lib/schemes/VirtualUrlPlugin.js +8 -4
- package/lib/serialization/AggregateErrorSerializer.js +9 -6
- package/lib/serialization/ArraySerializer.js +6 -8
- package/lib/serialization/BinaryMiddleware.js +552 -463
- package/lib/serialization/DateObjectSerializer.js +4 -2
- package/lib/serialization/ErrorObjectSerializer.js +10 -6
- package/lib/serialization/FileMiddleware.js +50 -3
- package/lib/serialization/MapObjectSerializer.js +7 -9
- package/lib/serialization/NullPrototypeObjectSerializer.js +9 -9
- package/lib/serialization/ObjectMiddleware.js +73 -13
- package/lib/serialization/PlainObjectSerializer.js +16 -8
- package/lib/serialization/RegExpObjectSerializer.js +4 -2
- package/lib/serialization/Serializer.js +6 -0
- package/lib/serialization/SerializerMiddleware.js +14 -2
- package/lib/serialization/SetObjectSerializer.js +6 -8
- package/lib/serialization/SingleItemMiddleware.js +3 -0
- package/lib/sharing/ConsumeSharedFallbackDependency.js +1 -0
- package/lib/sharing/ConsumeSharedModule.js +21 -7
- package/lib/sharing/ConsumeSharedPlugin.js +11 -11
- package/lib/sharing/ConsumeSharedRuntimeModule.js +55 -45
- package/lib/sharing/ProvideForSharedDependency.js +1 -0
- package/lib/sharing/ProvideSharedDependency.js +34 -15
- package/lib/sharing/ProvideSharedModule.js +42 -12
- package/lib/sharing/ProvideSharedModuleFactory.js +1 -0
- package/lib/sharing/ProvideSharedPlugin.js +13 -8
- package/lib/sharing/SharePlugin.js +5 -1
- package/lib/sharing/ShareRuntimeModule.js +19 -16
- package/lib/sharing/resolveMatchedConfigs.js +6 -2
- package/lib/sharing/utils.js +9 -1
- package/lib/stats/DefaultStatsFactoryPlugin.js +94 -12
- package/lib/stats/DefaultStatsPresetPlugin.js +14 -2
- package/lib/stats/DefaultStatsPrinterPlugin.js +64 -18
- package/lib/stats/StatsFactory.js +39 -18
- package/lib/stats/StatsPrinter.js +16 -2
- package/lib/typescript/TypeScriptPlugin.js +210 -0
- package/lib/url/URLParserPlugin.js +111 -23
- package/lib/util/ArrayHelpers.js +1 -0
- package/lib/util/ArrayQueue.js +10 -5
- package/lib/util/AsyncQueue.js +154 -74
- package/lib/util/Hash.js +2 -2
- package/lib/util/IterableHelpers.js +3 -0
- package/lib/util/LazyBucketSortedSet.js +26 -0
- package/lib/util/LazySet.js +45 -4
- package/lib/util/LocConverter.js +64 -0
- package/lib/util/ParallelismFactorCalculator.js +1 -0
- package/lib/util/Queue.js +6 -3
- package/lib/util/Semaphore.js +15 -1
- package/lib/util/SetHelpers.js +4 -1
- package/lib/util/SortableSet.js +7 -1
- package/lib/util/SourceProcessor.js +119 -0
- package/lib/util/StackedCacheMap.js +20 -3
- package/lib/util/StackedMap.js +162 -43
- package/lib/util/StringXor.js +1 -1
- package/lib/util/TupleQueue.js +7 -3
- package/lib/util/TupleSet.js +14 -0
- package/lib/util/URLAbsoluteSpecifier.js +1 -0
- package/lib/util/WeakTupleMap.js +60 -1
- package/lib/util/binarySearchBounds.js +3 -2
- package/lib/util/chainedImports.js +3 -3
- package/lib/util/cleverMerge.js +19 -2
- package/lib/util/comparators.js +35 -4
- package/lib/util/compileBooleanMatcher.js +9 -0
- package/lib/util/concatenate.js +80 -24
- package/lib/util/conventions.js +46 -1
- package/lib/util/createHash.js +0 -1
- package/lib/util/createHooksRegistry.js +43 -0
- package/lib/util/createMappings.js +118 -0
- package/lib/util/dataURL.js +3 -2
- package/lib/util/deprecation.js +19 -0
- package/lib/util/deterministicGrouping.js +46 -17
- package/lib/util/extractSourceMap.js +2 -1
- package/lib/util/extractUrlAndGlobal.js +1 -0
- package/lib/util/findGraphRoots.js +7 -0
- package/lib/{formatLocation.js → util/formatLocation.js} +4 -2
- package/lib/{SizeFormatHelpers.js → util/formatSize.js} +10 -3
- package/lib/util/fs.js +87 -14
- package/lib/util/generateDebugId.js +1 -0
- package/lib/util/globUtils.js +710 -0
- package/lib/util/hash/BatchedHash.js +1 -0
- package/lib/util/hash/BulkUpdateHash.js +1 -0
- package/lib/util/hash/DebugHash.js +1 -0
- package/lib/util/hash/hash-digest.js +32 -15
- package/lib/util/hash/md4.js +1 -1
- package/lib/util/hash/wasm-hash.js +5 -0
- package/lib/util/hash/xxhash64.js +1 -1
- package/lib/util/identifier.js +97 -6
- package/lib/util/implicitTypeLoaderFallback.js +62 -0
- package/lib/util/internalSerializables.js +102 -60
- package/lib/util/magicComment.js +149 -7
- package/lib/util/makeSerializable.js +7 -0
- package/lib/util/memoize.js +2 -0
- package/lib/util/mimeTypes.js +176 -0
- package/lib/util/nonNumericOnlyHash.js +31 -1
- package/lib/util/numberHash.js +2 -2
- package/lib/util/parseJson.js +41 -0
- package/lib/util/processAsyncTree.js +8 -0
- package/lib/util/property.js +9 -2
- package/lib/util/publicPathPlaceholder.js +64 -0
- package/lib/util/registerExternalSerializer.js +24 -4
- package/lib/util/removeBOM.js +1 -0
- package/lib/util/runtime.js +32 -0
- package/lib/util/semver.js +15 -0
- package/lib/util/serialization.js +2 -0
- package/lib/util/smartGrouping.js +8 -0
- package/lib/util/source.js +23 -0
- package/lib/util/topologicalSort.js +69 -0
- package/lib/validateSchema.js +1 -0
- package/lib/wasm/EnableWasmLoadingPlugin.js +15 -1
- package/lib/wasm-async/AsyncWasmCompileRuntimeModule.js +25 -18
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +34 -22
- package/lib/wasm-async/AsyncWasmModule.js +77 -0
- package/lib/wasm-async/AsyncWebAssemblyGenerator.js +6 -0
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +6 -1
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +22 -126
- package/lib/wasm-async/AsyncWebAssemblyParser.js +3 -2
- package/lib/wasm-async/UniversalCompileAsyncWasmPlugin.js +13 -2
- package/lib/wasm-sync/SyncWasmModule.js +39 -0
- package/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +7 -3
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +86 -19
- package/lib/wasm-sync/WasmFinalizeExportsPlugin.js +4 -3
- package/lib/wasm-sync/WebAssemblyGenerator.js +27 -1
- package/lib/wasm-sync/WebAssemblyInInitialChunkError.js +9 -3
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +4 -0
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +20 -1
- package/lib/wasm-sync/WebAssemblyParser.js +9 -3
- package/lib/wasm-sync/WebAssemblyUtils.js +2 -0
- package/lib/web/FetchCompileAsyncWasmPlugin.js +29 -1
- package/lib/web/FetchCompileWasmPlugin.js +27 -1
- package/lib/web/JsonpChunkLoadingPlugin.js +11 -1
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +58 -64
- package/lib/web/JsonpTemplatePlugin.js +2 -1
- package/lib/webpack.js +78 -1
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +10 -1
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +15 -10
- package/lib/webworker/WebWorkerTemplatePlugin.js +1 -1
- package/module.d.ts +21 -0
- package/package.json +79 -77
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +1117 -79
- package/schemas/plugins/{DllPlugin.check.d.ts → HtmlGeneratorOptions.check.d.ts} +1 -1
- package/schemas/plugins/HtmlGeneratorOptions.check.js +6 -0
- package/schemas/plugins/HtmlGeneratorOptions.json +3 -0
- package/schemas/plugins/{DllReferencePlugin.check.d.ts → HtmlParserOptions.check.d.ts} +1 -1
- package/schemas/plugins/HtmlParserOptions.check.js +6 -0
- package/schemas/plugins/HtmlParserOptions.json +3 -0
- package/schemas/plugins/ProgressPlugin.check.js +1 -1
- package/schemas/plugins/ProgressPlugin.json +38 -0
- package/schemas/plugins/container/ContainerReferencePlugin.check.js +1 -1
- package/schemas/plugins/container/ContainerReferencePlugin.json +2 -0
- package/schemas/plugins/container/ExternalsType.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.json +2 -0
- package/schemas/plugins/css/CssAutoOrModuleParserOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssAutoOrModuleParserOptions.check.js +6 -0
- package/schemas/plugins/css/CssAutoOrModuleParserOptions.json +3 -0
- package/schemas/plugins/css/CssModuleParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssParserOptions.check.js +1 -1
- package/schemas/plugins/dll/DllPlugin.check.d.ts +7 -0
- package/schemas/plugins/dll/DllReferencePlugin.check.d.ts +7 -0
- package/types.d.ts +8608 -1159
- package/lib/CaseSensitiveModulesWarning.js +0 -72
- package/lib/GraphHelpers.js +0 -46
- package/lib/ModuleParseError.js +0 -125
- package/lib/NoModeWarning.js +0 -23
- package/lib/css/CssMergeStyleSheetsRuntimeModule.js +0 -56
- package/lib/css/walkCssTokens.js +0 -1843
- package/lib/util/AppendOnlyStackedSet.js +0 -78
- /package/schemas/plugins/{DllPlugin.check.js → dll/DllPlugin.check.js} +0 -0
- /package/schemas/plugins/{DllPlugin.json → dll/DllPlugin.json} +0 -0
- /package/schemas/plugins/{DllReferencePlugin.check.js → dll/DllReferencePlugin.check.js} +0 -0
- /package/schemas/plugins/{DllReferencePlugin.json → dll/DllReferencePlugin.json} +0 -0
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"type": "boolean"
|
|
116
116
|
},
|
|
117
117
|
"filename": {
|
|
118
|
-
"$ref": "#/definitions/
|
|
118
|
+
"$ref": "#/definitions/AssetModuleFilename"
|
|
119
119
|
},
|
|
120
120
|
"outputPath": {
|
|
121
121
|
"$ref": "#/definitions/AssetModuleOutputPath"
|
|
@@ -144,11 +144,12 @@
|
|
|
144
144
|
"anyOf": [
|
|
145
145
|
{
|
|
146
146
|
"type": "string",
|
|
147
|
-
"absolutePath": false
|
|
147
|
+
"absolutePath": false,
|
|
148
|
+
"minLength": 1
|
|
148
149
|
},
|
|
149
150
|
{
|
|
150
151
|
"instanceof": "Function",
|
|
151
|
-
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
152
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn<import(\"../lib/Compilation\").PathDataModule>"
|
|
152
153
|
}
|
|
153
154
|
]
|
|
154
155
|
},
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
},
|
|
162
163
|
{
|
|
163
164
|
"instanceof": "Function",
|
|
164
|
-
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
165
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn<import(\"../lib/Compilation\").PathDataModule>"
|
|
165
166
|
}
|
|
166
167
|
]
|
|
167
168
|
},
|
|
@@ -213,7 +214,7 @@
|
|
|
213
214
|
"type": "boolean"
|
|
214
215
|
},
|
|
215
216
|
"filename": {
|
|
216
|
-
"$ref": "#/definitions/
|
|
217
|
+
"$ref": "#/definitions/AssetModuleFilename"
|
|
217
218
|
},
|
|
218
219
|
"outputPath": {
|
|
219
220
|
"$ref": "#/definitions/AssetModuleOutputPath"
|
|
@@ -362,6 +363,17 @@
|
|
|
362
363
|
"description": "Check if to be emitted file already exists and have the same content before writing to output filesystem.",
|
|
363
364
|
"type": "boolean"
|
|
364
365
|
},
|
|
366
|
+
"ConcatenateModulesOptions": {
|
|
367
|
+
"description": "Advanced options for module concatenation.",
|
|
368
|
+
"type": "object",
|
|
369
|
+
"additionalProperties": false,
|
|
370
|
+
"properties": {
|
|
371
|
+
"commonjs": {
|
|
372
|
+
"description": "Also concatenate CommonJS modules with statically analyzable exports. Defaults to 'true'.",
|
|
373
|
+
"type": "boolean"
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
},
|
|
365
377
|
"Context": {
|
|
366
378
|
"description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
|
|
367
379
|
"type": "string",
|
|
@@ -371,6 +383,61 @@
|
|
|
371
383
|
"description": "This option enables cross-origin loading of chunks.",
|
|
372
384
|
"enum": [false, "anonymous", "use-credentials"]
|
|
373
385
|
},
|
|
386
|
+
"CssAutoOrModuleParserOptions": {
|
|
387
|
+
"description": "Parser options for css/auto and css/module modules.",
|
|
388
|
+
"type": "object",
|
|
389
|
+
"additionalProperties": false,
|
|
390
|
+
"properties": {
|
|
391
|
+
"animation": {
|
|
392
|
+
"$ref": "#/definitions/CssParserAnimation"
|
|
393
|
+
},
|
|
394
|
+
"as": {
|
|
395
|
+
"$ref": "#/definitions/CssParserAs"
|
|
396
|
+
},
|
|
397
|
+
"container": {
|
|
398
|
+
"$ref": "#/definitions/CssParserContainer"
|
|
399
|
+
},
|
|
400
|
+
"customIdents": {
|
|
401
|
+
"$ref": "#/definitions/CssParserCustomIdents"
|
|
402
|
+
},
|
|
403
|
+
"customMedia": {
|
|
404
|
+
"$ref": "#/definitions/CssParserCustomMedia"
|
|
405
|
+
},
|
|
406
|
+
"customSelectors": {
|
|
407
|
+
"$ref": "#/definitions/CssParserCustomSelectors"
|
|
408
|
+
},
|
|
409
|
+
"dashedIdents": {
|
|
410
|
+
"$ref": "#/definitions/CssParserDashedIdents"
|
|
411
|
+
},
|
|
412
|
+
"exportType": {
|
|
413
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
414
|
+
},
|
|
415
|
+
"fontPreload": {
|
|
416
|
+
"$ref": "#/definitions/CssParserFontPreload"
|
|
417
|
+
},
|
|
418
|
+
"function": {
|
|
419
|
+
"$ref": "#/definitions/CssParserFunction"
|
|
420
|
+
},
|
|
421
|
+
"grid": {
|
|
422
|
+
"$ref": "#/definitions/CssParserGrid"
|
|
423
|
+
},
|
|
424
|
+
"import": {
|
|
425
|
+
"$ref": "#/definitions/CssParserImport"
|
|
426
|
+
},
|
|
427
|
+
"namedExports": {
|
|
428
|
+
"$ref": "#/definitions/CssParserNamedExports"
|
|
429
|
+
},
|
|
430
|
+
"pure": {
|
|
431
|
+
"$ref": "#/definitions/CssParserPure"
|
|
432
|
+
},
|
|
433
|
+
"url": {
|
|
434
|
+
"$ref": "#/definitions/CssParserUrl"
|
|
435
|
+
},
|
|
436
|
+
"urlHints": {
|
|
437
|
+
"$ref": "#/definitions/UrlHints"
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
},
|
|
374
441
|
"CssChunkFilename": {
|
|
375
442
|
"description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
376
443
|
"oneOf": [
|
|
@@ -421,7 +488,7 @@
|
|
|
421
488
|
},
|
|
422
489
|
{
|
|
423
490
|
"instanceof": "Function",
|
|
424
|
-
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
491
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn<import(\"../lib/Compilation\").PathDataModule>"
|
|
425
492
|
}
|
|
426
493
|
]
|
|
427
494
|
},
|
|
@@ -473,25 +540,37 @@
|
|
|
473
540
|
}
|
|
474
541
|
},
|
|
475
542
|
"CssModuleParserOptions": {
|
|
476
|
-
"description": "Parser options for css/
|
|
543
|
+
"description": "Parser options for css/global modules.",
|
|
477
544
|
"type": "object",
|
|
478
545
|
"additionalProperties": false,
|
|
479
546
|
"properties": {
|
|
480
547
|
"animation": {
|
|
481
548
|
"$ref": "#/definitions/CssParserAnimation"
|
|
482
549
|
},
|
|
550
|
+
"as": {
|
|
551
|
+
"$ref": "#/definitions/CssParserAs"
|
|
552
|
+
},
|
|
483
553
|
"container": {
|
|
484
554
|
"$ref": "#/definitions/CssParserContainer"
|
|
485
555
|
},
|
|
486
556
|
"customIdents": {
|
|
487
557
|
"$ref": "#/definitions/CssParserCustomIdents"
|
|
488
558
|
},
|
|
559
|
+
"customMedia": {
|
|
560
|
+
"$ref": "#/definitions/CssParserCustomMedia"
|
|
561
|
+
},
|
|
562
|
+
"customSelectors": {
|
|
563
|
+
"$ref": "#/definitions/CssParserCustomSelectors"
|
|
564
|
+
},
|
|
489
565
|
"dashedIdents": {
|
|
490
566
|
"$ref": "#/definitions/CssParserDashedIdents"
|
|
491
567
|
},
|
|
492
568
|
"exportType": {
|
|
493
569
|
"$ref": "#/definitions/CssParserExportType"
|
|
494
570
|
},
|
|
571
|
+
"fontPreload": {
|
|
572
|
+
"$ref": "#/definitions/CssParserFontPreload"
|
|
573
|
+
},
|
|
495
574
|
"function": {
|
|
496
575
|
"$ref": "#/definitions/CssParserFunction"
|
|
497
576
|
},
|
|
@@ -506,6 +585,9 @@
|
|
|
506
585
|
},
|
|
507
586
|
"url": {
|
|
508
587
|
"$ref": "#/definitions/CssParserUrl"
|
|
588
|
+
},
|
|
589
|
+
"urlHints": {
|
|
590
|
+
"$ref": "#/definitions/UrlHints"
|
|
509
591
|
}
|
|
510
592
|
}
|
|
511
593
|
},
|
|
@@ -513,6 +595,10 @@
|
|
|
513
595
|
"description": "Enable/disable renaming of `@keyframes`.",
|
|
514
596
|
"type": "boolean"
|
|
515
597
|
},
|
|
598
|
+
"CssParserAs": {
|
|
599
|
+
"description": "Configure how the CSS source is parsed: as a full stylesheet (default) or as a block's contents (e.g. the content of an HTML `style` attribute).",
|
|
600
|
+
"enum": ["stylesheet", "block-contents"]
|
|
601
|
+
},
|
|
516
602
|
"CssParserContainer": {
|
|
517
603
|
"description": "Enable/disable renaming of `@container` names.",
|
|
518
604
|
"type": "boolean"
|
|
@@ -521,6 +607,14 @@
|
|
|
521
607
|
"description": "Enable/disable renaming of custom identifiers.",
|
|
522
608
|
"type": "boolean"
|
|
523
609
|
},
|
|
610
|
+
"CssParserCustomMedia": {
|
|
611
|
+
"description": "Enable/disable resolution of `@custom-media` at-rules (file-local build-time substitution).",
|
|
612
|
+
"type": "boolean"
|
|
613
|
+
},
|
|
614
|
+
"CssParserCustomSelectors": {
|
|
615
|
+
"description": "Enable/disable resolution of `@custom-selector` at-rules (file-local build-time expansion to `:is(...)`).",
|
|
616
|
+
"type": "boolean"
|
|
617
|
+
},
|
|
524
618
|
"CssParserDashedIdents": {
|
|
525
619
|
"description": "Enable/disable renaming of dashed identifiers, e. g. custom properties.",
|
|
526
620
|
"type": "boolean"
|
|
@@ -529,6 +623,10 @@
|
|
|
529
623
|
"description": "Configure how CSS content is exported as default.",
|
|
530
624
|
"enum": ["link", "text", "css-style-sheet", "style"]
|
|
531
625
|
},
|
|
626
|
+
"CssParserFontPreload": {
|
|
627
|
+
"description": "Auto-emit `<link rel=\"preload\" as=\"font\">` for the primary `src` URL of each `@font-face` reachable from an HTML entry's initial CSS. Only the first URL per `@font-face` is preloaded (preloading every format would double-download). Off by default; `parser.css.urlHints` rules and per-URL magic comments still override the seeded defaults. Set `output.crossOriginLoading` so the preload matches the font's CORS fetch.",
|
|
628
|
+
"type": "boolean"
|
|
629
|
+
},
|
|
532
630
|
"CssParserFunction": {
|
|
533
631
|
"description": "Enable/disable renaming of `@function` names.",
|
|
534
632
|
"type": "boolean"
|
|
@@ -550,9 +648,21 @@
|
|
|
550
648
|
"type": "object",
|
|
551
649
|
"additionalProperties": false,
|
|
552
650
|
"properties": {
|
|
651
|
+
"as": {
|
|
652
|
+
"$ref": "#/definitions/CssParserAs"
|
|
653
|
+
},
|
|
654
|
+
"customMedia": {
|
|
655
|
+
"$ref": "#/definitions/CssParserCustomMedia"
|
|
656
|
+
},
|
|
657
|
+
"customSelectors": {
|
|
658
|
+
"$ref": "#/definitions/CssParserCustomSelectors"
|
|
659
|
+
},
|
|
553
660
|
"exportType": {
|
|
554
661
|
"$ref": "#/definitions/CssParserExportType"
|
|
555
662
|
},
|
|
663
|
+
"fontPreload": {
|
|
664
|
+
"$ref": "#/definitions/CssParserFontPreload"
|
|
665
|
+
},
|
|
556
666
|
"import": {
|
|
557
667
|
"$ref": "#/definitions/CssParserImport"
|
|
558
668
|
},
|
|
@@ -561,9 +671,16 @@
|
|
|
561
671
|
},
|
|
562
672
|
"url": {
|
|
563
673
|
"$ref": "#/definitions/CssParserUrl"
|
|
674
|
+
},
|
|
675
|
+
"urlHints": {
|
|
676
|
+
"$ref": "#/definitions/UrlHints"
|
|
564
677
|
}
|
|
565
678
|
}
|
|
566
679
|
},
|
|
680
|
+
"CssParserPure": {
|
|
681
|
+
"description": "Enable strict pure mode: every selector must contain at least one local class or id selector.",
|
|
682
|
+
"type": "boolean"
|
|
683
|
+
},
|
|
567
684
|
"CssParserUrl": {
|
|
568
685
|
"description": "Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.",
|
|
569
686
|
"type": "boolean"
|
|
@@ -787,6 +904,10 @@
|
|
|
787
904
|
"filename": {
|
|
788
905
|
"$ref": "#/definitions/EntryFilename"
|
|
789
906
|
},
|
|
907
|
+
"html": {
|
|
908
|
+
"description": "Generate an HTML file for this entrypoint with its JS and CSS output chunks injected. Overrides `output.html` for this entry.",
|
|
909
|
+
"type": "boolean"
|
|
910
|
+
},
|
|
790
911
|
"import": {
|
|
791
912
|
"$ref": "#/definitions/EntryItem"
|
|
792
913
|
},
|
|
@@ -804,6 +925,10 @@
|
|
|
804
925
|
},
|
|
805
926
|
"wasmLoading": {
|
|
806
927
|
"$ref": "#/definitions/WasmLoading"
|
|
928
|
+
},
|
|
929
|
+
"worker": {
|
|
930
|
+
"description": "Mark this entry as a worker so its output file uses 'output.workerChunkFilename'.",
|
|
931
|
+
"type": "boolean"
|
|
807
932
|
}
|
|
808
933
|
},
|
|
809
934
|
"required": ["import"]
|
|
@@ -838,6 +963,10 @@
|
|
|
838
963
|
"filename": {
|
|
839
964
|
"$ref": "#/definitions/Filename"
|
|
840
965
|
},
|
|
966
|
+
"html": {
|
|
967
|
+
"description": "Generate an HTML file for this entrypoint with its JS and CSS output chunks injected. Overrides `output.html` for this entry.",
|
|
968
|
+
"type": "boolean"
|
|
969
|
+
},
|
|
841
970
|
"import": {
|
|
842
971
|
"description": "Module(s) that are loaded upon startup. The last one is exported.",
|
|
843
972
|
"type": "array",
|
|
@@ -863,6 +992,10 @@
|
|
|
863
992
|
},
|
|
864
993
|
"wasmLoading": {
|
|
865
994
|
"$ref": "#/definitions/WasmLoading"
|
|
995
|
+
},
|
|
996
|
+
"worker": {
|
|
997
|
+
"description": "Mark this entry as a worker so its output file uses 'output.workerChunkFilename'.",
|
|
998
|
+
"type": "boolean"
|
|
866
999
|
}
|
|
867
1000
|
}
|
|
868
1001
|
},
|
|
@@ -1015,14 +1148,30 @@
|
|
|
1015
1148
|
"description": "The environment supports 'for of' iteration ('for (const x of array) { ... }').",
|
|
1016
1149
|
"type": "boolean"
|
|
1017
1150
|
},
|
|
1151
|
+
"generator": {
|
|
1152
|
+
"description": "The environment supports generator functions and yield ('function* () { yield ... }').",
|
|
1153
|
+
"type": "boolean"
|
|
1154
|
+
},
|
|
1018
1155
|
"globalThis": {
|
|
1019
1156
|
"description": "The environment supports 'globalThis'.",
|
|
1020
1157
|
"type": "boolean"
|
|
1021
1158
|
},
|
|
1159
|
+
"hasOwn": {
|
|
1160
|
+
"description": "The environment supports 'Object.hasOwn'.",
|
|
1161
|
+
"type": "boolean"
|
|
1162
|
+
},
|
|
1022
1163
|
"importMetaDirnameAndFilename": {
|
|
1023
1164
|
"description": "The environment supports `import.meta.dirname` and `import.meta.filename`.",
|
|
1024
1165
|
"type": "boolean"
|
|
1025
1166
|
},
|
|
1167
|
+
"let": {
|
|
1168
|
+
"description": "The environment supports let for variable declarations.",
|
|
1169
|
+
"type": "boolean"
|
|
1170
|
+
},
|
|
1171
|
+
"logicalAssignment": {
|
|
1172
|
+
"description": "The environment supports logical assignment operators ('a ||= b', 'a &&= b', 'a ??= b').",
|
|
1173
|
+
"type": "boolean"
|
|
1174
|
+
},
|
|
1026
1175
|
"methodShorthand": {
|
|
1027
1176
|
"description": "The environment supports object method shorthand ('{ module() {} }').",
|
|
1028
1177
|
"type": "boolean"
|
|
@@ -1031,6 +1180,14 @@
|
|
|
1031
1180
|
"description": "The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').",
|
|
1032
1181
|
"type": "boolean"
|
|
1033
1182
|
},
|
|
1183
|
+
"modulePreload": {
|
|
1184
|
+
"description": "The environment supports `<link rel=\"modulepreload\">` to preload EcmaScript modules.",
|
|
1185
|
+
"type": "boolean"
|
|
1186
|
+
},
|
|
1187
|
+
"nodeBuiltinModuleGetter": {
|
|
1188
|
+
"description": "The environment supports `process.getBuiltinModule()` to synchronously load Node.js core modules.",
|
|
1189
|
+
"type": "boolean"
|
|
1190
|
+
},
|
|
1034
1191
|
"nodePrefixForCoreModules": {
|
|
1035
1192
|
"description": "The environment supports `node:` prefix for Node.js core modules.",
|
|
1036
1193
|
"type": "boolean"
|
|
@@ -1039,6 +1196,14 @@
|
|
|
1039
1196
|
"description": "The environment supports optional chaining ('obj?.a' or 'obj?.()').",
|
|
1040
1197
|
"type": "boolean"
|
|
1041
1198
|
},
|
|
1199
|
+
"spread": {
|
|
1200
|
+
"description": "The environment supports spread and rest in array/object literals and calls ('{ ...obj }', 'fn(...args)').",
|
|
1201
|
+
"type": "boolean"
|
|
1202
|
+
},
|
|
1203
|
+
"symbol": {
|
|
1204
|
+
"description": "The environment supports 'Symbol' (and well-known symbols like 'Symbol.toStringTag').",
|
|
1205
|
+
"type": "boolean"
|
|
1206
|
+
},
|
|
1042
1207
|
"templateLiteral": {
|
|
1043
1208
|
"description": "The environment supports template literals.",
|
|
1044
1209
|
"type": "boolean"
|
|
@@ -1048,16 +1213,26 @@
|
|
|
1048
1213
|
"Experiments": {
|
|
1049
1214
|
"description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
|
|
1050
1215
|
"type": "object",
|
|
1051
|
-
"implements": ["#/definitions/ExperimentsCommon"],
|
|
1052
1216
|
"additionalProperties": true,
|
|
1053
1217
|
"properties": {
|
|
1054
1218
|
"asyncWebAssembly": {
|
|
1055
|
-
"description": "Support WebAssembly as asynchronous EcmaScript Module.",
|
|
1056
|
-
"
|
|
1219
|
+
"description": "Support WebAssembly as asynchronous EcmaScript Module. `\"auto\"` (the default) enables it unless a loader is registered for WebAssembly files.",
|
|
1220
|
+
"anyOf": [
|
|
1221
|
+
{
|
|
1222
|
+
"description": "Enable the built-in async WebAssembly support only when no loader is registered for WebAssembly files.",
|
|
1223
|
+
"enum": ["auto"]
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"description": "Enable/disable the built-in async WebAssembly support.",
|
|
1227
|
+
"type": "boolean"
|
|
1228
|
+
}
|
|
1229
|
+
],
|
|
1230
|
+
"experimental": true
|
|
1057
1231
|
},
|
|
1058
1232
|
"backCompat": {
|
|
1059
1233
|
"description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
|
|
1060
|
-
"type": "boolean"
|
|
1234
|
+
"type": "boolean",
|
|
1235
|
+
"experimental": true
|
|
1061
1236
|
},
|
|
1062
1237
|
"buildHttp": {
|
|
1063
1238
|
"description": "Build http(s): urls using a lockfile and resource content cache.",
|
|
@@ -1068,23 +1243,51 @@
|
|
|
1068
1243
|
{
|
|
1069
1244
|
"$ref": "#/definitions/HttpUriOptions"
|
|
1070
1245
|
}
|
|
1071
|
-
]
|
|
1246
|
+
],
|
|
1247
|
+
"experimental": true
|
|
1072
1248
|
},
|
|
1073
1249
|
"cacheUnaffected": {
|
|
1074
1250
|
"description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
|
|
1075
|
-
"type": "boolean"
|
|
1251
|
+
"type": "boolean",
|
|
1252
|
+
"experimental": true
|
|
1076
1253
|
},
|
|
1077
1254
|
"css": {
|
|
1078
|
-
"description": "Enable css support.",
|
|
1079
|
-
"
|
|
1255
|
+
"description": "Enable css support. `\"auto\"` (the default) enables the built-in CSS support unless a loader is registered for CSS files.",
|
|
1256
|
+
"anyOf": [
|
|
1257
|
+
{
|
|
1258
|
+
"description": "Enable the built-in CSS support only when no loader is registered for CSS files.",
|
|
1259
|
+
"enum": ["auto"]
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"description": "Enable/disable the built-in CSS support.",
|
|
1263
|
+
"type": "boolean"
|
|
1264
|
+
}
|
|
1265
|
+
],
|
|
1266
|
+
"experimental": true
|
|
1080
1267
|
},
|
|
1081
1268
|
"deferImport": {
|
|
1082
1269
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
|
|
1083
|
-
"type": "boolean"
|
|
1270
|
+
"type": "boolean",
|
|
1271
|
+
"experimental": true
|
|
1084
1272
|
},
|
|
1085
1273
|
"futureDefaults": {
|
|
1086
1274
|
"description": "Apply defaults of next major version.",
|
|
1087
|
-
"type": "boolean"
|
|
1275
|
+
"type": "boolean",
|
|
1276
|
+
"experimental": true
|
|
1277
|
+
},
|
|
1278
|
+
"html": {
|
|
1279
|
+
"description": "Enable HTML entry support. Treats `.html` files as a first-class module type so they can be used directly as entry points. `\"auto\"` (the default) enables it unless a loader is registered for HTML files.",
|
|
1280
|
+
"anyOf": [
|
|
1281
|
+
{
|
|
1282
|
+
"description": "Enable the built-in HTML support only when no loader is registered for HTML files.",
|
|
1283
|
+
"enum": ["auto"]
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"description": "Enable/disable the built-in HTML support.",
|
|
1287
|
+
"type": "boolean"
|
|
1288
|
+
}
|
|
1289
|
+
],
|
|
1290
|
+
"experimental": true
|
|
1088
1291
|
},
|
|
1089
1292
|
"lazyCompilation": {
|
|
1090
1293
|
"description": "Compile entrypoints and import()s only when they are accessed.",
|
|
@@ -1095,66 +1298,63 @@
|
|
|
1095
1298
|
{
|
|
1096
1299
|
"$ref": "#/definitions/LazyCompilationOptions"
|
|
1097
1300
|
}
|
|
1098
|
-
]
|
|
1301
|
+
],
|
|
1302
|
+
"experimental": true
|
|
1099
1303
|
},
|
|
1100
1304
|
"outputModule": {
|
|
1101
1305
|
"description": "Allow output javascript files as module source type.",
|
|
1102
|
-
"type": "boolean"
|
|
1306
|
+
"type": "boolean",
|
|
1307
|
+
"experimental": true
|
|
1103
1308
|
},
|
|
1104
1309
|
"sourceImport": {
|
|
1105
1310
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.",
|
|
1106
|
-
"type": "boolean"
|
|
1311
|
+
"type": "boolean",
|
|
1312
|
+
"experimental": true
|
|
1107
1313
|
},
|
|
1108
1314
|
"syncWebAssembly": {
|
|
1109
1315
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1110
|
-
"type": "boolean"
|
|
1111
|
-
|
|
1112
|
-
}
|
|
1113
|
-
},
|
|
1114
|
-
"ExperimentsCommon": {
|
|
1115
|
-
"description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
|
|
1116
|
-
"type": "object",
|
|
1117
|
-
"additionalProperties": false,
|
|
1118
|
-
"properties": {
|
|
1119
|
-
"asyncWebAssembly": {
|
|
1120
|
-
"description": "Support WebAssembly as asynchronous EcmaScript Module.",
|
|
1121
|
-
"type": "boolean"
|
|
1122
|
-
},
|
|
1123
|
-
"backCompat": {
|
|
1124
|
-
"description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
|
|
1125
|
-
"type": "boolean"
|
|
1126
|
-
},
|
|
1127
|
-
"cacheUnaffected": {
|
|
1128
|
-
"description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
|
|
1129
|
-
"type": "boolean"
|
|
1130
|
-
},
|
|
1131
|
-
"futureDefaults": {
|
|
1132
|
-
"description": "Apply defaults of next major version.",
|
|
1133
|
-
"type": "boolean"
|
|
1134
|
-
},
|
|
1135
|
-
"outputModule": {
|
|
1136
|
-
"description": "Allow output javascript files as module source type.",
|
|
1137
|
-
"type": "boolean"
|
|
1316
|
+
"type": "boolean",
|
|
1317
|
+
"experimental": true
|
|
1138
1318
|
},
|
|
1139
|
-
"
|
|
1140
|
-
"description": "
|
|
1141
|
-
"
|
|
1319
|
+
"typescript": {
|
|
1320
|
+
"description": "Enable typescript support. `\"auto\"` (the default) enables the built-in TypeScript support when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files.",
|
|
1321
|
+
"anyOf": [
|
|
1322
|
+
{
|
|
1323
|
+
"description": "Enable the built-in TypeScript support only when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files.",
|
|
1324
|
+
"enum": ["auto"]
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"description": "Enable/disable the built-in TypeScript support.",
|
|
1328
|
+
"type": "boolean"
|
|
1329
|
+
}
|
|
1330
|
+
],
|
|
1331
|
+
"experimental": true
|
|
1142
1332
|
}
|
|
1143
1333
|
}
|
|
1144
1334
|
},
|
|
1145
1335
|
"ExperimentsNormalized": {
|
|
1146
1336
|
"description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
|
|
1147
1337
|
"type": "object",
|
|
1148
|
-
"implements": ["#/definitions/ExperimentsCommon"],
|
|
1149
1338
|
"additionalProperties": false,
|
|
1150
1339
|
"properties": {
|
|
1151
1340
|
"asyncWebAssembly": {
|
|
1152
|
-
"description": "Support WebAssembly as asynchronous EcmaScript Module.",
|
|
1153
|
-
"
|
|
1341
|
+
"description": "Support WebAssembly as asynchronous EcmaScript Module. `\"auto\"` (the default) enables it unless a loader is registered for WebAssembly files.",
|
|
1342
|
+
"anyOf": [
|
|
1343
|
+
{
|
|
1344
|
+
"description": "Enable the built-in async WebAssembly support only when no loader is registered for WebAssembly files.",
|
|
1345
|
+
"enum": ["auto"]
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"description": "Enable/disable the built-in async WebAssembly support.",
|
|
1349
|
+
"type": "boolean"
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
"experimental": true
|
|
1154
1353
|
},
|
|
1155
1354
|
"backCompat": {
|
|
1156
1355
|
"description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
|
|
1157
|
-
"type": "boolean"
|
|
1356
|
+
"type": "boolean",
|
|
1357
|
+
"experimental": true
|
|
1158
1358
|
},
|
|
1159
1359
|
"buildHttp": {
|
|
1160
1360
|
"description": "Build http(s): urls using a lockfile and resource content cache.",
|
|
@@ -1162,23 +1362,51 @@
|
|
|
1162
1362
|
{
|
|
1163
1363
|
"$ref": "#/definitions/HttpUriOptions"
|
|
1164
1364
|
}
|
|
1165
|
-
]
|
|
1365
|
+
],
|
|
1366
|
+
"experimental": true
|
|
1166
1367
|
},
|
|
1167
1368
|
"cacheUnaffected": {
|
|
1168
1369
|
"description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
|
|
1169
|
-
"type": "boolean"
|
|
1370
|
+
"type": "boolean",
|
|
1371
|
+
"experimental": true
|
|
1170
1372
|
},
|
|
1171
1373
|
"css": {
|
|
1172
|
-
"description": "Enable css support.",
|
|
1173
|
-
"
|
|
1374
|
+
"description": "Enable css support. `\"auto\"` (the default) enables the built-in CSS support unless a loader is registered for CSS files.",
|
|
1375
|
+
"anyOf": [
|
|
1376
|
+
{
|
|
1377
|
+
"description": "Enable the built-in CSS support only when no loader is registered for CSS files.",
|
|
1378
|
+
"enum": ["auto"]
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"description": "Enable/disable the built-in CSS support.",
|
|
1382
|
+
"type": "boolean"
|
|
1383
|
+
}
|
|
1384
|
+
],
|
|
1385
|
+
"experimental": true
|
|
1174
1386
|
},
|
|
1175
1387
|
"deferImport": {
|
|
1176
1388
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
|
|
1177
|
-
"type": "boolean"
|
|
1389
|
+
"type": "boolean",
|
|
1390
|
+
"experimental": true
|
|
1178
1391
|
},
|
|
1179
1392
|
"futureDefaults": {
|
|
1180
1393
|
"description": "Apply defaults of next major version.",
|
|
1181
|
-
"type": "boolean"
|
|
1394
|
+
"type": "boolean",
|
|
1395
|
+
"experimental": true
|
|
1396
|
+
},
|
|
1397
|
+
"html": {
|
|
1398
|
+
"description": "Enable HTML entry support. Treats `.html` files as a first-class module type so they can be used directly as entry points. `\"auto\"` (the default) enables it unless a loader is registered for HTML files.",
|
|
1399
|
+
"anyOf": [
|
|
1400
|
+
{
|
|
1401
|
+
"description": "Enable the built-in HTML support only when no loader is registered for HTML files.",
|
|
1402
|
+
"enum": ["auto"]
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"description": "Enable/disable the built-in HTML support.",
|
|
1406
|
+
"type": "boolean"
|
|
1407
|
+
}
|
|
1408
|
+
],
|
|
1409
|
+
"experimental": true
|
|
1182
1410
|
},
|
|
1183
1411
|
"lazyCompilation": {
|
|
1184
1412
|
"description": "Compile entrypoints and import()s only when they are accessed.",
|
|
@@ -1189,19 +1417,37 @@
|
|
|
1189
1417
|
{
|
|
1190
1418
|
"$ref": "#/definitions/LazyCompilationOptions"
|
|
1191
1419
|
}
|
|
1192
|
-
]
|
|
1420
|
+
],
|
|
1421
|
+
"experimental": true
|
|
1193
1422
|
},
|
|
1194
1423
|
"outputModule": {
|
|
1195
1424
|
"description": "Allow output javascript files as module source type.",
|
|
1196
|
-
"type": "boolean"
|
|
1425
|
+
"type": "boolean",
|
|
1426
|
+
"experimental": true
|
|
1197
1427
|
},
|
|
1198
1428
|
"sourceImport": {
|
|
1199
1429
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.",
|
|
1200
|
-
"type": "boolean"
|
|
1430
|
+
"type": "boolean",
|
|
1431
|
+
"experimental": true
|
|
1201
1432
|
},
|
|
1202
1433
|
"syncWebAssembly": {
|
|
1203
1434
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1204
|
-
"type": "boolean"
|
|
1435
|
+
"type": "boolean",
|
|
1436
|
+
"experimental": true
|
|
1437
|
+
},
|
|
1438
|
+
"typescript": {
|
|
1439
|
+
"description": "Enable typescript support. `\"auto\"` (the default) enables the built-in TypeScript support when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files.",
|
|
1440
|
+
"anyOf": [
|
|
1441
|
+
{
|
|
1442
|
+
"description": "Enable the built-in TypeScript support only when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files.",
|
|
1443
|
+
"enum": ["auto"]
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"description": "Enable/disable the built-in TypeScript support.",
|
|
1447
|
+
"type": "boolean"
|
|
1448
|
+
}
|
|
1449
|
+
],
|
|
1450
|
+
"experimental": true
|
|
1205
1451
|
}
|
|
1206
1452
|
}
|
|
1207
1453
|
},
|
|
@@ -1285,6 +1531,10 @@
|
|
|
1285
1531
|
"instanceof": "Function",
|
|
1286
1532
|
"tsType": "import(\"../lib/ExternalModuleFactoryPlugin\").ExternalItemFunctionPromise"
|
|
1287
1533
|
},
|
|
1534
|
+
"ExternalItemInterop": {
|
|
1535
|
+
"description": "How an external's exports interoperate with ES module imports, independent of the importing module's strictness (similar to Rollup's `output.interop`). 'default': treat as CommonJS, the default import is the whole exports (Node.js semantics). 'esModule': treat as an ES module namespace, the default import is unboxed to `.default`.",
|
|
1536
|
+
"enum": ["default", "esModule"]
|
|
1537
|
+
},
|
|
1288
1538
|
"ExternalItemValue": {
|
|
1289
1539
|
"description": "The dependency used for the external.",
|
|
1290
1540
|
"anyOf": [
|
|
@@ -1305,7 +1555,30 @@
|
|
|
1305
1555
|
"type": "string"
|
|
1306
1556
|
},
|
|
1307
1557
|
{
|
|
1308
|
-
"
|
|
1558
|
+
"description": "The target of the external with a type, optionally with an 'interop' hint describing how its exports interoperate with ES module imports.",
|
|
1559
|
+
"type": "object",
|
|
1560
|
+
"additionalProperties": {
|
|
1561
|
+
"description": "The target of the external for a specific external type.",
|
|
1562
|
+
"anyOf": [
|
|
1563
|
+
{
|
|
1564
|
+
"type": "array",
|
|
1565
|
+
"items": {
|
|
1566
|
+
"description": "A part of the target of the external.",
|
|
1567
|
+
"type": "string",
|
|
1568
|
+
"minLength": 1
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
"description": "The target of the external.",
|
|
1573
|
+
"type": "string"
|
|
1574
|
+
}
|
|
1575
|
+
]
|
|
1576
|
+
},
|
|
1577
|
+
"properties": {
|
|
1578
|
+
"interop": {
|
|
1579
|
+
"$ref": "#/definitions/ExternalItemInterop"
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1309
1582
|
}
|
|
1310
1583
|
]
|
|
1311
1584
|
},
|
|
@@ -1328,6 +1601,14 @@
|
|
|
1328
1601
|
"type": "object",
|
|
1329
1602
|
"additionalProperties": false,
|
|
1330
1603
|
"properties": {
|
|
1604
|
+
"bun": {
|
|
1605
|
+
"description": "Treat bun built-in modules like 'bun', 'bun:sqlite' or 'bun:ffi' and node.js built-in modules as external and load them via import when used (for the Bun runtime).",
|
|
1606
|
+
"type": "boolean"
|
|
1607
|
+
},
|
|
1608
|
+
"deno": {
|
|
1609
|
+
"description": "Treat node.js built-in modules like fs, path or vm as external and load them via the required 'node:' specifier when used (for the Deno runtime).",
|
|
1610
|
+
"type": "boolean"
|
|
1611
|
+
},
|
|
1331
1612
|
"electron": {
|
|
1332
1613
|
"description": "Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used.",
|
|
1333
1614
|
"type": "boolean"
|
|
@@ -1378,6 +1659,7 @@
|
|
|
1378
1659
|
"commonjs-static",
|
|
1379
1660
|
"amd",
|
|
1380
1661
|
"amd-require",
|
|
1662
|
+
"amd-async",
|
|
1381
1663
|
"umd",
|
|
1382
1664
|
"umd2",
|
|
1383
1665
|
"jsonp",
|
|
@@ -1388,6 +1670,7 @@
|
|
|
1388
1670
|
"script",
|
|
1389
1671
|
"node-commonjs",
|
|
1390
1672
|
"asset",
|
|
1673
|
+
"asset-url",
|
|
1391
1674
|
"css-import",
|
|
1392
1675
|
"css-url"
|
|
1393
1676
|
]
|
|
@@ -1435,7 +1718,7 @@
|
|
|
1435
1718
|
},
|
|
1436
1719
|
"compression": {
|
|
1437
1720
|
"description": "Compression type used for the cache files.",
|
|
1438
|
-
"enum": [false, "gzip", "brotli"]
|
|
1721
|
+
"enum": [false, "gzip", "brotli", "zstd"]
|
|
1439
1722
|
},
|
|
1440
1723
|
"hashAlgorithm": {
|
|
1441
1724
|
"description": "Algorithm used for generation the hash (see node.js crypto package).",
|
|
@@ -1553,7 +1836,7 @@
|
|
|
1553
1836
|
},
|
|
1554
1837
|
{
|
|
1555
1838
|
"instanceof": "Function",
|
|
1556
|
-
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
1839
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn<import(\"../lib/Compilation\").PathDataChunk>"
|
|
1557
1840
|
}
|
|
1558
1841
|
]
|
|
1559
1842
|
},
|
|
@@ -1638,6 +1921,9 @@
|
|
|
1638
1921
|
"css/module": {
|
|
1639
1922
|
"$ref": "#/definitions/CssModuleGeneratorOptions"
|
|
1640
1923
|
},
|
|
1924
|
+
"html": {
|
|
1925
|
+
"$ref": "#/definitions/HtmlGeneratorOptions"
|
|
1926
|
+
},
|
|
1641
1927
|
"javascript": {
|
|
1642
1928
|
"$ref": "#/definitions/EmptyGeneratorOptions"
|
|
1643
1929
|
},
|
|
@@ -1701,6 +1987,242 @@
|
|
|
1701
1987
|
"type": "string",
|
|
1702
1988
|
"absolutePath": false
|
|
1703
1989
|
},
|
|
1990
|
+
"HtmlChunkFilename": {
|
|
1991
|
+
"description": "Specifies the filename template of non-initial output html files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
1992
|
+
"oneOf": [
|
|
1993
|
+
{
|
|
1994
|
+
"$ref": "#/definitions/FilenameTemplate"
|
|
1995
|
+
}
|
|
1996
|
+
]
|
|
1997
|
+
},
|
|
1998
|
+
"HtmlFaviconIcon": {
|
|
1999
|
+
"description": "A single favicon `<link>`: either a path string (used as the icon `href`) or an object with the icon `href` plus extra link attributes (`sizes`, `media`, `color`, `type`, `crossorigin`).",
|
|
2000
|
+
"anyOf": [
|
|
2001
|
+
{
|
|
2002
|
+
"type": "string",
|
|
2003
|
+
"minLength": 1
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"type": "object",
|
|
2007
|
+
"additionalProperties": false,
|
|
2008
|
+
"properties": {
|
|
2009
|
+
"color": {
|
|
2010
|
+
"description": "Value for the `color` attribute (used by `rel=\"mask-icon\"`).",
|
|
2011
|
+
"type": "string",
|
|
2012
|
+
"minLength": 1
|
|
2013
|
+
},
|
|
2014
|
+
"crossorigin": {
|
|
2015
|
+
"description": "Value for the `crossorigin` attribute.",
|
|
2016
|
+
"enum": ["anonymous", "use-credentials"]
|
|
2017
|
+
},
|
|
2018
|
+
"href": {
|
|
2019
|
+
"description": "Path to the icon file, emitted as a hashed asset.",
|
|
2020
|
+
"type": "string",
|
|
2021
|
+
"minLength": 1
|
|
2022
|
+
},
|
|
2023
|
+
"media": {
|
|
2024
|
+
"description": "Value for the `media` attribute (e.g. `\"(prefers-color-scheme: dark)\"`).",
|
|
2025
|
+
"type": "string",
|
|
2026
|
+
"minLength": 1
|
|
2027
|
+
},
|
|
2028
|
+
"sizes": {
|
|
2029
|
+
"description": "Value for the `sizes` attribute (e.g. `\"180x180\"` or `\"any\"`).",
|
|
2030
|
+
"type": "string",
|
|
2031
|
+
"minLength": 1
|
|
2032
|
+
},
|
|
2033
|
+
"type": {
|
|
2034
|
+
"description": "Value for the `type` attribute; inferred from the file extension when omitted.",
|
|
2035
|
+
"type": "string",
|
|
2036
|
+
"minLength": 1
|
|
2037
|
+
}
|
|
2038
|
+
},
|
|
2039
|
+
"required": ["href"]
|
|
2040
|
+
}
|
|
2041
|
+
]
|
|
2042
|
+
},
|
|
2043
|
+
"HtmlFilename": {
|
|
2044
|
+
"description": "Specifies the filename template of output html files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
2045
|
+
"oneOf": [
|
|
2046
|
+
{
|
|
2047
|
+
"$ref": "#/definitions/FilenameTemplate"
|
|
2048
|
+
}
|
|
2049
|
+
]
|
|
2050
|
+
},
|
|
2051
|
+
"HtmlGeneratorOptions": {
|
|
2052
|
+
"description": "Generator options for html modules.",
|
|
2053
|
+
"type": "object",
|
|
2054
|
+
"additionalProperties": false,
|
|
2055
|
+
"properties": {
|
|
2056
|
+
"extract": {
|
|
2057
|
+
"description": "Emit the parsed and URL-rewritten HTML as a standalone `.html` output file alongside the module's JavaScript export. `true` always emits the file; `false` never does; `\"inline\"` exposes the processed HTML for inline write-back (e.g. `<iframe srcdoc>`) without emitting a standalone file. When unset, extraction defaults to `true` for HTML modules used as compilation entries (HTML entry points) and `false` for HTML modules imported from JavaScript. Filenames follow `output.htmlFilename` / `output.htmlChunkFilename`.",
|
|
2058
|
+
"anyOf": [
|
|
2059
|
+
{
|
|
2060
|
+
"enum": ["inline"]
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"type": "boolean"
|
|
2064
|
+
}
|
|
2065
|
+
]
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
},
|
|
2069
|
+
"HtmlParserAs": {
|
|
2070
|
+
"description": "Configure how the HTML source is parsed: `\"document\"` (the default) parses a full page; any other value is the tag name of the context element to parse the source as that element's inner HTML (a fragment) — e.g. `\"template\"` for a neutral fragment, or `\"tbody\"` so context-sensitive tags like a bare `<tr>`/`<td>` are kept instead of dropped.",
|
|
2071
|
+
"anyOf": [
|
|
2072
|
+
{
|
|
2073
|
+
"enum": ["document"]
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"type": "string"
|
|
2077
|
+
}
|
|
2078
|
+
]
|
|
2079
|
+
},
|
|
2080
|
+
"HtmlParserOptions": {
|
|
2081
|
+
"description": "Parser options for html modules.",
|
|
2082
|
+
"type": "object",
|
|
2083
|
+
"additionalProperties": false,
|
|
2084
|
+
"properties": {
|
|
2085
|
+
"as": {
|
|
2086
|
+
"$ref": "#/definitions/HtmlParserAs"
|
|
2087
|
+
},
|
|
2088
|
+
"sources": {
|
|
2089
|
+
"description": "Configure extraction of URL-like attribute values (e.g. `<img src>`, `<link href>`, `<script src>`) as webpack dependencies. `true` (default) uses the built-in source list; `false` disables extraction entirely so attributes are left untouched and `<script src>` / `<link rel=\"modulepreload\">` / `<link rel=\"stylesheet\">` no longer become compilation entries; an array lets you customize which `tag`/`attribute` pairs are treated as URLs and how they are bundled. Use the string `\"...\"` inside the array to inline the defaults. Inline `<script>` and `<style>` bodies are always processed. Use `webpackIgnore` comments or `IgnorePlugin` to skip individual URLs.",
|
|
2090
|
+
"anyOf": [
|
|
2091
|
+
{
|
|
2092
|
+
"description": "Sources to extract as webpack dependencies. Use `\"...\"` to inline the default source list.",
|
|
2093
|
+
"type": "array",
|
|
2094
|
+
"items": {
|
|
2095
|
+
"description": "A source entry: either the string `\"...\"` to inline the built-in default sources, or an object describing a `tag`/`attribute` pair to extract and how to bundle it.",
|
|
2096
|
+
"anyOf": [
|
|
2097
|
+
{
|
|
2098
|
+
"enum": ["..."]
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"type": "object",
|
|
2102
|
+
"additionalProperties": false,
|
|
2103
|
+
"properties": {
|
|
2104
|
+
"attribute": {
|
|
2105
|
+
"description": "Attribute name whose value is treated as a URL.",
|
|
2106
|
+
"type": "string",
|
|
2107
|
+
"minLength": 1
|
|
2108
|
+
},
|
|
2109
|
+
"filter": {
|
|
2110
|
+
"description": "Called with the element's decoded attribute map and the decoded attribute value; return false to skip this source entry for that element.",
|
|
2111
|
+
"instanceof": "Function",
|
|
2112
|
+
"tsType": "(attributes: Map<string, string>, value: string) => boolean"
|
|
2113
|
+
},
|
|
2114
|
+
"tag": {
|
|
2115
|
+
"description": "Tag name to match. Omit to match any tag.",
|
|
2116
|
+
"type": "string",
|
|
2117
|
+
"minLength": 1
|
|
2118
|
+
},
|
|
2119
|
+
"type": {
|
|
2120
|
+
"description": "How the attribute value should be parsed and bundled, or `false` to disable a built-in source for this `tag`/`attribute` (use together with `\"...\"` to drop a default, e.g. stop treating `<img src>` as a URL). `src` extracts a single URL as a plain asset; `srcset` parses a `srcset`-style list of candidate URLs as plain assets; `css-url` extracts `url(...)` references from a CSS value (like an SVG presentation attribute such as `fill`) as plain assets; `script` and `script-module` emit a classic / ES-module chunk entry like `<script src>` and `<script type=\"module\" src>`; `stylesheet` emits a CSS chunk entry like `<link rel=\"stylesheet\">`; `html` treats the URL as a link to another HTML file that is bundled as its own emitted page (its assets extracted) and rewrites the attribute to the page's output filename (like Parcel's `<a href=\"page.html\">`); `stylesheet-style` treats the attribute value as a full stylesheet (like a `<style>` body) and `stylesheet-style-attribute` as a CSS block's contents (a declaration list, like a `style` attribute) — both bundle it through the CSS pipeline and replace the attribute's content with the processed CSS at render time; `srcdoc` treats the attribute value as an entity-encoded HTML document (like `<iframe srcdoc>`), bundling it through the HTML pipeline and replacing the attribute's content with the processed HTML at render time.",
|
|
2121
|
+
"anyOf": [
|
|
2122
|
+
{
|
|
2123
|
+
"enum": [
|
|
2124
|
+
"src",
|
|
2125
|
+
"srcset",
|
|
2126
|
+
"css-url",
|
|
2127
|
+
"script",
|
|
2128
|
+
"script-module",
|
|
2129
|
+
"stylesheet",
|
|
2130
|
+
"html",
|
|
2131
|
+
"stylesheet-style",
|
|
2132
|
+
"stylesheet-style-attribute",
|
|
2133
|
+
"srcdoc"
|
|
2134
|
+
]
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"enum": [false]
|
|
2138
|
+
}
|
|
2139
|
+
]
|
|
2140
|
+
}
|
|
2141
|
+
},
|
|
2142
|
+
"required": ["attribute", "type"]
|
|
2143
|
+
}
|
|
2144
|
+
]
|
|
2145
|
+
},
|
|
2146
|
+
"minItems": 1
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
"type": "boolean"
|
|
2150
|
+
}
|
|
2151
|
+
]
|
|
2152
|
+
},
|
|
2153
|
+
"template": {
|
|
2154
|
+
"description": "Transform the raw source before the html parser extracts dependencies. Receives the source string and a context (`{ module, resource }`) and must return the html string to parse. Useful for compiling a templating language (Handlebars, EJS, Eta, …) to html so that URLs the template emits are still picked up as webpack dependencies. Runs synchronously.",
|
|
2155
|
+
"instanceof": "Function",
|
|
2156
|
+
"tsType": "import('../lib/html/HtmlParser').HtmlTemplateFunction"
|
|
2157
|
+
},
|
|
2158
|
+
"urlHints": {
|
|
2159
|
+
"$ref": "#/definitions/UrlHints"
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
"HtmlResourceHint": {
|
|
2164
|
+
"description": "A custom resource-hint `<link>` for `output.html.resourceHints`. Exactly one of `href` / `chunk` / `entry` names the target.",
|
|
2165
|
+
"type": "object",
|
|
2166
|
+
"additionalProperties": false,
|
|
2167
|
+
"properties": {
|
|
2168
|
+
"as": {
|
|
2169
|
+
"description": "The `as` attribute (`script`, `style`, `font`, …); defaults to `script` for chunk/entry references.",
|
|
2170
|
+
"type": "string"
|
|
2171
|
+
},
|
|
2172
|
+
"chunk": {
|
|
2173
|
+
"description": "Name of a chunk to hint; its emitted URL is resolved automatically.",
|
|
2174
|
+
"type": "string",
|
|
2175
|
+
"minLength": 1
|
|
2176
|
+
},
|
|
2177
|
+
"crossorigin": {
|
|
2178
|
+
"description": "The CORS mode; `true` maps to `anonymous`.",
|
|
2179
|
+
"anyOf": [
|
|
2180
|
+
{
|
|
2181
|
+
"enum": ["anonymous", "use-credentials"]
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
"type": "boolean"
|
|
2185
|
+
}
|
|
2186
|
+
]
|
|
2187
|
+
},
|
|
2188
|
+
"entry": {
|
|
2189
|
+
"description": "Name of an entrypoint to hint; expands to one hint per initial chunk.",
|
|
2190
|
+
"type": "string",
|
|
2191
|
+
"minLength": 1
|
|
2192
|
+
},
|
|
2193
|
+
"fetchPriority": {
|
|
2194
|
+
"description": "The `fetchpriority` attribute. Emitted on `preload` / `modulepreload` and on `prefetch` (the spec now permits it there).",
|
|
2195
|
+
"enum": ["low", "high", "auto"]
|
|
2196
|
+
},
|
|
2197
|
+
"href": {
|
|
2198
|
+
"description": "A literal URL used verbatim (external resource, `preconnect` origin, or an already-hashed asset).",
|
|
2199
|
+
"type": "string"
|
|
2200
|
+
},
|
|
2201
|
+
"integrity": {
|
|
2202
|
+
"description": "Subresource Integrity for a chunk/entry reference. Follows `output.html.integrity` by default; set `false` to opt this hint out.",
|
|
2203
|
+
"type": "boolean"
|
|
2204
|
+
},
|
|
2205
|
+
"media": {
|
|
2206
|
+
"description": "The `media` attribute.",
|
|
2207
|
+
"type": "string"
|
|
2208
|
+
},
|
|
2209
|
+
"rel": {
|
|
2210
|
+
"description": "The `rel` of the resource hint.",
|
|
2211
|
+
"enum": [
|
|
2212
|
+
"preload",
|
|
2213
|
+
"prefetch",
|
|
2214
|
+
"modulepreload",
|
|
2215
|
+
"preconnect",
|
|
2216
|
+
"dns-prefetch"
|
|
2217
|
+
]
|
|
2218
|
+
},
|
|
2219
|
+
"type": {
|
|
2220
|
+
"description": "The `type` attribute (MIME type).",
|
|
2221
|
+
"type": "string"
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
"required": ["rel"]
|
|
2225
|
+
},
|
|
1704
2226
|
"HttpUriAllowedUris": {
|
|
1705
2227
|
"description": "List of allowed URIs for building http resources.",
|
|
1706
2228
|
"cli": {
|
|
@@ -1837,6 +2359,52 @@
|
|
|
1837
2359
|
"description": "The name of the native import.meta object (can be exchanged for a polyfill).",
|
|
1838
2360
|
"type": "string"
|
|
1839
2361
|
},
|
|
2362
|
+
"ImportMetaParserOptions": {
|
|
2363
|
+
"description": "Enable/disable evaluating import.meta fields. Omitted fields are enabled and unknown fields are preserved. Custom fields are allowed.",
|
|
2364
|
+
"type": "object",
|
|
2365
|
+
"additionalProperties": {
|
|
2366
|
+
"description": "Enable/disable evaluating a custom import.meta field.",
|
|
2367
|
+
"type": "boolean"
|
|
2368
|
+
},
|
|
2369
|
+
"properties": {
|
|
2370
|
+
"dirname": {
|
|
2371
|
+
"description": "Enable/disable evaluating import.meta.dirname.",
|
|
2372
|
+
"type": "boolean"
|
|
2373
|
+
},
|
|
2374
|
+
"env": {
|
|
2375
|
+
"description": "Enable/disable evaluating import.meta.env.",
|
|
2376
|
+
"type": "boolean"
|
|
2377
|
+
},
|
|
2378
|
+
"filename": {
|
|
2379
|
+
"description": "Enable/disable evaluating import.meta.filename.",
|
|
2380
|
+
"type": "boolean"
|
|
2381
|
+
},
|
|
2382
|
+
"main": {
|
|
2383
|
+
"description": "Enable/disable evaluating import.meta.main.",
|
|
2384
|
+
"type": "boolean"
|
|
2385
|
+
},
|
|
2386
|
+
"resolve": {
|
|
2387
|
+
"description": "Enable/disable evaluating import.meta.resolve.",
|
|
2388
|
+
"type": "boolean"
|
|
2389
|
+
},
|
|
2390
|
+
"url": {
|
|
2391
|
+
"description": "Enable/disable evaluating import.meta.url.",
|
|
2392
|
+
"type": "boolean"
|
|
2393
|
+
},
|
|
2394
|
+
"webpack": {
|
|
2395
|
+
"description": "Enable/disable evaluating import.meta.webpack.",
|
|
2396
|
+
"type": "boolean"
|
|
2397
|
+
},
|
|
2398
|
+
"webpackContext": {
|
|
2399
|
+
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
|
2400
|
+
"type": "boolean"
|
|
2401
|
+
},
|
|
2402
|
+
"webpackHot": {
|
|
2403
|
+
"description": "Enable/disable evaluating import.meta.webpackHot.",
|
|
2404
|
+
"type": "boolean"
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
},
|
|
1840
2408
|
"InfrastructureLogging": {
|
|
1841
2409
|
"description": "Options for infrastructure level logging.",
|
|
1842
2410
|
"type": "object",
|
|
@@ -1870,6 +2438,17 @@
|
|
|
1870
2438
|
"description": "Log level.",
|
|
1871
2439
|
"enum": ["none", "error", "warn", "info", "log", "verbose"]
|
|
1872
2440
|
},
|
|
2441
|
+
"progress": {
|
|
2442
|
+
"description": "Show build progress. `\"auto\"` shows it only for interactive terminals. This option is only used when no custom console is provided.",
|
|
2443
|
+
"anyOf": [
|
|
2444
|
+
{
|
|
2445
|
+
"enum": ["auto"]
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
"type": "boolean"
|
|
2449
|
+
}
|
|
2450
|
+
]
|
|
2451
|
+
},
|
|
1873
2452
|
"stream": {
|
|
1874
2453
|
"description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided.",
|
|
1875
2454
|
"tsType": "NodeJS.WritableStream & { isTTY?: boolean, columns?: number, rows?: number }"
|
|
@@ -1884,6 +2463,10 @@
|
|
|
1884
2463
|
"amd": {
|
|
1885
2464
|
"$ref": "#/definitions/Amd"
|
|
1886
2465
|
},
|
|
2466
|
+
"anonymousDefaultExportName": {
|
|
2467
|
+
"description": "Set .name to \"default\" for anonymous default export functions and classes per ES spec. Disable to reduce output size when .name is not needed.",
|
|
2468
|
+
"type": "boolean"
|
|
2469
|
+
},
|
|
1887
2470
|
"browserify": {
|
|
1888
2471
|
"description": "Enable/disable special handling for browserify bundles.",
|
|
1889
2472
|
"type": "boolean"
|
|
@@ -1911,6 +2494,17 @@
|
|
|
1911
2494
|
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.",
|
|
1912
2495
|
"type": "boolean"
|
|
1913
2496
|
},
|
|
2497
|
+
"dynamicImportCssPreload": {
|
|
2498
|
+
"description": "Auto-emit `<link rel=\"preload\" as=\"style\">` for the CSS of every dynamically imported (`import()`) chunk, so the stylesheet fetches in parallel with the chunk's JavaScript instead of after it parses. Unlike `dynamicImportPreload`, the JavaScript itself is not preloaded. `true` uses the default order; a number sets the preload order.",
|
|
2499
|
+
"anyOf": [
|
|
2500
|
+
{
|
|
2501
|
+
"type": "number"
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
"type": "boolean"
|
|
2505
|
+
}
|
|
2506
|
+
]
|
|
2507
|
+
},
|
|
1914
2508
|
"dynamicImportFetchPriority": {
|
|
1915
2509
|
"description": "Specifies global fetchPriority for dynamic import.",
|
|
1916
2510
|
"enum": ["low", "high", "auto", false]
|
|
@@ -1986,7 +2580,7 @@
|
|
|
1986
2580
|
"enum": ["error", "warn", "auto", false]
|
|
1987
2581
|
},
|
|
1988
2582
|
"importMeta": {
|
|
1989
|
-
"description": "Enable/disable evaluating import.meta. Set to 'preserve-unknown' to preserve unknown properties for runtime evaluation.",
|
|
2583
|
+
"description": "Enable/disable evaluating import.meta. Set to 'preserve-unknown' or an object to preserve unknown properties for runtime evaluation.",
|
|
1990
2584
|
"anyOf": [
|
|
1991
2585
|
{
|
|
1992
2586
|
"type": "boolean"
|
|
@@ -1994,12 +2588,16 @@
|
|
|
1994
2588
|
{
|
|
1995
2589
|
"type": "string",
|
|
1996
2590
|
"enum": ["preserve-unknown"]
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
"$ref": "#/definitions/ImportMetaParserOptions"
|
|
1997
2594
|
}
|
|
1998
2595
|
]
|
|
1999
2596
|
},
|
|
2000
2597
|
"importMetaContext": {
|
|
2001
|
-
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
|
2002
|
-
"type": "boolean"
|
|
2598
|
+
"description": "Deprecated in favor of \"importMeta\" object option with a \"webpackContext\" field. Enable/disable evaluating import.meta.webpackContext.",
|
|
2599
|
+
"type": "boolean",
|
|
2600
|
+
"deprecated": true
|
|
2003
2601
|
},
|
|
2004
2602
|
"node": {
|
|
2005
2603
|
"$ref": "#/definitions/Node"
|
|
@@ -2013,6 +2611,15 @@
|
|
|
2013
2611
|
"instanceof": "Function",
|
|
2014
2612
|
"tsType": "import('../lib/javascript/JavascriptParser').ParseFunction"
|
|
2015
2613
|
},
|
|
2614
|
+
"pureFunctions": {
|
|
2615
|
+
"description": "Mark the listed top-level function names for pure-function-based tree shaking.",
|
|
2616
|
+
"type": "array",
|
|
2617
|
+
"items": {
|
|
2618
|
+
"description": "A top-level function name in the module to treat as side-effect-free when called.",
|
|
2619
|
+
"type": "string",
|
|
2620
|
+
"minLength": 1
|
|
2621
|
+
}
|
|
2622
|
+
},
|
|
2016
2623
|
"reexportExportsPresence": {
|
|
2017
2624
|
"description": "Specifies the behavior of invalid export names in \"export ... from ...\". This might be useful to disable during the migration from \"export ... from ...\" to \"export type ... from ...\" when reexporting types in TypeScript.",
|
|
2018
2625
|
"enum": ["error", "warn", "auto", false]
|
|
@@ -2042,6 +2649,10 @@
|
|
|
2042
2649
|
"type": "boolean",
|
|
2043
2650
|
"deprecated": true
|
|
2044
2651
|
},
|
|
2652
|
+
"strictModeViolations": {
|
|
2653
|
+
"description": "Specifies the behavior of constructs that break at runtime in strict mode (e.g. 'with', 'arguments.callee', assigning to read-only globals) when modules are emitted as ES module output.",
|
|
2654
|
+
"enum": ["error", "warn", false]
|
|
2655
|
+
},
|
|
2045
2656
|
"strictThisContextOnImports": {
|
|
2046
2657
|
"description": "Handle the this context correctly according to the spec for namespace objects.",
|
|
2047
2658
|
"type": "boolean"
|
|
@@ -2050,6 +2661,11 @@
|
|
|
2050
2661
|
"description": "Enable/disable parsing of System.js special syntax like System.import, System.get, System.set and System.register.",
|
|
2051
2662
|
"type": "boolean"
|
|
2052
2663
|
},
|
|
2664
|
+
"typescript": {
|
|
2665
|
+
"description": "Enable typescript support.",
|
|
2666
|
+
"type": "boolean",
|
|
2667
|
+
"experimental": true
|
|
2668
|
+
},
|
|
2053
2669
|
"unknownContextCritical": {
|
|
2054
2670
|
"description": "Enable warnings when using the require function in a not statically analyse-able way.",
|
|
2055
2671
|
"type": "boolean"
|
|
@@ -2085,6 +2701,9 @@
|
|
|
2085
2701
|
}
|
|
2086
2702
|
]
|
|
2087
2703
|
},
|
|
2704
|
+
"urlHints": {
|
|
2705
|
+
"$ref": "#/definitions/UrlHints"
|
|
2706
|
+
},
|
|
2088
2707
|
"worker": {
|
|
2089
2708
|
"description": "Disable or configure parsing of WebWorker syntax like new Worker() or navigator.serviceWorker.register().",
|
|
2090
2709
|
"anyOf": [
|
|
@@ -2101,6 +2720,22 @@
|
|
|
2101
2720
|
}
|
|
2102
2721
|
]
|
|
2103
2722
|
},
|
|
2723
|
+
"worklet": {
|
|
2724
|
+
"description": "Disable or configure parsing of Worklet syntax like context.audioWorklet.addModule() or CSS.paintWorklet.addModule().",
|
|
2725
|
+
"anyOf": [
|
|
2726
|
+
{
|
|
2727
|
+
"type": "array",
|
|
2728
|
+
"items": {
|
|
2729
|
+
"description": "Specify a syntax that should be parsed as Worklet reference. '*context.audioWorklet.addModule()' handles 'context.audioWorklet.addModule()', 'abc()' handles 'abc()', and combinations are also possible.",
|
|
2730
|
+
"type": "string",
|
|
2731
|
+
"minLength": 1
|
|
2732
|
+
}
|
|
2733
|
+
},
|
|
2734
|
+
{
|
|
2735
|
+
"type": "boolean"
|
|
2736
|
+
}
|
|
2737
|
+
]
|
|
2738
|
+
},
|
|
2104
2739
|
"wrappedContextCritical": {
|
|
2105
2740
|
"description": "Enable warnings for partial dynamic dependencies.",
|
|
2106
2741
|
"type": "boolean"
|
|
@@ -2779,8 +3414,15 @@
|
|
|
2779
3414
|
]
|
|
2780
3415
|
},
|
|
2781
3416
|
"concatenateModules": {
|
|
2782
|
-
"description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer.",
|
|
2783
|
-
"
|
|
3417
|
+
"description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer. An options object implies 'true'.",
|
|
3418
|
+
"anyOf": [
|
|
3419
|
+
{
|
|
3420
|
+
"type": "boolean"
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
"$ref": "#/definitions/ConcatenateModulesOptions"
|
|
3424
|
+
}
|
|
3425
|
+
]
|
|
2784
3426
|
},
|
|
2785
3427
|
"emitOnErrors": {
|
|
2786
3428
|
"description": "Emit assets even when errors occur. Critical errors are emitted into the generated code and will cause errors at runtime.",
|
|
@@ -2790,6 +3432,10 @@
|
|
|
2790
3432
|
"description": "Also flag chunks as loaded which contain a subset of the modules.",
|
|
2791
3433
|
"type": "boolean"
|
|
2792
3434
|
},
|
|
3435
|
+
"inlineExports": {
|
|
3436
|
+
"description": "Inline ESM exports that bind to small primitive constants (≤6-byte null/undefined/boolean/number/string). Inlining makes the import dependency inactive so DCE can drop the export and possibly the module.",
|
|
3437
|
+
"type": "boolean"
|
|
3438
|
+
},
|
|
2793
3439
|
"innerGraph": {
|
|
2794
3440
|
"description": "Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.",
|
|
2795
3441
|
"type": "boolean"
|
|
@@ -2947,8 +3593,15 @@
|
|
|
2947
3593
|
]
|
|
2948
3594
|
},
|
|
2949
3595
|
"concatenateModules": {
|
|
2950
|
-
"description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer.",
|
|
2951
|
-
"
|
|
3596
|
+
"description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer. An options object implies 'true'.",
|
|
3597
|
+
"anyOf": [
|
|
3598
|
+
{
|
|
3599
|
+
"type": "boolean"
|
|
3600
|
+
},
|
|
3601
|
+
{
|
|
3602
|
+
"$ref": "#/definitions/ConcatenateModulesOptions"
|
|
3603
|
+
}
|
|
3604
|
+
]
|
|
2952
3605
|
},
|
|
2953
3606
|
"emitOnErrors": {
|
|
2954
3607
|
"description": "Emit assets even when errors occur. Critical errors are emitted into the generated code and will cause errors at runtime.",
|
|
@@ -2958,6 +3611,10 @@
|
|
|
2958
3611
|
"description": "Also flag chunks as loaded which contain a subset of the modules.",
|
|
2959
3612
|
"type": "boolean"
|
|
2960
3613
|
},
|
|
3614
|
+
"inlineExports": {
|
|
3615
|
+
"description": "Inline ESM exports that bind to small primitive constants (≤6-byte null/undefined/boolean/number/string). Inlining makes the import dependency inactive so DCE can drop the export and possibly the module.",
|
|
3616
|
+
"type": "boolean"
|
|
3617
|
+
},
|
|
2961
3618
|
"innerGraph": {
|
|
2962
3619
|
"description": "Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.",
|
|
2963
3620
|
"type": "boolean"
|
|
@@ -3183,7 +3840,7 @@
|
|
|
3183
3840
|
},
|
|
3184
3841
|
{
|
|
3185
3842
|
"instanceof": "Function",
|
|
3186
|
-
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
3843
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn<import(\"../lib/Compilation\").PathDataChunk>"
|
|
3187
3844
|
}
|
|
3188
3845
|
]
|
|
3189
3846
|
},
|
|
@@ -3506,7 +4163,7 @@
|
|
|
3506
4163
|
},
|
|
3507
4164
|
{
|
|
3508
4165
|
"instanceof": "Function",
|
|
3509
|
-
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
4166
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn<import(\"../lib/Compilation\").PathDataChunk>"
|
|
3510
4167
|
}
|
|
3511
4168
|
]
|
|
3512
4169
|
},
|
|
@@ -3729,6 +4386,15 @@
|
|
|
3729
4386
|
"hotUpdateMainFilename": {
|
|
3730
4387
|
"$ref": "#/definitions/HotUpdateMainFilename"
|
|
3731
4388
|
},
|
|
4389
|
+
"html": {
|
|
4390
|
+
"$ref": "#/definitions/OutputHtml"
|
|
4391
|
+
},
|
|
4392
|
+
"htmlChunkFilename": {
|
|
4393
|
+
"$ref": "#/definitions/HtmlChunkFilename"
|
|
4394
|
+
},
|
|
4395
|
+
"htmlFilename": {
|
|
4396
|
+
"$ref": "#/definitions/HtmlFilename"
|
|
4397
|
+
},
|
|
3732
4398
|
"ignoreBrowserWarnings": {
|
|
3733
4399
|
"description": "Ignore warnings in the browser.",
|
|
3734
4400
|
"type": "boolean"
|
|
@@ -3777,6 +4443,9 @@
|
|
|
3777
4443
|
"publicPath": {
|
|
3778
4444
|
"$ref": "#/definitions/PublicPath"
|
|
3779
4445
|
},
|
|
4446
|
+
"resourceHints": {
|
|
4447
|
+
"$ref": "#/definitions/ResourceHints"
|
|
4448
|
+
},
|
|
3780
4449
|
"scriptType": {
|
|
3781
4450
|
"$ref": "#/definitions/ScriptType"
|
|
3782
4451
|
},
|
|
@@ -3792,6 +4461,9 @@
|
|
|
3792
4461
|
"strictModuleExceptionHandling": {
|
|
3793
4462
|
"$ref": "#/definitions/StrictModuleExceptionHandling"
|
|
3794
4463
|
},
|
|
4464
|
+
"strictModuleResolution": {
|
|
4465
|
+
"$ref": "#/definitions/StrictModuleResolution"
|
|
4466
|
+
},
|
|
3795
4467
|
"trustedTypes": {
|
|
3796
4468
|
"description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.",
|
|
3797
4469
|
"anyOf": [
|
|
@@ -3824,9 +4496,15 @@
|
|
|
3824
4496
|
"wasmLoading": {
|
|
3825
4497
|
"$ref": "#/definitions/WasmLoading"
|
|
3826
4498
|
},
|
|
4499
|
+
"wasmStreamingFallback": {
|
|
4500
|
+
"$ref": "#/definitions/WasmStreamingFallback"
|
|
4501
|
+
},
|
|
3827
4502
|
"webassemblyModuleFilename": {
|
|
3828
4503
|
"$ref": "#/definitions/WebassemblyModuleFilename"
|
|
3829
4504
|
},
|
|
4505
|
+
"workerChunkFilename": {
|
|
4506
|
+
"$ref": "#/definitions/WorkerChunkFilename"
|
|
4507
|
+
},
|
|
3830
4508
|
"workerChunkLoading": {
|
|
3831
4509
|
"$ref": "#/definitions/ChunkLoading"
|
|
3832
4510
|
},
|
|
@@ -3838,6 +4516,213 @@
|
|
|
3838
4516
|
}
|
|
3839
4517
|
}
|
|
3840
4518
|
},
|
|
4519
|
+
"OutputHtml": {
|
|
4520
|
+
"description": "Generate an HTML file for each non-HTML entrypoint with its JS and CSS output chunks injected. Can be overridden per entry via the entry descriptor `html` option.",
|
|
4521
|
+
"anyOf": [
|
|
4522
|
+
{
|
|
4523
|
+
"type": "boolean"
|
|
4524
|
+
},
|
|
4525
|
+
{
|
|
4526
|
+
"$ref": "#/definitions/OutputHtmlOptions"
|
|
4527
|
+
}
|
|
4528
|
+
]
|
|
4529
|
+
},
|
|
4530
|
+
"OutputHtmlOptions": {
|
|
4531
|
+
"description": "Options for the generated HTML files.",
|
|
4532
|
+
"type": "object",
|
|
4533
|
+
"additionalProperties": false,
|
|
4534
|
+
"properties": {
|
|
4535
|
+
"base": {
|
|
4536
|
+
"description": "Inject a `<base>` element into the page `<head>`. A string sets `href`; an object sets both `href` and optionally `target`. Skipped if the HTML already contains a `<base>` element.",
|
|
4537
|
+
"anyOf": [
|
|
4538
|
+
{
|
|
4539
|
+
"type": "string",
|
|
4540
|
+
"minLength": 1
|
|
4541
|
+
},
|
|
4542
|
+
{
|
|
4543
|
+
"type": "object",
|
|
4544
|
+
"additionalProperties": false,
|
|
4545
|
+
"properties": {
|
|
4546
|
+
"href": {
|
|
4547
|
+
"description": "Value for the `href` attribute of the `<base>` element.",
|
|
4548
|
+
"type": "string",
|
|
4549
|
+
"minLength": 1
|
|
4550
|
+
},
|
|
4551
|
+
"target": {
|
|
4552
|
+
"description": "Value for the `target` attribute of the `<base>` element (e.g. `\"_blank\"`).",
|
|
4553
|
+
"type": "string",
|
|
4554
|
+
"minLength": 1
|
|
4555
|
+
}
|
|
4556
|
+
},
|
|
4557
|
+
"required": ["href"]
|
|
4558
|
+
}
|
|
4559
|
+
]
|
|
4560
|
+
},
|
|
4561
|
+
"csp": {
|
|
4562
|
+
"description": "Inject a `<meta http-equiv=\"Content-Security-Policy\">` into every webpack-emitted HTML page. `false` (default) does nothing; `true` uses a strict baseline (`script-src 'self'`, `style-src 'self'`, `object-src 'none'`, `base-uri 'self'`) and appends a `sha256` hash of every inline `<script>`/`<style>` to `script-src`/`style-src`. An object customizes it. Skipped when the page already declares a CSP.",
|
|
4563
|
+
"anyOf": [
|
|
4564
|
+
{
|
|
4565
|
+
"type": "boolean"
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
"type": "object",
|
|
4569
|
+
"additionalProperties": false,
|
|
4570
|
+
"properties": {
|
|
4571
|
+
"hashFunction": {
|
|
4572
|
+
"description": "Hash algorithm used for inline `<script>`/`<style>` sources.",
|
|
4573
|
+
"enum": ["sha256", "sha384", "sha512"]
|
|
4574
|
+
},
|
|
4575
|
+
"nonce": {
|
|
4576
|
+
"description": "Placeholder nonce added to injected `<script>`/`<style>` tags and as a `'nonce-…'` source; rewrite it per request server-side.",
|
|
4577
|
+
"type": "string",
|
|
4578
|
+
"minLength": 1
|
|
4579
|
+
},
|
|
4580
|
+
"policy": {
|
|
4581
|
+
"description": "CSP directives merged over the baseline. Each key is a directive (e.g. `\"script-src\"`); the value is a source string or list. Inline hashes and any `nonce` are still appended to `script-src`/`style-src`.",
|
|
4582
|
+
"type": "object",
|
|
4583
|
+
"additionalProperties": {
|
|
4584
|
+
"description": "A CSP source expression, or a list of them, for this directive.",
|
|
4585
|
+
"anyOf": [
|
|
4586
|
+
{
|
|
4587
|
+
"type": "array",
|
|
4588
|
+
"items": {
|
|
4589
|
+
"description": "A CSP source expression (e.g. `\"'self'\"`, `\"https://cdn.example.com\"`).",
|
|
4590
|
+
"type": "string"
|
|
4591
|
+
}
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
"type": "string"
|
|
4595
|
+
}
|
|
4596
|
+
]
|
|
4597
|
+
}
|
|
4598
|
+
}
|
|
4599
|
+
}
|
|
4600
|
+
}
|
|
4601
|
+
]
|
|
4602
|
+
},
|
|
4603
|
+
"favicon": {
|
|
4604
|
+
"description": "Favicon(s) for webpack-generated HTML (authored pages are left untouched). `false` (default) injects nothing; `true` injects the webpack logo; a string is a path to an icon; an object maps each `<link rel>` to an icon — a path string, an object with the icon `href` plus extra link attributes (`sizes`, `media`, `color`, `type`, `crossorigin`), or an array of these for multiple icons under the same `rel` (e.g. several `sizes`, or light/dark `media` variants); a function receives the page name and returns one of these. Every icon is emitted as a hashed asset.",
|
|
4605
|
+
"anyOf": [
|
|
4606
|
+
{
|
|
4607
|
+
"type": "boolean"
|
|
4608
|
+
},
|
|
4609
|
+
{
|
|
4610
|
+
"type": "string",
|
|
4611
|
+
"minLength": 1
|
|
4612
|
+
},
|
|
4613
|
+
{
|
|
4614
|
+
"type": "object",
|
|
4615
|
+
"additionalProperties": {
|
|
4616
|
+
"description": "Icon(s) for a single `<link rel>`: one icon or an array of icons.",
|
|
4617
|
+
"anyOf": [
|
|
4618
|
+
{
|
|
4619
|
+
"type": "array",
|
|
4620
|
+
"items": {
|
|
4621
|
+
"$ref": "#/definitions/HtmlFaviconIcon"
|
|
4622
|
+
},
|
|
4623
|
+
"minItems": 1
|
|
4624
|
+
},
|
|
4625
|
+
{
|
|
4626
|
+
"$ref": "#/definitions/HtmlFaviconIcon"
|
|
4627
|
+
}
|
|
4628
|
+
]
|
|
4629
|
+
}
|
|
4630
|
+
},
|
|
4631
|
+
{
|
|
4632
|
+
"instanceof": "Function",
|
|
4633
|
+
"tsType": "((name: string) => boolean | string | { [rel: string]: HtmlFaviconIcon | HtmlFaviconIcon[] })"
|
|
4634
|
+
}
|
|
4635
|
+
]
|
|
4636
|
+
},
|
|
4637
|
+
"inject": {
|
|
4638
|
+
"description": "Where to place injected chunk `<script>`/`<link>` tags. `\"body\"` (default; `\"head\"` with `output.module`) keeps them next to the entry tag — end of `<body>` on generated pages; `\"head\"` moves them into `<head>`; `false` suppresses sibling-chunk injection (entry tags and resource hints remain).",
|
|
4639
|
+
"anyOf": [
|
|
4640
|
+
{
|
|
4641
|
+
"enum": ["body", "head"]
|
|
4642
|
+
},
|
|
4643
|
+
{
|
|
4644
|
+
"type": "boolean",
|
|
4645
|
+
"enum": [false]
|
|
4646
|
+
}
|
|
4647
|
+
]
|
|
4648
|
+
},
|
|
4649
|
+
"inline": {
|
|
4650
|
+
"description": "Inline the content of matching chunks directly into the HTML instead of emitting a separate `<script>`/`<link>` tag. `true` inlines every chunk; `\"script\"` inlines only JavaScript, `\"style\"` only CSS; an array of `RegExp` patterns matches against the chunk name.",
|
|
4651
|
+
"anyOf": [
|
|
4652
|
+
{
|
|
4653
|
+
"type": "array",
|
|
4654
|
+
"items": {
|
|
4655
|
+
"description": "A regular expression matched against the chunk name; matching chunks are inlined.",
|
|
4656
|
+
"instanceof": "RegExp",
|
|
4657
|
+
"tsType": "RegExp"
|
|
4658
|
+
}
|
|
4659
|
+
},
|
|
4660
|
+
{
|
|
4661
|
+
"enum": ["script", "style"]
|
|
4662
|
+
},
|
|
4663
|
+
{
|
|
4664
|
+
"type": "boolean"
|
|
4665
|
+
}
|
|
4666
|
+
]
|
|
4667
|
+
},
|
|
4668
|
+
"integrity": {
|
|
4669
|
+
"description": "Add Subresource Integrity (SRI) `integrity` attributes to injected `<script>`/`<link>` tags. `true` uses `['sha384']`; an array sets the hash algorithms; a function receives each referenced asset and returns the algorithms to use or `false` to skip it.",
|
|
4670
|
+
"anyOf": [
|
|
4671
|
+
{
|
|
4672
|
+
"type": "array",
|
|
4673
|
+
"items": {
|
|
4674
|
+
"description": "A hash algorithm name passed to Node.js `crypto.createHash` (e.g. 'sha256', 'sha384', 'sha512').",
|
|
4675
|
+
"type": "string",
|
|
4676
|
+
"minLength": 1
|
|
4677
|
+
}
|
|
4678
|
+
},
|
|
4679
|
+
{
|
|
4680
|
+
"type": "boolean"
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
"instanceof": "Function",
|
|
4684
|
+
"tsType": "((asset: { chunk: import('../lib/Chunk'), filename: string }) => string[] | false)"
|
|
4685
|
+
}
|
|
4686
|
+
]
|
|
4687
|
+
},
|
|
4688
|
+
"manifest": {
|
|
4689
|
+
"description": "Web app manifest for webpack-generated HTML (authored pages are left untouched). `false` (default) injects nothing. A string is a path to an existing `.webmanifest` file to link. An object is the manifest contents — serialized, emitted as a hashed `.webmanifest` and linked with `<link rel=\"manifest\">`; its `icons`/`screenshots` `src` paths resolve like any request and are emitted as hashed assets. A function receives the page name and returns one of these.",
|
|
4690
|
+
"anyOf": [
|
|
4691
|
+
{
|
|
4692
|
+
"enum": [false]
|
|
4693
|
+
},
|
|
4694
|
+
{
|
|
4695
|
+
"type": "string",
|
|
4696
|
+
"minLength": 1
|
|
4697
|
+
},
|
|
4698
|
+
{
|
|
4699
|
+
"type": "object",
|
|
4700
|
+
"additionalProperties": true
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
"instanceof": "Function",
|
|
4704
|
+
"tsType": "((name: string) => false | string | { [key: string]: EXPECTED_ANY })"
|
|
4705
|
+
}
|
|
4706
|
+
]
|
|
4707
|
+
},
|
|
4708
|
+
"meta": {
|
|
4709
|
+
"description": "Inject `<meta>` tags into the page `<head>`. Each key is the `name` attribute (or `\"charset\"` for a charset declaration); the value is the `content` string. Keys beginning with `og:` use the `property` attribute instead of `name`. A tag is skipped if the HTML already contains a meta with the same name.",
|
|
4710
|
+
"type": "object",
|
|
4711
|
+
"additionalProperties": {
|
|
4712
|
+
"description": "Content string for the meta tag.",
|
|
4713
|
+
"type": "string"
|
|
4714
|
+
}
|
|
4715
|
+
},
|
|
4716
|
+
"scriptLoading": {
|
|
4717
|
+
"description": "How injected `<script>` tags load. `auto` (default) emits a module script for ES module output and `defer` otherwise; `defer` forces a deferred script; `blocking` emits a plain blocking script.",
|
|
4718
|
+
"enum": ["auto", "blocking", "defer"]
|
|
4719
|
+
},
|
|
4720
|
+
"title": {
|
|
4721
|
+
"description": "Sets the `<title>` of the generated HTML page. Skipped if the HTML already contains a `<title>` element.",
|
|
4722
|
+
"type": "string"
|
|
4723
|
+
}
|
|
4724
|
+
}
|
|
4725
|
+
},
|
|
3841
4726
|
"OutputModule": {
|
|
3842
4727
|
"description": "Output javascript files as module source type.",
|
|
3843
4728
|
"type": "boolean"
|
|
@@ -3935,6 +4820,15 @@
|
|
|
3935
4820
|
"hotUpdateMainFilename": {
|
|
3936
4821
|
"$ref": "#/definitions/HotUpdateMainFilename"
|
|
3937
4822
|
},
|
|
4823
|
+
"html": {
|
|
4824
|
+
"$ref": "#/definitions/OutputHtml"
|
|
4825
|
+
},
|
|
4826
|
+
"htmlChunkFilename": {
|
|
4827
|
+
"$ref": "#/definitions/HtmlChunkFilename"
|
|
4828
|
+
},
|
|
4829
|
+
"htmlFilename": {
|
|
4830
|
+
"$ref": "#/definitions/HtmlFilename"
|
|
4831
|
+
},
|
|
3938
4832
|
"ignoreBrowserWarnings": {
|
|
3939
4833
|
"description": "Ignore warnings in the browser.",
|
|
3940
4834
|
"type": "boolean"
|
|
@@ -3963,6 +4857,9 @@
|
|
|
3963
4857
|
"publicPath": {
|
|
3964
4858
|
"$ref": "#/definitions/PublicPath"
|
|
3965
4859
|
},
|
|
4860
|
+
"resourceHints": {
|
|
4861
|
+
"$ref": "#/definitions/ResourceHintsOptions"
|
|
4862
|
+
},
|
|
3966
4863
|
"scriptType": {
|
|
3967
4864
|
"$ref": "#/definitions/ScriptType"
|
|
3968
4865
|
},
|
|
@@ -3978,6 +4875,9 @@
|
|
|
3978
4875
|
"strictModuleExceptionHandling": {
|
|
3979
4876
|
"$ref": "#/definitions/StrictModuleExceptionHandling"
|
|
3980
4877
|
},
|
|
4878
|
+
"strictModuleResolution": {
|
|
4879
|
+
"$ref": "#/definitions/StrictModuleResolution"
|
|
4880
|
+
},
|
|
3981
4881
|
"trustedTypes": {
|
|
3982
4882
|
"$ref": "#/definitions/TrustedTypes"
|
|
3983
4883
|
},
|
|
@@ -3987,9 +4887,15 @@
|
|
|
3987
4887
|
"wasmLoading": {
|
|
3988
4888
|
"$ref": "#/definitions/WasmLoading"
|
|
3989
4889
|
},
|
|
4890
|
+
"wasmStreamingFallback": {
|
|
4891
|
+
"$ref": "#/definitions/WasmStreamingFallback"
|
|
4892
|
+
},
|
|
3990
4893
|
"webassemblyModuleFilename": {
|
|
3991
4894
|
"$ref": "#/definitions/WebassemblyModuleFilename"
|
|
3992
4895
|
},
|
|
4896
|
+
"workerChunkFilename": {
|
|
4897
|
+
"$ref": "#/definitions/WorkerChunkFilename"
|
|
4898
|
+
},
|
|
3993
4899
|
"workerChunkLoading": {
|
|
3994
4900
|
"$ref": "#/definitions/ChunkLoading"
|
|
3995
4901
|
},
|
|
@@ -4040,13 +4946,16 @@
|
|
|
4040
4946
|
"$ref": "#/definitions/CssParserOptions"
|
|
4041
4947
|
},
|
|
4042
4948
|
"css/auto": {
|
|
4043
|
-
"$ref": "#/definitions/
|
|
4949
|
+
"$ref": "#/definitions/CssAutoOrModuleParserOptions"
|
|
4044
4950
|
},
|
|
4045
4951
|
"css/global": {
|
|
4046
4952
|
"$ref": "#/definitions/CssModuleParserOptions"
|
|
4047
4953
|
},
|
|
4048
4954
|
"css/module": {
|
|
4049
|
-
"$ref": "#/definitions/
|
|
4955
|
+
"$ref": "#/definitions/CssAutoOrModuleParserOptions"
|
|
4956
|
+
},
|
|
4957
|
+
"html": {
|
|
4958
|
+
"$ref": "#/definitions/HtmlParserOptions"
|
|
4050
4959
|
},
|
|
4051
4960
|
"javascript": {
|
|
4052
4961
|
"$ref": "#/definitions/JavascriptParserOptions"
|
|
@@ -4623,6 +5532,68 @@
|
|
|
4623
5532
|
}
|
|
4624
5533
|
]
|
|
4625
5534
|
},
|
|
5535
|
+
"ResourceHints": {
|
|
5536
|
+
"description": "Resource-hint (`<link rel=\"prefetch\">` / `<link rel=\"preload\">` / `<link rel=\"modulepreload\">` / `<link rel=\"preconnect\">`) emission for extracted HTML entries and URL-referenced assets. Accepts the initial-graph shorthand (boolean / `\"prefetch\"` / `\"preload\"` / `\"none\"` / `HtmlResourceHint[]` / function — equivalent to `{ initial: <value> }`) or the full object form `{ initial, urlHints, preconnect, modulePreloadPolyfill, manifest }`. `initial` defaults on for ESM output (`output.module`), where native `import()` would otherwise waterfall; classic output stays opt-in.",
|
|
5537
|
+
"anyOf": [
|
|
5538
|
+
{
|
|
5539
|
+
"$ref": "#/definitions/ResourceHintsInitial"
|
|
5540
|
+
},
|
|
5541
|
+
{
|
|
5542
|
+
"$ref": "#/definitions/ResourceHintsOptions"
|
|
5543
|
+
}
|
|
5544
|
+
]
|
|
5545
|
+
},
|
|
5546
|
+
"ResourceHintsInitial": {
|
|
5547
|
+
"description": "Initial dependency-graph chunk hints. `true` auto-emits `<link rel=\"modulepreload\">` (ESM output) or `<link rel=\"preload\" as=\"script\">` (classic) for each of the entry's initial dependency chunks; `\"prefetch\"` uses `<link rel=\"prefetch\">`; `\"preload\"` is an alias of `true`; `false` disables chunk hints (URL-asset hints from magic comments / `urlHints` still fire); `\"none\"` is a hard off switch (no `<link>` anywhere, empty stats / manifest); an array of `HtmlResourceHint` descriptors replaces the auto set; a function receives the auto `defaultHints` plus context (`entryName`, `entrypoint`, `hostType: \"html\" | \"js\"`, `compilation`) and returns the final list (replaces the removed `resolveDependencies` hook).",
|
|
5548
|
+
"anyOf": [
|
|
5549
|
+
{
|
|
5550
|
+
"type": "array",
|
|
5551
|
+
"items": {
|
|
5552
|
+
"$ref": "#/definitions/HtmlResourceHint"
|
|
5553
|
+
}
|
|
5554
|
+
},
|
|
5555
|
+
{
|
|
5556
|
+
"enum": ["prefetch", "preload", "none"]
|
|
5557
|
+
},
|
|
5558
|
+
{
|
|
5559
|
+
"type": "boolean"
|
|
5560
|
+
},
|
|
5561
|
+
{
|
|
5562
|
+
"instanceof": "Function",
|
|
5563
|
+
"tsType": "((context: { entryName: string, entrypoint: import('../lib/Entrypoint'), hostType: 'html' | 'js', compilation: import('../lib/Compilation'), defaultHints: (import('../lib/dependencies/HtmlEntryDependency').HtmlResourceHint & { hostChunks: string[] })[] }) => import('../lib/dependencies/HtmlEntryDependency').HtmlResourceHint[])"
|
|
5564
|
+
}
|
|
5565
|
+
]
|
|
5566
|
+
},
|
|
5567
|
+
"ResourceHintsOptions": {
|
|
5568
|
+
"description": "Full resource-hint configuration.",
|
|
5569
|
+
"type": "object",
|
|
5570
|
+
"additionalProperties": false,
|
|
5571
|
+
"properties": {
|
|
5572
|
+
"initial": {
|
|
5573
|
+
"$ref": "#/definitions/ResourceHintsInitial"
|
|
5574
|
+
},
|
|
5575
|
+
"manifest": {
|
|
5576
|
+
"description": "Emit a JSON manifest of the resolved resource hints for each entrypoint (the same descriptors as `stats.entrypoints[].resourceHints`) as an output asset at this path. Lets an SSR server inject the `<link>` tags itself without walking the chunk graph — webpack's analogue of Vite's `build.ssrManifest`. Empty when `initial` is `\"none\"`.",
|
|
5577
|
+
"type": "string",
|
|
5578
|
+
"minLength": 1
|
|
5579
|
+
},
|
|
5580
|
+
"modulePreloadPolyfill": {
|
|
5581
|
+
"description": "Inject a tiny inline `<script>` polyfill for `<link rel=\"modulepreload\">` into extracted HTML pages. Defaults from the target's modulepreload support (`output.environment.modulePreload`) — `true` when the environment lacks native support, `false` when it has it. Set `false` to never inject (the `<link>` tags are still emitted but do nothing on browsers without support — useful under a strict CSP that forbids inline scripts).",
|
|
5582
|
+
"type": "boolean"
|
|
5583
|
+
},
|
|
5584
|
+
"preconnect": {
|
|
5585
|
+
"description": "Auto-emit `<link rel=\"preconnect\">` for the origin of a cross-origin `output.publicPath` (the origin bundles and assets are served from) into extracted HTML entries and the resource-hint stats / manifest. Mirrors `output.crossOriginLoading`. No-op when `publicPath` is relative or `\"auto\"`.",
|
|
5586
|
+
"type": "boolean"
|
|
5587
|
+
},
|
|
5588
|
+
"urlHints": {
|
|
5589
|
+
"description": "Project-wide URL-referenced-asset hint rules, applied as the base `urlHints` of every parser (JavaScript `new URL(...)`, CSS `url(...)`, HTML `<img src>` / `<link href>`). Parser-scoped `module.parser.<type>.urlHints` rules and per-URL magic comments still override these.",
|
|
5590
|
+
"type": "array",
|
|
5591
|
+
"items": {
|
|
5592
|
+
"$ref": "#/definitions/UrlHintRule"
|
|
5593
|
+
}
|
|
5594
|
+
}
|
|
5595
|
+
}
|
|
5596
|
+
},
|
|
4626
5597
|
"RuleSetCondition": {
|
|
4627
5598
|
"description": "A condition matcher.",
|
|
4628
5599
|
"cli": {
|
|
@@ -5350,6 +6321,10 @@
|
|
|
5350
6321
|
"description": "Limit of assets displayed in chunk groups.",
|
|
5351
6322
|
"type": "number"
|
|
5352
6323
|
},
|
|
6324
|
+
"chunkGroupResourceHints": {
|
|
6325
|
+
"description": "Include the resolved `<link>` resource-hint descriptors for each entrypoint (`entrypoints[name].resourceHints`). Combines `output.resourceHints.chunks` (initial-graph modulepreload/preload/prefetch) with `output.resourceHints.assets` (URL-referenced fonts / images / …). Lets SSR frameworks inject the hints server-side without walking the chunk graph themselves; the analogue of Vite's `build.ssrManifest`.",
|
|
6326
|
+
"type": "boolean"
|
|
6327
|
+
},
|
|
5353
6328
|
"chunkGroups": {
|
|
5354
6329
|
"description": "Display all chunk groups with the corresponding bundles.",
|
|
5355
6330
|
"type": "boolean"
|
|
@@ -5780,6 +6755,10 @@
|
|
|
5780
6755
|
"type": "boolean",
|
|
5781
6756
|
"deprecated": true
|
|
5782
6757
|
},
|
|
6758
|
+
"StrictModuleResolution": {
|
|
6759
|
+
"description": "Emit a runtime check that throws a 'MODULE_NOT_FOUND' error when a required module id is missing from the bundle.",
|
|
6760
|
+
"type": "boolean"
|
|
6761
|
+
},
|
|
5783
6762
|
"Target": {
|
|
5784
6763
|
"description": "Environment to build for. An array of environments to build for all of them when possible.",
|
|
5785
6764
|
"anyOf": [
|
|
@@ -5826,6 +6805,53 @@
|
|
|
5826
6805
|
"type": "string",
|
|
5827
6806
|
"minLength": 1
|
|
5828
6807
|
},
|
|
6808
|
+
"UrlHintRule": {
|
|
6809
|
+
"description": "One default-hint rule for URL-referenced assets emitted by this parser (JS `new URL(...)`, CSS `url(...)`, HTML `<img src>` / `<link href>` / `<script src>`). `test` / `include` / `exclude` match against the asset's request; omit all three to apply to every asset. Matching rules set the same fields a `webpackPrefetch` / `webpackPreload` / `webpackAs` / `webpackType` / `webpackMedia` / `webpackFetchPriority` magic comment would; explicit magic comments on the same URL still win.",
|
|
6810
|
+
"type": "object",
|
|
6811
|
+
"additionalProperties": false,
|
|
6812
|
+
"properties": {
|
|
6813
|
+
"as": {
|
|
6814
|
+
"description": "Default `as` attribute (script / style / font / image / …).",
|
|
6815
|
+
"type": "string"
|
|
6816
|
+
},
|
|
6817
|
+
"exclude": {
|
|
6818
|
+
"$ref": "#/definitions/RuleSetCondition"
|
|
6819
|
+
},
|
|
6820
|
+
"fetchPriority": {
|
|
6821
|
+
"description": "Default fetchpriority for prefetch / preload links.",
|
|
6822
|
+
"enum": ["low", "high", "auto", false]
|
|
6823
|
+
},
|
|
6824
|
+
"include": {
|
|
6825
|
+
"$ref": "#/definitions/RuleSetCondition"
|
|
6826
|
+
},
|
|
6827
|
+
"media": {
|
|
6828
|
+
"description": "Default `media` attribute (e.g. `\"(min-width: 800px)\"`).",
|
|
6829
|
+
"type": "string"
|
|
6830
|
+
},
|
|
6831
|
+
"prefetch": {
|
|
6832
|
+
"description": "When true, emit `<link rel=\"prefetch\">` for matching assets without an explicit hint comment.",
|
|
6833
|
+
"type": "boolean"
|
|
6834
|
+
},
|
|
6835
|
+
"preload": {
|
|
6836
|
+
"description": "When true, emit `<link rel=\"preload\">` for matching assets without an explicit hint comment.",
|
|
6837
|
+
"type": "boolean"
|
|
6838
|
+
},
|
|
6839
|
+
"test": {
|
|
6840
|
+
"$ref": "#/definitions/RuleSetCondition"
|
|
6841
|
+
},
|
|
6842
|
+
"type": {
|
|
6843
|
+
"description": "Default `type` attribute (MIME).",
|
|
6844
|
+
"type": "string"
|
|
6845
|
+
}
|
|
6846
|
+
}
|
|
6847
|
+
},
|
|
6848
|
+
"UrlHints": {
|
|
6849
|
+
"description": "URL-referenced-asset default hint rules for this parser (JavaScript `new URL(...)`, CSS `url(...)`, HTML `<img src>` / `<link href>` / `<script src>`).",
|
|
6850
|
+
"type": "array",
|
|
6851
|
+
"items": {
|
|
6852
|
+
"$ref": "#/definitions/UrlHintRule"
|
|
6853
|
+
}
|
|
6854
|
+
},
|
|
5829
6855
|
"Validate": {
|
|
5830
6856
|
"description": "Enable validation of webpack configuration. Defaults to true in development mode. In production mode, defaults to true unless futureDefaults is enabled, then defaults to false.",
|
|
5831
6857
|
"type": "boolean"
|
|
@@ -5897,6 +6923,10 @@
|
|
|
5897
6923
|
}
|
|
5898
6924
|
]
|
|
5899
6925
|
},
|
|
6926
|
+
"WasmStreamingFallback": {
|
|
6927
|
+
"description": "Fall back to non-streaming WebAssembly instantiation when streaming compilation fails because the server does not serve `.wasm` files with the `application/wasm` MIME type.",
|
|
6928
|
+
"type": "boolean"
|
|
6929
|
+
},
|
|
5900
6930
|
"Watch": {
|
|
5901
6931
|
"description": "Enter watch mode, which rebuilds on file change.",
|
|
5902
6932
|
"type": "boolean"
|
|
@@ -6111,6 +7141,14 @@
|
|
|
6111
7141
|
},
|
|
6112
7142
|
"required": ["apply"]
|
|
6113
7143
|
},
|
|
7144
|
+
"WorkerChunkFilename": {
|
|
7145
|
+
"description": "Specifies the filename template of non-initial output worker's files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
7146
|
+
"oneOf": [
|
|
7147
|
+
{
|
|
7148
|
+
"$ref": "#/definitions/FilenameTemplate"
|
|
7149
|
+
}
|
|
7150
|
+
]
|
|
7151
|
+
},
|
|
6114
7152
|
"WorkerPublicPath": {
|
|
6115
7153
|
"description": "Worker public path. Much like the public path, this sets the location where the worker script file is intended to be found. If not set, webpack will use the publicPath. Don't set this option unless your worker scripts are located at a different path from your other script files.",
|
|
6116
7154
|
"type": "string"
|