webpack 5.107.2 → 5.108.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/hot/dev-server.js +2 -0
- package/lib/APIPlugin.js +8 -4
- package/lib/CacheFacade.js +7 -0
- package/lib/Chunk.js +4 -0
- package/lib/ChunkGraph.js +30 -9
- package/lib/CircularModulesPlugin.js +190 -0
- package/lib/CleanPlugin.js +2 -1
- package/lib/Compilation.js +396 -65
- package/lib/Compiler.js +25 -11
- package/lib/ConcatenationScope.js +10 -3
- package/lib/ContextExclusionPlugin.js +1 -0
- package/lib/ContextModule.js +92 -47
- package/lib/ContextReplacementPlugin.js +4 -0
- package/lib/DefinePlugin.js +89 -15
- package/lib/Dependency.js +111 -7
- package/lib/EntryOptionPlugin.js +39 -2
- package/lib/EntryPlugin.js +2 -0
- package/lib/ExportsInfo.js +314 -73
- package/lib/ExternalModule.js +82 -34
- package/lib/ExternalModuleFactoryPlugin.js +1 -0
- package/lib/ExternalsPlugin.js +1 -0
- package/lib/FileSystemInfo.js +173 -23
- package/lib/FlagAllModulesAsUsedPlugin.js +1 -5
- package/lib/FlagDependencyExportsPlugin.js +23 -0
- package/lib/FlagDependencyUsagePlugin.js +87 -5
- package/lib/FlagEntryExportAsUsedPlugin.js +2 -0
- package/lib/Generator.js +8 -0
- package/lib/HotModuleReplacementPlugin.js +65 -28
- package/lib/IgnorePlugin.js +1 -0
- package/lib/InitFragment.js +5 -0
- package/lib/JavascriptMetaInfoPlugin.js +7 -5
- package/lib/LazyBarrel.js +361 -0
- package/lib/LoaderTargetPlugin.js +1 -0
- package/lib/Module.js +21 -42
- package/lib/ModuleGraph.js +3 -2
- package/lib/ModuleProfile.js +27 -1
- package/lib/ModuleTemplate.js +2 -0
- package/lib/MultiCompiler.js +2 -0
- package/lib/MultiStats.js +1 -0
- package/lib/MultiWatching.js +2 -0
- package/lib/NodeStuffPlugin.js +22 -17
- package/lib/NormalModule.js +142 -80
- package/lib/NormalModuleReplacementPlugin.js +2 -0
- package/lib/PrefetchPlugin.js +2 -0
- package/lib/ProgressPlugin.js +8 -0
- package/lib/ProvidePlugin.js +1 -0
- package/lib/RawModule.js +20 -16
- package/lib/RecordIdsPlugin.js +1 -0
- package/lib/RuntimeGlobals.js +5 -0
- package/lib/RuntimePlugin.js +58 -26
- package/lib/RuntimeTemplate.js +278 -21
- package/lib/SelfModuleFactory.js +1 -0
- package/lib/SourceMapDevToolPlugin.js +3 -5
- package/lib/Stats.js +1 -0
- package/lib/Template.js +8 -2
- package/lib/TemplatedPathPlugin.js +473 -131
- package/lib/WarnCaseSensitiveModulesPlugin.js +1 -0
- package/lib/WarnDeprecatedOptionPlugin.js +4 -0
- package/lib/WarnNoModeSetPlugin.js +1 -0
- package/lib/WatchIgnorePlugin.js +1 -0
- package/lib/Watching.js +9 -0
- package/lib/WebpackOptionsApply.js +50 -5
- package/lib/asset/AssetBytesGenerator.js +11 -3
- package/lib/asset/AssetGenerator.js +47 -22
- package/lib/asset/AssetModule.js +47 -0
- package/lib/asset/AssetModulesPlugin.js +14 -14
- package/lib/asset/AssetParser.js +2 -2
- package/lib/asset/AssetSourceGenerator.js +8 -0
- package/lib/asset/RawDataUrlModule.js +12 -13
- package/lib/buildChunkGraph.js +64 -7
- package/lib/bun/BunTargetPlugin.js +48 -0
- package/lib/cache/AddBuildDependenciesPlugin.js +1 -0
- package/lib/cache/AddManagedPathsPlugin.js +3 -0
- package/lib/cache/IdleFileCachePlugin.js +4 -0
- package/lib/cache/MemoryWithGcCachePlugin.js +1 -0
- package/lib/cache/PackFileCacheStrategy.js +1 -0
- package/lib/cache/ResolverCachePlugin.js +2 -0
- package/lib/cache/mergeEtags.js +2 -0
- package/lib/cli.js +109 -19
- package/lib/config/browserslistTargetHandler.js +99 -0
- package/lib/config/defaults.js +147 -7
- package/lib/config/defineConfig.js +31 -0
- package/lib/config/normalization.js +5 -0
- package/lib/config/target.js +181 -2
- package/lib/container/ContainerEntryModule.js +15 -14
- package/lib/container/ContainerExposedDependency.js +2 -2
- package/lib/container/ContainerReferencePlugin.js +1 -1
- package/lib/container/FallbackDependency.js +5 -7
- package/lib/container/FallbackModule.js +10 -9
- package/lib/container/RemoteModule.js +20 -10
- package/lib/container/RemoteRuntimeModule.js +14 -12
- package/lib/css/CssGenerator.js +353 -327
- package/lib/css/CssInjectStyleRuntimeModule.js +36 -8
- package/lib/css/CssLoadingRuntimeModule.js +118 -47
- package/lib/css/CssModule.js +52 -23
- package/lib/css/CssModulesPlugin.js +107 -124
- package/lib/css/CssParser.js +2759 -2205
- package/lib/css/syntax.js +2859 -0
- package/lib/debug/ProfilingPlugin.js +2 -0
- package/lib/deno/DenoTargetPlugin.js +47 -0
- package/lib/dependencies/AMDDefineDependency.js +22 -17
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +1 -0
- package/lib/dependencies/AMDRequireArrayDependency.js +7 -11
- package/lib/dependencies/AMDRequireContextDependency.js +7 -11
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +1 -0
- package/lib/dependencies/AMDRequireDependency.js +24 -20
- package/lib/dependencies/CachedConstDependency.js +3 -0
- package/lib/dependencies/CommonJsDependencyHelpers.js +1 -0
- package/lib/dependencies/CommonJsExportRequireDependency.js +79 -31
- package/lib/dependencies/CommonJsExportsDependency.js +21 -16
- package/lib/dependencies/CommonJsExportsParserPlugin.js +230 -7
- package/lib/dependencies/CommonJsFullRequireDependency.js +27 -19
- package/lib/dependencies/CommonJsImportsParserPlugin.js +51 -16
- package/lib/dependencies/CommonJsPlugin.js +1 -1
- package/lib/dependencies/CommonJsRequireContextDependency.js +10 -13
- package/lib/dependencies/CommonJsRequireDependency.js +42 -11
- package/lib/dependencies/CommonJsSelfReferenceDependency.js +22 -14
- package/lib/dependencies/ConstDependency.js +16 -11
- package/lib/dependencies/ContextDependency.js +4 -0
- package/lib/dependencies/ContextDependencyTemplateAsId.js +1 -1
- package/lib/dependencies/ContextElementDependency.js +23 -14
- package/lib/dependencies/CreateRequireParserPlugin.js +1 -0
- package/lib/dependencies/CreateScriptUrlDependency.js +5 -7
- package/lib/dependencies/CriticalDependencyWarning.js +1 -0
- package/lib/dependencies/CssIcssExportDependency.js +512 -574
- package/lib/dependencies/CssIcssImportDependency.js +9 -9
- package/lib/dependencies/CssIcssSymbolDependency.js +22 -15
- package/lib/dependencies/CssImportDependency.js +25 -1
- package/lib/dependencies/CssUrlDependency.js +23 -14
- package/lib/dependencies/DllEntryDependency.js +9 -13
- package/lib/dependencies/ExportBindingInitFragment.js +164 -0
- package/lib/dependencies/ExportsInfoDependency.js +12 -12
- package/lib/dependencies/ExternalModuleDependency.js +8 -5
- package/lib/dependencies/ExternalModuleInitFragment.js +7 -5
- package/lib/dependencies/ExternalModuleInitFragmentDependency.js +13 -10
- package/lib/dependencies/HarmonyAcceptDependency.js +11 -11
- package/lib/dependencies/HarmonyAcceptImportDependency.js +1 -0
- package/lib/dependencies/HarmonyDetectionParserPlugin.js +47 -22
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +28 -2
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +46 -22
- package/lib/dependencies/HarmonyExportExpressionDependency.js +107 -30
- package/lib/dependencies/HarmonyExportHeaderDependency.js +7 -9
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +109 -31
- package/lib/dependencies/HarmonyExportInitFragment.js +18 -15
- package/lib/dependencies/HarmonyExportSpecifierDependency.js +83 -18
- package/lib/dependencies/HarmonyExports.js +4 -1
- package/lib/dependencies/HarmonyImportDependency.js +24 -0
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +110 -74
- package/lib/dependencies/HarmonyImportGuard.js +254 -0
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +18 -1
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +118 -14
- package/lib/dependencies/HarmonyLinkingError.js +1 -0
- package/lib/dependencies/HarmonyModulesPlugin.js +1 -0
- package/lib/dependencies/{HtmlScriptSrcDependency.js → HtmlEntryDependency.js} +261 -109
- package/lib/dependencies/HtmlInlineHtmlDependency.js +107 -0
- package/lib/dependencies/HtmlInlineScriptDependency.js +17 -13
- package/lib/dependencies/HtmlInlineStyleDependency.js +45 -11
- package/lib/dependencies/ImportContextDependency.js +5 -9
- package/lib/dependencies/ImportDependency.js +44 -2
- package/lib/dependencies/ImportMetaHotAcceptDependency.js +1 -0
- package/lib/dependencies/ImportMetaHotDeclineDependency.js +1 -0
- package/lib/dependencies/ImportMetaPlugin.js +74 -30
- package/lib/dependencies/ImportParserPlugin.js +19 -0
- package/lib/dependencies/ImportWeakDependency.js +1 -0
- package/lib/dependencies/JsonExportsDependency.js +9 -9
- package/lib/dependencies/LoaderImportDependency.js +1 -0
- package/lib/dependencies/LocalModule.js +11 -12
- package/lib/dependencies/LocalModuleDependency.js +11 -13
- package/lib/dependencies/ModuleDecoratorDependency.js +9 -9
- package/lib/dependencies/ModuleDependency.js +7 -0
- package/lib/dependencies/ModuleHotAcceptDependency.js +1 -0
- package/lib/dependencies/ModuleHotDeclineDependency.js +1 -0
- package/lib/dependencies/ModuleInitFragmentDependency.js +15 -11
- package/lib/dependencies/ProvidedDependency.js +31 -27
- package/lib/dependencies/PureExpressionDependency.js +7 -9
- package/lib/dependencies/RequireEnsureDependency.js +12 -13
- package/lib/dependencies/RequireHeaderDependency.js +3 -4
- package/lib/dependencies/RequireIncludeDependencyParserPlugin.js +3 -0
- package/lib/dependencies/RequireResolveContextDependency.js +7 -11
- package/lib/dependencies/RequireResolveDependency.js +1 -0
- package/lib/dependencies/RequireResolveHeaderDependency.js +3 -5
- package/lib/dependencies/RuntimeRequirementsDependency.js +6 -7
- package/lib/dependencies/StaticExportsDependency.js +10 -10
- package/lib/dependencies/SystemPlugin.js +2 -0
- package/lib/dependencies/URLContextDependency.js +5 -7
- package/lib/dependencies/URLDependency.js +14 -16
- package/lib/dependencies/UnsupportedDependency.js +8 -13
- package/lib/dependencies/WebAssemblyExportImportedDependency.js +11 -16
- package/lib/dependencies/WebAssemblyImportDependency.js +14 -16
- package/lib/dependencies/WebpackIsIncludedDependency.js +1 -0
- package/lib/dependencies/WorkerDependency.js +19 -8
- package/lib/dependencies/WorkerPlugin.js +22 -6
- package/lib/dependencies/processExportInfo.js +13 -11
- package/lib/dll/DelegatedModule.js +29 -15
- package/lib/dll/DelegatedModuleFactoryPlugin.js +1 -0
- package/lib/dll/DelegatedPlugin.js +1 -0
- package/lib/dll/DllEntryPlugin.js +3 -0
- package/lib/dll/DllModule.js +3 -2
- package/lib/dll/DllPlugin.js +16 -0
- package/lib/dll/DllReferencePlugin.js +3 -0
- package/lib/dll/LibManifestPlugin.js +1 -0
- package/lib/electron/ElectronTargetPlugin.js +22 -4
- package/lib/errors/ConcurrentCompilationError.js +1 -0
- package/lib/errors/HookWebpackError.js +11 -13
- package/lib/errors/IgnoreErrorModuleFactory.js +1 -0
- package/lib/errors/InvalidDependenciesModuleWarning.js +2 -0
- package/lib/errors/JSONParseError.js +9 -8
- package/lib/errors/ModuleBuildError.js +16 -13
- package/lib/errors/ModuleDependencyError.js +8 -1
- package/lib/errors/ModuleDependencyWarning.js +8 -1
- package/lib/errors/ModuleError.js +5 -11
- package/lib/errors/ModuleHashingError.js +4 -0
- package/lib/errors/ModuleNotFoundError.js +3 -0
- package/lib/errors/ModuleParseError.js +5 -11
- package/lib/errors/ModuleRestoreError.js +2 -0
- package/lib/errors/ModuleStoreError.js +3 -0
- package/lib/errors/ModuleWarning.js +7 -11
- package/lib/errors/NodeStuffInWebError.js +1 -0
- package/lib/errors/NonErrorEmittedError.js +2 -0
- package/lib/errors/UnhandledSchemeError.js +1 -0
- package/lib/esm/ModuleChunkLoadingPlugin.js +0 -1
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +28 -23
- package/lib/hmr/HotModuleReplacement.runtime.js +175 -30
- package/lib/hmr/HotModuleReplacementRuntimeModule.js +7 -0
- package/lib/hmr/JavascriptHotModuleReplacement.runtime.js +173 -26
- package/lib/hmr/LazyCompilationPlugin.js +30 -6
- package/lib/html/HtmlGenerator.js +217 -23
- package/lib/html/HtmlModule.js +40 -0
- package/lib/html/HtmlModulesPlugin.js +219 -55
- package/lib/html/HtmlParser.js +1108 -1099
- package/lib/html/{walkHtmlTokens.js → syntax.js} +4701 -212
- package/lib/ids/IdHelpers.js +4 -2
- package/lib/index.js +19 -0
- package/lib/javascript/BasicEvaluatedExpression.js +1 -0
- package/lib/javascript/EnableChunkLoadingPlugin.js +1 -0
- package/lib/javascript/JavascriptGenerator.js +6 -2
- package/lib/javascript/JavascriptModule.js +54 -0
- package/lib/javascript/JavascriptModulesPlugin.js +257 -102
- package/lib/javascript/JavascriptParser.js +285 -158
- package/lib/json/JsonModule.js +40 -0
- package/lib/json/JsonModulesPlugin.js +7 -0
- package/lib/json/JsonParser.js +4 -2
- package/lib/library/AssignLibraryPlugin.js +5 -3
- package/lib/library/ExportPropertyLibraryPlugin.js +1 -0
- package/lib/library/FalseIIFEUmdWarning.js +1 -0
- package/lib/library/ModuleLibraryPlugin.js +24 -5
- package/lib/library/SystemLibraryPlugin.js +3 -3
- package/lib/node/NodeTargetPlugin.js +1 -0
- package/lib/node/NodeWatchFileSystem.js +1 -0
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +10 -9
- package/lib/node/RequireChunkLoadingRuntimeModule.js +18 -16
- package/lib/optimize/ConcatenatedModule.js +395 -77
- package/lib/optimize/ConstExportsPlugin.js +211 -0
- package/lib/optimize/InlineExports.js +178 -0
- package/lib/optimize/InnerGraph.js +372 -275
- package/lib/optimize/InnerGraphPlugin.js +196 -99
- package/lib/optimize/ModuleConcatenationPlugin.js +56 -25
- package/lib/optimize/RealContentHashPlugin.js +14 -1
- package/lib/optimize/SideEffectsFlagPlugin.js +234 -64
- package/lib/runtime/AsyncModuleRuntimeModule.js +32 -30
- package/lib/runtime/AutoPublicPathRuntimeModule.js +11 -5
- package/lib/runtime/CompatGetDefaultExportRuntimeModule.js +1 -1
- package/lib/runtime/CreateFakeNamespaceObjectRuntimeModule.js +6 -4
- package/lib/runtime/DefinePropertyGettersRuntimeModule.js +33 -4
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +82 -3
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +1 -1
- package/lib/runtime/HasOwnPropertyRuntimeModule.js +1 -1
- package/lib/runtime/LoadScriptRuntimeModule.js +18 -13
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +39 -26
- package/lib/runtime/MakeNamespaceObjectRuntimeModule.js +1 -1
- package/lib/runtime/OnChunksLoadedRuntimeModule.js +4 -4
- package/lib/runtime/RelativeUrlRuntimeModule.js +3 -2
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +1 -1
- package/lib/runtime/StartupEntrypointRuntimeModule.js +4 -3
- package/lib/runtime/WorkerRuntimeModule.js +33 -0
- package/lib/schemes/HttpUriPlugin.js +3 -2
- package/lib/serialization/AggregateErrorSerializer.js +7 -6
- package/lib/serialization/ArraySerializer.js +4 -8
- package/lib/serialization/BinaryMiddleware.js +538 -468
- package/lib/serialization/DateObjectSerializer.js +2 -2
- package/lib/serialization/ErrorObjectSerializer.js +7 -6
- package/lib/serialization/MapObjectSerializer.js +5 -9
- package/lib/serialization/NullPrototypeObjectSerializer.js +7 -9
- package/lib/serialization/ObjectMiddleware.js +50 -13
- package/lib/serialization/PlainObjectSerializer.js +9 -8
- package/lib/serialization/RegExpObjectSerializer.js +2 -2
- package/lib/serialization/Serializer.js +1 -0
- package/lib/serialization/SetObjectSerializer.js +4 -8
- package/lib/sharing/ConsumeSharedModule.js +6 -7
- package/lib/sharing/ConsumeSharedPlugin.js +1 -0
- package/lib/sharing/ConsumeSharedRuntimeModule.js +46 -41
- package/lib/sharing/ProvideSharedDependency.js +30 -15
- package/lib/sharing/ProvideSharedModule.js +30 -11
- package/lib/sharing/ProvideSharedPlugin.js +4 -2
- package/lib/sharing/SharePlugin.js +3 -0
- package/lib/sharing/ShareRuntimeModule.js +18 -16
- package/lib/sharing/resolveMatchedConfigs.js +2 -1
- package/lib/sharing/utils.js +1 -1
- package/lib/stats/DefaultStatsFactoryPlugin.js +4 -6
- package/lib/stats/DefaultStatsPrinterPlugin.js +14 -14
- package/lib/stats/StatsFactory.js +11 -9
- package/lib/stats/StatsPrinter.js +9 -2
- package/lib/url/URLParserPlugin.js +5 -2
- package/lib/util/AsyncQueue.js +10 -0
- package/lib/util/LazyBucketSortedSet.js +5 -0
- package/lib/util/LazySet.js +6 -4
- package/lib/util/LocConverter.js +11 -1
- package/lib/util/Semaphore.js +1 -0
- package/lib/util/SourceProcessor.js +106 -0
- package/lib/util/TupleSet.js +1 -0
- package/lib/util/WeakTupleMap.js +27 -1
- package/lib/util/chainedImports.js +3 -3
- package/lib/util/comparators.js +2 -2
- package/lib/util/concatenate.js +31 -7
- package/lib/util/createHash.js +0 -1
- package/lib/util/deterministicGrouping.js +19 -12
- package/lib/util/extractSourceMap.js +1 -1
- package/lib/util/findGraphRoots.js +2 -0
- package/lib/util/fs.js +10 -5
- package/lib/util/hash/DebugHash.js +1 -0
- package/lib/util/hash/hash-digest.js +24 -15
- package/lib/util/identifier.js +7 -0
- package/lib/util/internalSerializables.js +11 -2
- package/lib/util/magicComment.js +42 -0
- package/lib/util/makeSerializable.js +1 -0
- package/lib/util/nonNumericOnlyHash.js +30 -1
- package/lib/util/property.js +7 -1
- package/lib/util/publicPathPlaceholder.js +64 -0
- package/lib/util/registerExternalSerializer.js +4 -4
- package/lib/wasm-async/AsyncWasmModule.js +77 -0
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +1 -1
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +1 -96
- package/lib/wasm-async/AsyncWebAssemblyParser.js +1 -1
- package/lib/wasm-async/UniversalCompileAsyncWasmPlugin.js +1 -1
- package/lib/wasm-sync/SyncWasmModule.js +39 -0
- package/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +1 -0
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +6 -3
- package/lib/wasm-sync/WasmFinalizeExportsPlugin.js +2 -1
- package/lib/wasm-sync/WebAssemblyGenerator.js +1 -0
- package/lib/wasm-sync/WebAssemblyInInitialChunkError.js +2 -0
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +10 -0
- package/lib/wasm-sync/WebAssemblyParser.js +7 -3
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +45 -39
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +11 -10
- package/package.json +35 -27
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +212 -3
- package/schemas/plugins/HtmlGeneratorOptions.check.js +1 -1
- package/schemas/plugins/HtmlParserOptions.check.d.ts +7 -0
- package/schemas/plugins/HtmlParserOptions.check.js +6 -0
- package/schemas/plugins/HtmlParserOptions.json +3 -0
- package/schemas/plugins/css/CssAutoOrModuleParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssModuleParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssParserOptions.check.js +1 -1
- package/types.d.ts +1456 -290
- package/lib/css/walkCssTokens.js +0 -2020
- package/lib/util/AppendOnlyStackedSet.js +0 -93
|
@@ -380,6 +380,9 @@
|
|
|
380
380
|
"animation": {
|
|
381
381
|
"$ref": "#/definitions/CssParserAnimation"
|
|
382
382
|
},
|
|
383
|
+
"as": {
|
|
384
|
+
"$ref": "#/definitions/CssParserAs"
|
|
385
|
+
},
|
|
383
386
|
"container": {
|
|
384
387
|
"$ref": "#/definitions/CssParserContainer"
|
|
385
388
|
},
|
|
@@ -521,6 +524,9 @@
|
|
|
521
524
|
"animation": {
|
|
522
525
|
"$ref": "#/definitions/CssParserAnimation"
|
|
523
526
|
},
|
|
527
|
+
"as": {
|
|
528
|
+
"$ref": "#/definitions/CssParserAs"
|
|
529
|
+
},
|
|
524
530
|
"container": {
|
|
525
531
|
"$ref": "#/definitions/CssParserContainer"
|
|
526
532
|
},
|
|
@@ -554,6 +560,10 @@
|
|
|
554
560
|
"description": "Enable/disable renaming of `@keyframes`.",
|
|
555
561
|
"type": "boolean"
|
|
556
562
|
},
|
|
563
|
+
"CssParserAs": {
|
|
564
|
+
"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).",
|
|
565
|
+
"enum": ["stylesheet", "block-contents"]
|
|
566
|
+
},
|
|
557
567
|
"CssParserContainer": {
|
|
558
568
|
"description": "Enable/disable renaming of `@container` names.",
|
|
559
569
|
"type": "boolean"
|
|
@@ -591,6 +601,9 @@
|
|
|
591
601
|
"type": "object",
|
|
592
602
|
"additionalProperties": false,
|
|
593
603
|
"properties": {
|
|
604
|
+
"as": {
|
|
605
|
+
"$ref": "#/definitions/CssParserAs"
|
|
606
|
+
},
|
|
594
607
|
"exportType": {
|
|
595
608
|
"$ref": "#/definitions/CssParserExportType"
|
|
596
609
|
},
|
|
@@ -832,6 +845,10 @@
|
|
|
832
845
|
"filename": {
|
|
833
846
|
"$ref": "#/definitions/EntryFilename"
|
|
834
847
|
},
|
|
848
|
+
"html": {
|
|
849
|
+
"description": "Generate an HTML file for this entrypoint with its JS and CSS output chunks injected. Overrides `output.html` for this entry.",
|
|
850
|
+
"type": "boolean"
|
|
851
|
+
},
|
|
835
852
|
"import": {
|
|
836
853
|
"$ref": "#/definitions/EntryItem"
|
|
837
854
|
},
|
|
@@ -849,6 +866,10 @@
|
|
|
849
866
|
},
|
|
850
867
|
"wasmLoading": {
|
|
851
868
|
"$ref": "#/definitions/WasmLoading"
|
|
869
|
+
},
|
|
870
|
+
"worker": {
|
|
871
|
+
"description": "Mark this entry as a worker so its output file uses 'output.workerChunkFilename'.",
|
|
872
|
+
"type": "boolean"
|
|
852
873
|
}
|
|
853
874
|
},
|
|
854
875
|
"required": ["import"]
|
|
@@ -883,6 +904,10 @@
|
|
|
883
904
|
"filename": {
|
|
884
905
|
"$ref": "#/definitions/Filename"
|
|
885
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
|
+
},
|
|
886
911
|
"import": {
|
|
887
912
|
"description": "Module(s) that are loaded upon startup. The last one is exported.",
|
|
888
913
|
"type": "array",
|
|
@@ -908,6 +933,10 @@
|
|
|
908
933
|
},
|
|
909
934
|
"wasmLoading": {
|
|
910
935
|
"$ref": "#/definitions/WasmLoading"
|
|
936
|
+
},
|
|
937
|
+
"worker": {
|
|
938
|
+
"description": "Mark this entry as a worker so its output file uses 'output.workerChunkFilename'.",
|
|
939
|
+
"type": "boolean"
|
|
911
940
|
}
|
|
912
941
|
}
|
|
913
942
|
},
|
|
@@ -1064,10 +1093,22 @@
|
|
|
1064
1093
|
"description": "The environment supports 'globalThis'.",
|
|
1065
1094
|
"type": "boolean"
|
|
1066
1095
|
},
|
|
1096
|
+
"hasOwn": {
|
|
1097
|
+
"description": "The environment supports 'Object.hasOwn'.",
|
|
1098
|
+
"type": "boolean"
|
|
1099
|
+
},
|
|
1067
1100
|
"importMetaDirnameAndFilename": {
|
|
1068
1101
|
"description": "The environment supports `import.meta.dirname` and `import.meta.filename`.",
|
|
1069
1102
|
"type": "boolean"
|
|
1070
1103
|
},
|
|
1104
|
+
"let": {
|
|
1105
|
+
"description": "The environment supports let for variable declarations.",
|
|
1106
|
+
"type": "boolean"
|
|
1107
|
+
},
|
|
1108
|
+
"logicalAssignment": {
|
|
1109
|
+
"description": "The environment supports logical assignment operators ('a ||= b', 'a &&= b', 'a ??= b').",
|
|
1110
|
+
"type": "boolean"
|
|
1111
|
+
},
|
|
1071
1112
|
"methodShorthand": {
|
|
1072
1113
|
"description": "The environment supports object method shorthand ('{ module() {} }').",
|
|
1073
1114
|
"type": "boolean"
|
|
@@ -1076,6 +1117,10 @@
|
|
|
1076
1117
|
"description": "The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').",
|
|
1077
1118
|
"type": "boolean"
|
|
1078
1119
|
},
|
|
1120
|
+
"nodeBuiltinModuleGetter": {
|
|
1121
|
+
"description": "The environment supports `process.getBuiltinModule()` to synchronously load Node.js core modules.",
|
|
1122
|
+
"type": "boolean"
|
|
1123
|
+
},
|
|
1079
1124
|
"nodePrefixForCoreModules": {
|
|
1080
1125
|
"description": "The environment supports `node:` prefix for Node.js core modules.",
|
|
1081
1126
|
"type": "boolean"
|
|
@@ -1084,6 +1129,14 @@
|
|
|
1084
1129
|
"description": "The environment supports optional chaining ('obj?.a' or 'obj?.()').",
|
|
1085
1130
|
"type": "boolean"
|
|
1086
1131
|
},
|
|
1132
|
+
"spread": {
|
|
1133
|
+
"description": "The environment supports spread and rest in array/object literals and calls ('{ ...obj }', 'fn(...args)').",
|
|
1134
|
+
"type": "boolean"
|
|
1135
|
+
},
|
|
1136
|
+
"symbol": {
|
|
1137
|
+
"description": "The environment supports 'Symbol' (and well-known symbols like 'Symbol.toStringTag').",
|
|
1138
|
+
"type": "boolean"
|
|
1139
|
+
},
|
|
1087
1140
|
"templateLiteral": {
|
|
1088
1141
|
"description": "The environment supports template literals.",
|
|
1089
1142
|
"type": "boolean"
|
|
@@ -1138,7 +1191,7 @@
|
|
|
1138
1191
|
"experimental": true
|
|
1139
1192
|
},
|
|
1140
1193
|
"html": {
|
|
1141
|
-
"description": "Enable
|
|
1194
|
+
"description": "Enable HTML entry support. Treats `.html` files as a first-class module type so they can be used directly as entry points.",
|
|
1142
1195
|
"type": "boolean",
|
|
1143
1196
|
"experimental": true
|
|
1144
1197
|
},
|
|
@@ -1382,6 +1435,14 @@
|
|
|
1382
1435
|
"type": "object",
|
|
1383
1436
|
"additionalProperties": false,
|
|
1384
1437
|
"properties": {
|
|
1438
|
+
"bun": {
|
|
1439
|
+
"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).",
|
|
1440
|
+
"type": "boolean"
|
|
1441
|
+
},
|
|
1442
|
+
"deno": {
|
|
1443
|
+
"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).",
|
|
1444
|
+
"type": "boolean"
|
|
1445
|
+
},
|
|
1385
1446
|
"electron": {
|
|
1386
1447
|
"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.",
|
|
1387
1448
|
"type": "boolean"
|
|
@@ -1781,8 +1842,84 @@
|
|
|
1781
1842
|
"additionalProperties": false,
|
|
1782
1843
|
"properties": {
|
|
1783
1844
|
"extract": {
|
|
1784
|
-
"description": "Emit the parsed and URL-rewritten HTML as a standalone `.html` output file alongside the module's JavaScript export. 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`.",
|
|
1785
|
-
"
|
|
1845
|
+
"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`.",
|
|
1846
|
+
"anyOf": [
|
|
1847
|
+
{
|
|
1848
|
+
"enum": ["inline"]
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
"type": "boolean"
|
|
1852
|
+
}
|
|
1853
|
+
]
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
|
+
"HtmlParserOptions": {
|
|
1858
|
+
"description": "Parser options for html modules.",
|
|
1859
|
+
"type": "object",
|
|
1860
|
+
"additionalProperties": false,
|
|
1861
|
+
"properties": {
|
|
1862
|
+
"sources": {
|
|
1863
|
+
"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.",
|
|
1864
|
+
"anyOf": [
|
|
1865
|
+
{
|
|
1866
|
+
"description": "Sources to extract as webpack dependencies. Use `\"...\"` to inline the default source list.",
|
|
1867
|
+
"type": "array",
|
|
1868
|
+
"items": {
|
|
1869
|
+
"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.",
|
|
1870
|
+
"anyOf": [
|
|
1871
|
+
{
|
|
1872
|
+
"enum": ["..."]
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
"type": "object",
|
|
1876
|
+
"additionalProperties": false,
|
|
1877
|
+
"properties": {
|
|
1878
|
+
"attribute": {
|
|
1879
|
+
"description": "Attribute name whose value is treated as a URL.",
|
|
1880
|
+
"type": "string",
|
|
1881
|
+
"minLength": 1
|
|
1882
|
+
},
|
|
1883
|
+
"filter": {
|
|
1884
|
+
"description": "Called with the element's decoded attribute map and the decoded attribute value; return false to skip this source entry for that element.",
|
|
1885
|
+
"instanceof": "Function",
|
|
1886
|
+
"tsType": "(attributes: Map<string, string>, value: string) => boolean"
|
|
1887
|
+
},
|
|
1888
|
+
"tag": {
|
|
1889
|
+
"description": "Tag name to match. Omit to match any tag.",
|
|
1890
|
+
"type": "string",
|
|
1891
|
+
"minLength": 1
|
|
1892
|
+
},
|
|
1893
|
+
"type": {
|
|
1894
|
+
"description": "How the attribute value should be parsed and bundled. `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\">`; `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.",
|
|
1895
|
+
"enum": [
|
|
1896
|
+
"src",
|
|
1897
|
+
"srcset",
|
|
1898
|
+
"css-url",
|
|
1899
|
+
"script",
|
|
1900
|
+
"script-module",
|
|
1901
|
+
"stylesheet",
|
|
1902
|
+
"stylesheet-style",
|
|
1903
|
+
"stylesheet-style-attribute",
|
|
1904
|
+
"srcdoc"
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
"required": ["attribute", "type"]
|
|
1909
|
+
}
|
|
1910
|
+
]
|
|
1911
|
+
},
|
|
1912
|
+
"minItems": 1
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
"type": "boolean"
|
|
1916
|
+
}
|
|
1917
|
+
]
|
|
1918
|
+
},
|
|
1919
|
+
"template": {
|
|
1920
|
+
"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.",
|
|
1921
|
+
"instanceof": "Function",
|
|
1922
|
+
"tsType": "import('../lib/html/HtmlParser').HtmlTemplateFunction"
|
|
1786
1923
|
}
|
|
1787
1924
|
}
|
|
1788
1925
|
},
|
|
@@ -2102,6 +2239,15 @@
|
|
|
2102
2239
|
"instanceof": "Function",
|
|
2103
2240
|
"tsType": "import('../lib/javascript/JavascriptParser').ParseFunction"
|
|
2104
2241
|
},
|
|
2242
|
+
"pureFunctions": {
|
|
2243
|
+
"description": "Mark the listed top-level function names for pure-function-based tree shaking.",
|
|
2244
|
+
"type": "array",
|
|
2245
|
+
"items": {
|
|
2246
|
+
"description": "A top-level function name in the module to treat as side-effect-free when called.",
|
|
2247
|
+
"type": "string",
|
|
2248
|
+
"minLength": 1
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2105
2251
|
"reexportExportsPresence": {
|
|
2106
2252
|
"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.",
|
|
2107
2253
|
"enum": ["error", "warn", "auto", false]
|
|
@@ -2884,6 +3030,10 @@
|
|
|
2884
3030
|
"description": "Also flag chunks as loaded which contain a subset of the modules.",
|
|
2885
3031
|
"type": "boolean"
|
|
2886
3032
|
},
|
|
3033
|
+
"inlineExports": {
|
|
3034
|
+
"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.",
|
|
3035
|
+
"type": "boolean"
|
|
3036
|
+
},
|
|
2887
3037
|
"innerGraph": {
|
|
2888
3038
|
"description": "Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.",
|
|
2889
3039
|
"type": "boolean"
|
|
@@ -3052,6 +3202,10 @@
|
|
|
3052
3202
|
"description": "Also flag chunks as loaded which contain a subset of the modules.",
|
|
3053
3203
|
"type": "boolean"
|
|
3054
3204
|
},
|
|
3205
|
+
"inlineExports": {
|
|
3206
|
+
"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.",
|
|
3207
|
+
"type": "boolean"
|
|
3208
|
+
},
|
|
3055
3209
|
"innerGraph": {
|
|
3056
3210
|
"description": "Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.",
|
|
3057
3211
|
"type": "boolean"
|
|
@@ -3823,6 +3977,9 @@
|
|
|
3823
3977
|
"hotUpdateMainFilename": {
|
|
3824
3978
|
"$ref": "#/definitions/HotUpdateMainFilename"
|
|
3825
3979
|
},
|
|
3980
|
+
"html": {
|
|
3981
|
+
"$ref": "#/definitions/OutputHtml"
|
|
3982
|
+
},
|
|
3826
3983
|
"htmlChunkFilename": {
|
|
3827
3984
|
"$ref": "#/definitions/HtmlChunkFilename"
|
|
3828
3985
|
},
|
|
@@ -3892,6 +4049,9 @@
|
|
|
3892
4049
|
"strictModuleExceptionHandling": {
|
|
3893
4050
|
"$ref": "#/definitions/StrictModuleExceptionHandling"
|
|
3894
4051
|
},
|
|
4052
|
+
"strictModuleResolution": {
|
|
4053
|
+
"$ref": "#/definitions/StrictModuleResolution"
|
|
4054
|
+
},
|
|
3895
4055
|
"trustedTypes": {
|
|
3896
4056
|
"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.",
|
|
3897
4057
|
"anyOf": [
|
|
@@ -3927,6 +4087,9 @@
|
|
|
3927
4087
|
"webassemblyModuleFilename": {
|
|
3928
4088
|
"$ref": "#/definitions/WebassemblyModuleFilename"
|
|
3929
4089
|
},
|
|
4090
|
+
"workerChunkFilename": {
|
|
4091
|
+
"$ref": "#/definitions/WorkerChunkFilename"
|
|
4092
|
+
},
|
|
3930
4093
|
"workerChunkLoading": {
|
|
3931
4094
|
"$ref": "#/definitions/ChunkLoading"
|
|
3932
4095
|
},
|
|
@@ -3938,6 +4101,28 @@
|
|
|
3938
4101
|
}
|
|
3939
4102
|
}
|
|
3940
4103
|
},
|
|
4104
|
+
"OutputHtml": {
|
|
4105
|
+
"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.",
|
|
4106
|
+
"anyOf": [
|
|
4107
|
+
{
|
|
4108
|
+
"type": "boolean"
|
|
4109
|
+
},
|
|
4110
|
+
{
|
|
4111
|
+
"$ref": "#/definitions/OutputHtmlOptions"
|
|
4112
|
+
}
|
|
4113
|
+
]
|
|
4114
|
+
},
|
|
4115
|
+
"OutputHtmlOptions": {
|
|
4116
|
+
"description": "Options for the generated HTML files.",
|
|
4117
|
+
"type": "object",
|
|
4118
|
+
"additionalProperties": false,
|
|
4119
|
+
"properties": {
|
|
4120
|
+
"scriptLoading": {
|
|
4121
|
+
"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.",
|
|
4122
|
+
"enum": ["auto", "blocking", "defer"]
|
|
4123
|
+
}
|
|
4124
|
+
}
|
|
4125
|
+
},
|
|
3941
4126
|
"OutputModule": {
|
|
3942
4127
|
"description": "Output javascript files as module source type.",
|
|
3943
4128
|
"type": "boolean"
|
|
@@ -4035,6 +4220,9 @@
|
|
|
4035
4220
|
"hotUpdateMainFilename": {
|
|
4036
4221
|
"$ref": "#/definitions/HotUpdateMainFilename"
|
|
4037
4222
|
},
|
|
4223
|
+
"html": {
|
|
4224
|
+
"$ref": "#/definitions/OutputHtml"
|
|
4225
|
+
},
|
|
4038
4226
|
"htmlChunkFilename": {
|
|
4039
4227
|
"$ref": "#/definitions/HtmlChunkFilename"
|
|
4040
4228
|
},
|
|
@@ -4084,6 +4272,9 @@
|
|
|
4084
4272
|
"strictModuleExceptionHandling": {
|
|
4085
4273
|
"$ref": "#/definitions/StrictModuleExceptionHandling"
|
|
4086
4274
|
},
|
|
4275
|
+
"strictModuleResolution": {
|
|
4276
|
+
"$ref": "#/definitions/StrictModuleResolution"
|
|
4277
|
+
},
|
|
4087
4278
|
"trustedTypes": {
|
|
4088
4279
|
"$ref": "#/definitions/TrustedTypes"
|
|
4089
4280
|
},
|
|
@@ -4096,6 +4287,9 @@
|
|
|
4096
4287
|
"webassemblyModuleFilename": {
|
|
4097
4288
|
"$ref": "#/definitions/WebassemblyModuleFilename"
|
|
4098
4289
|
},
|
|
4290
|
+
"workerChunkFilename": {
|
|
4291
|
+
"$ref": "#/definitions/WorkerChunkFilename"
|
|
4292
|
+
},
|
|
4099
4293
|
"workerChunkLoading": {
|
|
4100
4294
|
"$ref": "#/definitions/ChunkLoading"
|
|
4101
4295
|
},
|
|
@@ -4154,6 +4348,9 @@
|
|
|
4154
4348
|
"css/module": {
|
|
4155
4349
|
"$ref": "#/definitions/CssAutoOrModuleParserOptions"
|
|
4156
4350
|
},
|
|
4351
|
+
"html": {
|
|
4352
|
+
"$ref": "#/definitions/HtmlParserOptions"
|
|
4353
|
+
},
|
|
4157
4354
|
"javascript": {
|
|
4158
4355
|
"$ref": "#/definitions/JavascriptParserOptions"
|
|
4159
4356
|
},
|
|
@@ -5886,6 +6083,10 @@
|
|
|
5886
6083
|
"type": "boolean",
|
|
5887
6084
|
"deprecated": true
|
|
5888
6085
|
},
|
|
6086
|
+
"StrictModuleResolution": {
|
|
6087
|
+
"description": "Emit a runtime check that throws a 'MODULE_NOT_FOUND' error when a required module id is missing from the bundle.",
|
|
6088
|
+
"type": "boolean"
|
|
6089
|
+
},
|
|
5889
6090
|
"Target": {
|
|
5890
6091
|
"description": "Environment to build for. An array of environments to build for all of them when possible.",
|
|
5891
6092
|
"anyOf": [
|
|
@@ -6217,6 +6418,14 @@
|
|
|
6217
6418
|
},
|
|
6218
6419
|
"required": ["apply"]
|
|
6219
6420
|
},
|
|
6421
|
+
"WorkerChunkFilename": {
|
|
6422
|
+
"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.",
|
|
6423
|
+
"oneOf": [
|
|
6424
|
+
{
|
|
6425
|
+
"$ref": "#/definitions/FilenameTemplate"
|
|
6426
|
+
}
|
|
6427
|
+
]
|
|
6428
|
+
},
|
|
6220
6429
|
"WorkerPublicPath": {
|
|
6221
6430
|
"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.",
|
|
6222
6431
|
"type": "string"
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
"use strict";function r
|
|
6
|
+
"use strict";function t(r,{instancePath:e="",parentData:o,parentDataProperty:a,rootData:n=r}={}){let s=null,l=0;if(l==l){if(!r||"object"!=typeof r||Array.isArray(r))return t.errors=[{params:{type:"object"}}],!1;{const e=l;for(const e in r)if("extract"!==e)return t.errors=[{params:{additionalProperty:e}}],!1;if(e===l&&void 0!==r.extract){let e=r.extract;const o=l;let a=!1;const n=l;if("inline"!==e){const t={params:{}};null===s?s=[t]:s.push(t),l++}var i=n===l;if(a=a||i,!a){const t=l;if("boolean"!=typeof e){const t={params:{type:"boolean"}};null===s?s=[t]:s.push(t),l++}i=t===l,a=a||i}if(!a){const r={params:{}};return null===s?s=[r]:s.push(r),l++,t.errors=s,!1}l=o,null!==s&&(o?s.length=o:s=null)}}}return t.errors=s,0===l}module.exports=t,module.exports.default=t;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file was automatically generated.
|
|
3
|
+
* DO NOT MODIFY BY HAND.
|
|
4
|
+
* Run `yarn fix:special` to update
|
|
5
|
+
*/
|
|
6
|
+
"use strict";function t(e,{instancePath:s="",parentData:r,parentDataProperty:l,rootData:n=e}={}){let o=null,a=0;if(a==a){if(!e||"object"!=typeof e||Array.isArray(e))return t.errors=[{params:{type:"object"}}],!1;{const s=a;for(const s in e)if("sources"!==s&&"template"!==s)return t.errors=[{params:{additionalProperty:s}}],!1;if(s===a){if(void 0!==e.sources){let s=e.sources;const r=a,l=a;let n=!1;const c=a;if(a===c)if(Array.isArray(s))if(s.length<1){const t={params:{limit:1}};null===o?o=[t]:o.push(t),a++}else{const t=s.length;for(let e=0;e<t;e++){let t=s[e];const r=a,l=a;let n=!1;const u=a;if("..."!==t){const t={params:{}};null===o?o=[t]:o.push(t),a++}var i=u===a;if(n=n||i,!n){const e=a;if(a===e)if(t&&"object"==typeof t&&!Array.isArray(t)){let e;if(void 0===t.attribute&&(e="attribute")||void 0===t.type&&(e="type")){const t={params:{missingProperty:e}};null===o?o=[t]:o.push(t),a++}else{const e=a;for(const e in t)if("attribute"!==e&&"filter"!==e&&"tag"!==e&&"type"!==e){const t={params:{additionalProperty:e}};null===o?o=[t]:o.push(t),a++;break}if(e===a){if(void 0!==t.attribute){let e=t.attribute;const s=a;if(a===s)if("string"==typeof e){if(e.length<1){const t={params:{}};null===o?o=[t]:o.push(t),a++}}else{const t={params:{type:"string"}};null===o?o=[t]:o.push(t),a++}var p=s===a}else p=!0;if(p){if(void 0!==t.filter){const e=a;if(!(t.filter instanceof Function)){const t={params:{}};null===o?o=[t]:o.push(t),a++}p=e===a}else p=!0;if(p){if(void 0!==t.tag){let e=t.tag;const s=a;if(a===s)if("string"==typeof e){if(e.length<1){const t={params:{}};null===o?o=[t]:o.push(t),a++}}else{const t={params:{type:"string"}};null===o?o=[t]:o.push(t),a++}p=s===a}else p=!0;if(p)if(void 0!==t.type){let e=t.type;const s=a;if("src"!==e&&"srcset"!==e&&"css-url"!==e&&"script"!==e&&"script-module"!==e&&"stylesheet"!==e&&"stylesheet-style"!==e&&"stylesheet-style-attribute"!==e&&"srcdoc"!==e){const t={params:{}};null===o?o=[t]:o.push(t),a++}p=s===a}else p=!0}}}}}else{const t={params:{type:"object"}};null===o?o=[t]:o.push(t),a++}i=e===a,n=n||i}if(n)a=l,null!==o&&(l?o.length=l:o=null);else{const t={params:{}};null===o?o=[t]:o.push(t),a++}if(r!==a)break}}else{const t={params:{type:"array"}};null===o?o=[t]:o.push(t),a++}var u=c===a;if(n=n||u,!n){const t=a;if("boolean"!=typeof s){const t={params:{type:"boolean"}};null===o?o=[t]:o.push(t),a++}u=t===a,n=n||u}if(!n){const e={params:{}};return null===o?o=[e]:o.push(e),a++,t.errors=o,!1}a=l,null!==o&&(l?o.length=l:o=null);var f=r===a}else f=!0;if(f)if(void 0!==e.template){const s=a;if(!(e.template instanceof Function))return t.errors=[{params:{}}],!1;f=s===a}else f=!0}}}return t.errors=o,0===a}module.exports=t,module.exports.default=t;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
"use strict";module.exports=t,module.exports.default=t;const e={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},pure:{$ref:"#/definitions/CssParserPure"},url:{$ref:"#/definitions/CssParserUrl"}}},r=Object.prototype.hasOwnProperty;function o(t,{instancePath:s="",parentData:n,parentDataProperty:i,rootData:a=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return o.errors=[{params:{type:"object"}}],!1;{const s=0;for(const s in t)if(!r.call(e.properties,s))return o.errors=[{params:{additionalProperty:s}}],!1;if(0===s){if(void 0!==t.animation){const e=0;if("boolean"!=typeof t.animation)return o.errors=[{params:{type:"boolean"}}],!1;var f=0===e}else f=!0;if(f){if(void 0!==t.container){const e=0;if("boolean"!=typeof t.container)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.customIdents){const e=0;if("boolean"!=typeof t.customIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.dashedIdents){const e=0;if("boolean"!=typeof t.dashedIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.exportType){let e=t.exportType;const r=0;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return o.errors=[{params:{}}],!1;f=0===r}else f=!0;if(f){if(void 0!==t.function){const e=0;if("boolean"!=typeof t.function)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.grid){const e=0;if("boolean"!=typeof t.grid)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.pure){const e=0;if("boolean"!=typeof t.pure)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0}}}}}}}}}}}return o.errors=null,!0}function t(e,{instancePath:r="",parentData:s,parentDataProperty:n,rootData:i=e}={}){let a=null,f=0;return o(e,{instancePath:r,parentData:s,parentDataProperty:n,rootData:i})||(a=null===a?o.errors:a.concat(o.errors),f=a.length),t.errors=a,0===f}
|
|
6
|
+
"use strict";module.exports=t,module.exports.default=t;const e={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},pure:{$ref:"#/definitions/CssParserPure"},url:{$ref:"#/definitions/CssParserUrl"}}},r=Object.prototype.hasOwnProperty;function o(t,{instancePath:s="",parentData:n,parentDataProperty:i,rootData:a=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return o.errors=[{params:{type:"object"}}],!1;{const s=0;for(const s in t)if(!r.call(e.properties,s))return o.errors=[{params:{additionalProperty:s}}],!1;if(0===s){if(void 0!==t.animation){const e=0;if("boolean"!=typeof t.animation)return o.errors=[{params:{type:"boolean"}}],!1;var f=0===e}else f=!0;if(f){if(void 0!==t.as){let e=t.as;const r=0;if("stylesheet"!==e&&"block-contents"!==e)return o.errors=[{params:{}}],!1;f=0===r}else f=!0;if(f){if(void 0!==t.container){const e=0;if("boolean"!=typeof t.container)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.customIdents){const e=0;if("boolean"!=typeof t.customIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.dashedIdents){const e=0;if("boolean"!=typeof t.dashedIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.exportType){let e=t.exportType;const r=0;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return o.errors=[{params:{}}],!1;f=0===r}else f=!0;if(f){if(void 0!==t.function){const e=0;if("boolean"!=typeof t.function)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.grid){const e=0;if("boolean"!=typeof t.grid)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.pure){const e=0;if("boolean"!=typeof t.pure)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0}}}}}}}}}}}}return o.errors=null,!0}function t(e,{instancePath:r="",parentData:s,parentDataProperty:n,rootData:i=e}={}){let a=null,f=0;return o(e,{instancePath:r,parentData:s,parentDataProperty:n,rootData:i})||(a=null===a?o.errors:a.concat(o.errors),f=a.length),t.errors=a,0===f}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
"use strict";module.exports=t,module.exports.default=t;const e={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"}}},r=Object.prototype.hasOwnProperty;function o(t,{instancePath:s="",parentData:n,parentDataProperty:a,rootData:i=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return o.errors=[{params:{type:"object"}}],!1;{const s=0;for(const s in t)if(!r.call(e.properties,s))return o.errors=[{params:{additionalProperty:s}}],!1;if(0===s){if(void 0!==t.animation){const e=0;if("boolean"!=typeof t.animation)return o.errors=[{params:{type:"boolean"}}],!1;var f=0===e}else f=!0;if(f){if(void 0!==t.container){const e=0;if("boolean"!=typeof t.container)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.customIdents){const e=0;if("boolean"!=typeof t.customIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.dashedIdents){const e=0;if("boolean"!=typeof t.dashedIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.exportType){let e=t.exportType;const r=0;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return o.errors=[{params:{}}],!1;f=0===r}else f=!0;if(f){if(void 0!==t.function){const e=0;if("boolean"!=typeof t.function)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.grid){const e=0;if("boolean"!=typeof t.grid)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0}}}}}}}}}}return o.errors=null,!0}function t(e,{instancePath:r="",parentData:s,parentDataProperty:n,rootData:a=e}={}){let i=null,f=0;return o(e,{instancePath:r,parentData:s,parentDataProperty:n,rootData:a})||(i=null===i?o.errors:i.concat(o.errors),f=i.length),t.errors=i,0===f}
|
|
6
|
+
"use strict";module.exports=t,module.exports.default=t;const e={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"}}},r=Object.prototype.hasOwnProperty;function o(t,{instancePath:s="",parentData:n,parentDataProperty:a,rootData:i=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return o.errors=[{params:{type:"object"}}],!1;{const s=0;for(const s in t)if(!r.call(e.properties,s))return o.errors=[{params:{additionalProperty:s}}],!1;if(0===s){if(void 0!==t.animation){const e=0;if("boolean"!=typeof t.animation)return o.errors=[{params:{type:"boolean"}}],!1;var f=0===e}else f=!0;if(f){if(void 0!==t.as){let e=t.as;const r=0;if("stylesheet"!==e&&"block-contents"!==e)return o.errors=[{params:{}}],!1;f=0===r}else f=!0;if(f){if(void 0!==t.container){const e=0;if("boolean"!=typeof t.container)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.customIdents){const e=0;if("boolean"!=typeof t.customIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.dashedIdents){const e=0;if("boolean"!=typeof t.dashedIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.exportType){let e=t.exportType;const r=0;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return o.errors=[{params:{}}],!1;f=0===r}else f=!0;if(f){if(void 0!==t.function){const e=0;if("boolean"!=typeof t.function)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.grid){const e=0;if("boolean"!=typeof t.grid)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0}}}}}}}}}}}return o.errors=null,!0}function t(e,{instancePath:r="",parentData:s,parentDataProperty:n,rootData:a=e}={}){let i=null,f=0;return o(e,{instancePath:r,parentData:s,parentDataProperty:n,rootData:a})||(i=null===i?o.errors:i.concat(o.errors),f=i.length),t.errors=i,0===f}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
"use strict";function r(e,{instancePath:t="",parentData:o,parentDataProperty:a,rootData:
|
|
6
|
+
"use strict";function r(e,{instancePath:t="",parentData:o,parentDataProperty:a,rootData:s=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t in e)if("as"!==t&&"exportType"!==t&&"import"!==t&&"namedExports"!==t&&"url"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(0===t){if(void 0!==e.as){let t=e.as;const o=0;if("stylesheet"!==t&&"block-contents"!==t)return r.errors=[{params:{}}],!1;var n=0===o}else n=!0;if(n){if(void 0!==e.exportType){let t=e.exportType;const o=0;if("link"!==t&&"text"!==t&&"css-style-sheet"!==t&&"style"!==t)return r.errors=[{params:{}}],!1;n=0===o}else n=!0;if(n){if(void 0!==e.import){const t=0;if("boolean"!=typeof e.import)return r.errors=[{params:{type:"boolean"}}],!1;n=0===t}else n=!0;if(n){if(void 0!==e.namedExports){const t=0;if("boolean"!=typeof e.namedExports)return r.errors=[{params:{type:"boolean"}}],!1;n=0===t}else n=!0;if(n)if(void 0!==e.url){const t=0;if("boolean"!=typeof e.url)return r.errors=[{params:{type:"boolean"}}],!1;n=0===t}else n=!0}}}}}return r.errors=null,!0}function e(t,{instancePath:o="",parentData:a,parentDataProperty:s,rootData:n=t}={}){let p=null,i=0;return r(t,{instancePath:o,parentData:a,parentDataProperty:s,rootData:n})||(p=null===p?r.errors:p.concat(r.errors),i=p.length),e.errors=p,0===i}module.exports=e,module.exports.default=e;
|