xhs-mp-pack 1.1.0-beta.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 +1 -0
- package/dist/Compilation.d.ts +239 -0
- package/dist/Compilation.js +3513 -0
- package/dist/Compiler.d.ts +76 -0
- package/dist/Compiler.js +845 -0
- package/dist/ConcatenationScope.d.ts +37 -0
- package/dist/ConcatenationScope.js +69 -0
- package/dist/FileSystemInfo.d.ts +183 -0
- package/dist/FileSystemInfo.js +2896 -0
- package/dist/MPPack.d.ts +33 -0
- package/dist/MPPack.js +163 -0
- package/dist/MPPackSetting.d.ts +52 -0
- package/dist/MPPackSetting.js +85 -0
- package/dist/MultiCompiler.d.ts +25 -0
- package/dist/MultiCompiler.js +387 -0
- package/dist/MultiWatching.d.ts +11 -0
- package/dist/MultiWatching.js +54 -0
- package/dist/PluginManager.d.ts +9 -0
- package/dist/PluginManager.js +359 -0
- package/dist/ResolverFactory.d.ts +7 -0
- package/dist/ResolverFactory.js +84 -0
- package/dist/Watching.d.ts +41 -0
- package/dist/Watching.js +359 -0
- package/dist/base/ArrayHelpers.d.ts +6 -0
- package/dist/base/ArrayHelpers.js +21 -0
- package/dist/base/ArrayQueue.d.ts +29 -0
- package/dist/base/ArrayQueue.js +87 -0
- package/dist/base/AsyncQueue.d.ts +37 -0
- package/dist/base/AsyncQueue.js +263 -0
- package/dist/base/ChunkHelpers.d.ts +3 -0
- package/dist/base/ChunkHelpers.js +26 -0
- package/dist/base/ConditionalInitFragment.d.ts +9 -0
- package/dist/base/ConditionalInitFragment.js +64 -0
- package/dist/base/GraphHelpers.d.ts +6 -0
- package/dist/base/GraphHelpers.js +32 -0
- package/dist/base/Hash.d.ts +6 -0
- package/dist/base/Hash.js +13 -0
- package/dist/base/InitFragment.d.ts +22 -0
- package/dist/base/InitFragment.js +113 -0
- package/dist/base/IterableHelpers.d.ts +4 -0
- package/dist/base/IterableHelpers.js +26 -0
- package/dist/base/LazyBucketSortedSet.d.ts +34 -0
- package/dist/base/LazyBucketSortedSet.js +188 -0
- package/dist/base/LazySet.d.ts +35 -0
- package/dist/base/LazySet.js +155 -0
- package/dist/base/MapHelpers.d.ts +14 -0
- package/dist/base/MapHelpers.js +27 -0
- package/dist/base/ModuleFilenameHelpers.d.ts +95 -0
- package/dist/base/ModuleFilenameHelpers.js +314 -0
- package/dist/base/NodeWatchFileSystem.d.ts +23 -0
- package/dist/base/NodeWatchFileSystem.js +135 -0
- package/dist/base/ParallelismFactorCalculator.d.ts +8 -0
- package/dist/base/ParallelismFactorCalculator.js +52 -0
- package/dist/base/Queue.d.ts +12 -0
- package/dist/base/Queue.js +25 -0
- package/dist/base/RequestShortener.d.ts +6 -0
- package/dist/base/RequestShortener.js +15 -0
- package/dist/base/Semaphore.d.ts +12 -0
- package/dist/base/Semaphore.js +37 -0
- package/dist/base/SetHelpers.d.ts +36 -0
- package/dist/base/SetHelpers.js +94 -0
- package/dist/base/SizeFormatHelpers.d.ts +2 -0
- package/dist/base/SizeFormatHelpers.js +15 -0
- package/dist/base/SizeOnlySource.d.ts +14 -0
- package/dist/base/SizeOnlySource.js +34 -0
- package/dist/base/SortableSet.d.ts +18 -0
- package/dist/base/SortableSet.js +90 -0
- package/dist/base/StackedCacheMap.d.ts +20 -0
- package/dist/base/StackedCacheMap.js +73 -0
- package/dist/base/StackedMap.d.ts +17 -0
- package/dist/base/StackedMap.js +103 -0
- package/dist/base/StartupHelpers.d.ts +4 -0
- package/dist/base/StartupHelpers.js +94 -0
- package/dist/base/StringXor.d.ts +53 -0
- package/dist/base/StringXor.js +94 -0
- package/dist/base/TupleQueue.d.ts +10 -0
- package/dist/base/TupleQueue.js +33 -0
- package/dist/base/TupleSet.d.ts +18 -0
- package/dist/base/TupleSet.js +115 -0
- package/dist/base/URLAbsoluteSpecifier.d.ts +3 -0
- package/dist/base/URLAbsoluteSpecifier.js +57 -0
- package/dist/base/WeakTupleMap.d.ts +20 -0
- package/dist/base/WeakTupleMap.js +124 -0
- package/dist/base/binarySearchBounds.d.ts +23 -0
- package/dist/base/binarySearchBounds.js +105 -0
- package/dist/base/cleverMerge.d.ts +27 -0
- package/dist/base/cleverMerge.js +450 -0
- package/dist/base/common.d.ts +7 -0
- package/dist/base/common.js +25 -0
- package/dist/base/commonjs.d.ts +1 -0
- package/dist/base/commonjs.js +48 -0
- package/dist/base/comparators.d.ts +22 -0
- package/dist/base/comparators.js +279 -0
- package/dist/base/compileBooleanMatcher.d.ts +6 -0
- package/dist/base/compileBooleanMatcher.js +162 -0
- package/dist/base/const.d.ts +29 -0
- package/dist/base/const.js +49 -0
- package/dist/base/copyPatterns.d.ts +14 -0
- package/dist/base/copyPatterns.js +501 -0
- package/dist/base/createHash.d.ts +3 -0
- package/dist/base/createHash.js +131 -0
- package/dist/base/defaults.d.ts +3 -0
- package/dist/base/defaults.js +671 -0
- package/dist/base/deprecation.d.ts +21 -0
- package/dist/base/deprecation.js +165 -0
- package/dist/base/deterministicGrouping.d.ts +8 -0
- package/dist/base/deterministicGrouping.js +395 -0
- package/dist/base/errors/AbstractMethodError.d.ts +5 -0
- package/dist/base/errors/AbstractMethodError.js +23 -0
- package/dist/base/errors/AsyncDependencyToInitialChunkError.d.ts +8 -0
- package/dist/base/errors/AsyncDependencyToInitialChunkError.js +18 -0
- package/dist/base/errors/BaseError.d.ts +17 -0
- package/dist/base/errors/BaseError.js +39 -0
- package/dist/base/errors/BuildCycleError.d.ts +8 -0
- package/dist/base/errors/BuildCycleError.js +17 -0
- package/dist/base/errors/CaseSensitiveModulesWarning.d.ts +5 -0
- package/dist/base/errors/CaseSensitiveModulesWarning.js +42 -0
- package/dist/base/errors/ChunkRenderError.d.ts +6 -0
- package/dist/base/errors/ChunkRenderError.js +18 -0
- package/dist/base/errors/CodeGenerationError.d.ts +8 -0
- package/dist/base/errors/CodeGenerationError.js +20 -0
- package/dist/base/errors/CommentCompilationWarning.d.ts +5 -0
- package/dist/base/errors/CommentCompilationWarning.js +16 -0
- package/dist/base/errors/ConcurrentCompilationError.d.ts +4 -0
- package/dist/base/errors/ConcurrentCompilationError.js +15 -0
- package/dist/base/errors/CriticalDependencyWarning.d.ts +5 -0
- package/dist/base/errors/CriticalDependencyWarning.js +16 -0
- package/dist/base/errors/ErrorHelpers.d.ts +8 -0
- package/dist/base/errors/ErrorHelpers.js +51 -0
- package/dist/base/errors/HarmonyLinkingError.d.ts +4 -0
- package/dist/base/errors/HarmonyLinkingError.js +14 -0
- package/dist/base/errors/HookBaseError.d.ts +10 -0
- package/dist/base/errors/HookBaseError.js +51 -0
- package/dist/base/errors/InvalidDependenciesModuleWarning.d.ts +5 -0
- package/dist/base/errors/InvalidDependenciesModuleWarning.js +26 -0
- package/dist/base/errors/MinMaxSizeWarning.d.ts +5 -0
- package/dist/base/errors/MinMaxSizeWarning.js +45 -0
- package/dist/base/errors/ModuleBuildError.d.ts +9 -0
- package/dist/base/errors/ModuleBuildError.js +62 -0
- package/dist/base/errors/ModuleDependencyError.d.ts +8 -0
- package/dist/base/errors/ModuleDependencyError.js +24 -0
- package/dist/base/errors/ModuleDependencyWarning.d.ts +6 -0
- package/dist/base/errors/ModuleDependencyWarning.js +23 -0
- package/dist/base/errors/ModuleError.d.ts +10 -0
- package/dist/base/errors/ModuleError.js +42 -0
- package/dist/base/errors/ModuleHashingError.d.ts +5 -0
- package/dist/base/errors/ModuleHashingError.js +17 -0
- package/dist/base/errors/ModuleNotFoundError.d.ts +5 -0
- package/dist/base/errors/ModuleNotFoundError.js +69 -0
- package/dist/base/errors/ModuleParseError.d.ts +8 -0
- package/dist/base/errors/ModuleParseError.js +77 -0
- package/dist/base/errors/ModuleRestoreError.d.ts +5 -0
- package/dist/base/errors/ModuleRestoreError.js +33 -0
- package/dist/base/errors/ModuleStoreError.d.ts +5 -0
- package/dist/base/errors/ModuleStoreError.js +33 -0
- package/dist/base/errors/ModuleWarning.d.ts +10 -0
- package/dist/base/errors/ModuleWarning.js +44 -0
- package/dist/base/errors/NodeStuffInWebError.d.ts +5 -0
- package/dist/base/errors/NodeStuffInWebError.js +17 -0
- package/dist/base/errors/UnhandledSchemeError.d.ts +5 -0
- package/dist/base/errors/UnhandledSchemeError.js +18 -0
- package/dist/base/errors/UnsupportedFeatureWarning.d.ts +5 -0
- package/dist/base/errors/UnsupportedFeatureWarning.js +17 -0
- package/dist/base/extractUrlAndGlobal.d.ts +1 -0
- package/dist/base/extractUrlAndGlobal.js +10 -0
- package/dist/base/findGraphRoots.d.ts +2 -0
- package/dist/base/findGraphRoots.js +183 -0
- package/dist/base/formatLocation.d.ts +2 -0
- package/dist/base/formatLocation.js +47 -0
- package/dist/base/fs.d.ts +94 -0
- package/dist/base/fs.js +218 -0
- package/dist/base/hash/BatchedHash.d.ts +11 -0
- package/dist/base/hash/BatchedHash.js +47 -0
- package/dist/base/hash/md4.d.ts +2 -0
- package/dist/base/hash/md4.js +10 -0
- package/dist/base/hash/wasm-hash.d.ts +3 -0
- package/dist/base/hash/wasm-hash.js +138 -0
- package/dist/base/hash/xxhash64.d.ts +2 -0
- package/dist/base/hash/xxhash64.js +10 -0
- package/dist/base/identifier.d.ts +30 -0
- package/dist/base/identifier.js +237 -0
- package/dist/base/logging/Logger.d.ts +40 -0
- package/dist/base/logging/Logger.js +128 -0
- package/dist/base/logging/createConsoleLogger.d.ts +6 -0
- package/dist/base/logging/createConsoleLogger.js +161 -0
- package/dist/base/logging/nodeConsole.d.ts +21 -0
- package/dist/base/logging/nodeConsole.js +109 -0
- package/dist/base/logging/runtime.d.ts +8 -0
- package/dist/base/logging/runtime.js +30 -0
- package/dist/base/logging/truncateArgs.d.ts +2 -0
- package/dist/base/logging/truncateArgs.js +66 -0
- package/dist/base/memoize.d.ts +2 -0
- package/dist/base/memoize.js +18 -0
- package/dist/base/missingModule.d.ts +4 -0
- package/dist/base/missingModule.js +16 -0
- package/dist/base/moduleAlias.d.ts +1 -0
- package/dist/base/moduleAlias.js +8 -0
- package/dist/base/nonNumericOnlyHash.d.ts +7 -0
- package/dist/base/nonNumericOnlyHash.js +16 -0
- package/dist/base/normalization.d.ts +32 -0
- package/dist/base/normalization.js +320 -0
- package/dist/base/numberHash.d.ts +17 -0
- package/dist/base/numberHash.js +72 -0
- package/dist/base/objectToMap.d.ts +1 -0
- package/dist/base/objectToMap.js +6 -0
- package/dist/base/processAsyncTree.d.ts +2 -0
- package/dist/base/processAsyncTree.js +45 -0
- package/dist/base/propertyAccess.d.ts +2 -0
- package/dist/base/propertyAccess.js +20 -0
- package/dist/base/propertyName.d.ts +9 -0
- package/dist/base/propertyName.js +71 -0
- package/dist/base/semver.d.ts +25 -0
- package/dist/base/semver.js +425 -0
- package/dist/base/singletontask.d.ts +27 -0
- package/dist/base/singletontask.js +124 -0
- package/dist/base/smartGrouping.d.ts +2 -0
- package/dist/base/smartGrouping.js +138 -0
- package/dist/base/source.d.ts +2 -0
- package/dist/base/source.js +48 -0
- package/dist/base/stats/MultiStats.d.ts +19 -0
- package/dist/base/stats/MultiStats.js +142 -0
- package/dist/base/stats/Stats.d.ts +13 -0
- package/dist/base/stats/Stats.js +49 -0
- package/dist/base/stats/StatsFactory.d.ts +26 -0
- package/dist/base/stats/StatsFactory.js +163 -0
- package/dist/base/stats/StatsPrinter.d.ts +12 -0
- package/dist/base/stats/StatsPrinter.js +104 -0
- package/dist/base/utils.d.ts +5 -0
- package/dist/base/utils.js +35 -0
- package/dist/cache/AddBuildDependenciesPlugin.d.ts +6 -0
- package/dist/cache/AddBuildDependenciesPlugin.js +13 -0
- package/dist/cache/AddManagedPathsPlugin.d.ts +7 -0
- package/dist/cache/AddManagedPathsPlugin.js +17 -0
- package/dist/cache/Cache.d.ts +15 -0
- package/dist/cache/Cache.js +69 -0
- package/dist/cache/CacheFacade.d.ts +37 -0
- package/dist/cache/CacheFacade.js +187 -0
- package/dist/cache/IdleFileCachePlugin.d.ts +9 -0
- package/dist/cache/IdleFileCachePlugin.js +165 -0
- package/dist/cache/MemoryCachePlugin.d.ts +4 -0
- package/dist/cache/MemoryCachePlugin.js +36 -0
- package/dist/cache/MemoryWithGcCachePlugin.d.ts +8 -0
- package/dist/cache/MemoryWithGcCachePlugin.js +104 -0
- package/dist/cache/PackFileCacheStrategy.d.ts +47 -0
- package/dist/cache/PackFileCacheStrategy.js +1085 -0
- package/dist/cache/ResolverCachePlugin.d.ts +4 -0
- package/dist/cache/ResolverCachePlugin.js +248 -0
- package/dist/cache/getLazyHashedEtag.d.ts +2 -0
- package/dist/cache/getLazyHashedEtag.js +53 -0
- package/dist/cache/mergeEtags.d.ts +2 -0
- package/dist/cache/mergeEtags.js +50 -0
- package/dist/chunk/Chunk.d.ts +75 -0
- package/dist/chunk/Chunk.js +445 -0
- package/dist/chunk/ChunkGraph.d.ts +102 -0
- package/dist/chunk/ChunkGraph.js +1037 -0
- package/dist/chunk/ChunkGroup.d.ts +62 -0
- package/dist/chunk/ChunkGroup.js +341 -0
- package/dist/chunk/CodeGenerationResults.d.ts +13 -0
- package/dist/chunk/CodeGenerationResults.js +82 -0
- package/dist/chunk/Entrypoint.d.ts +22 -0
- package/dist/chunk/Entrypoint.js +56 -0
- package/dist/chunk/GraphHelpers.d.ts +3 -0
- package/dist/chunk/GraphHelpers.js +15 -0
- package/dist/chunk/buildChunkGraph.d.ts +2 -0
- package/dist/chunk/buildChunkGraph.js +1067 -0
- package/dist/chunk/chunkFormat/ArrayPushCallbackChunkFormatPlugin.d.ts +4 -0
- package/dist/chunk/chunkFormat/ArrayPushCallbackChunkFormatPlugin.js +101 -0
- package/dist/chunk/chunkLoading/JsonpChunkLoadingPlugin.d.ts +4 -0
- package/dist/chunk/chunkLoading/JsonpChunkLoadingPlugin.js +98 -0
- package/dist/chunk/chunkLoading/JsonpChunkLoadingRuntimeModule.d.ts +15 -0
- package/dist/chunk/chunkLoading/JsonpChunkLoadingRuntimeModule.js +272 -0
- package/dist/dependencies/AsyncDependenciesBlock.d.ts +14 -0
- package/dist/dependencies/AsyncDependenciesBlock.js +64 -0
- package/dist/dependencies/CreateScriptUrlDependency.d.ts +9 -0
- package/dist/dependencies/CreateScriptUrlDependency.js +60 -0
- package/dist/dependencies/DelegatedSourceDependency.d.ts +7 -0
- package/dist/dependencies/DelegatedSourceDependency.js +20 -0
- package/dist/dependencies/DependenciesBlock.d.ts +29 -0
- package/dist/dependencies/DependenciesBlock.js +66 -0
- package/dist/dependencies/Dependency.d.ts +44 -0
- package/dist/dependencies/Dependency.js +171 -0
- package/dist/dependencies/DependencyTemplate.d.ts +4 -0
- package/dist/dependencies/DependencyTemplate.js +9 -0
- package/dist/dependencies/DependencyTemplates.d.ts +12 -0
- package/dist/dependencies/DependencyTemplates.js +34 -0
- package/dist/dependencies/DynamicExports.d.ts +6 -0
- package/dist/dependencies/DynamicExports.js +48 -0
- package/dist/dependencies/ExportsInfoDependency.d.ts +10 -0
- package/dist/dependencies/ExportsInfoDependency.js +80 -0
- package/dist/dependencies/LocalModule.d.ts +11 -0
- package/dist/dependencies/LocalModule.js +33 -0
- package/dist/dependencies/LocalModuleDependency.d.ts +10 -0
- package/dist/dependencies/LocalModuleDependency.js +42 -0
- package/dist/dependencies/LocalModulesHelpers.d.ts +4 -0
- package/dist/dependencies/LocalModulesHelpers.js +48 -0
- package/dist/dependencies/ModuleDecoratorDependency.d.ts +15 -0
- package/dist/dependencies/ModuleDecoratorDependency.js +85 -0
- package/dist/dependencies/ModuleDependency.d.ts +16 -0
- package/dist/dependencies/ModuleDependency.js +53 -0
- package/dist/dependencies/ModuleDependencyTemplateAsId.d.ts +9 -0
- package/dist/dependencies/ModuleDependencyTemplateAsId.js +21 -0
- package/dist/dependencies/ModuleDependencyTemplateAsRequireId.d.ts +10 -0
- package/dist/dependencies/ModuleDependencyTemplateAsRequireId.js +22 -0
- package/dist/dependencies/NullDependency.d.ts +7 -0
- package/dist/dependencies/NullDependency.js +19 -0
- package/dist/dependencies/PureExpressionDependency.d.ts +12 -0
- package/dist/dependencies/PureExpressionDependency.js +73 -0
- package/dist/dependencies/RequireHeaderDependency.d.ts +8 -0
- package/dist/dependencies/RequireHeaderDependency.js +58 -0
- package/dist/dependencies/RequireResolveContextDependency.d.ts +8 -0
- package/dist/dependencies/RequireResolveContextDependency.js +33 -0
- package/dist/dependencies/RequireResolveDependency.d.ts +10 -0
- package/dist/dependencies/RequireResolveDependency.js +29 -0
- package/dist/dependencies/RequireResolveHeaderDependency.d.ts +8 -0
- package/dist/dependencies/RequireResolveHeaderDependency.js +36 -0
- package/dist/dependencies/RuntimeRequirementsDependency.d.ts +10 -0
- package/dist/dependencies/RuntimeRequirementsDependency.js +40 -0
- package/dist/dependencies/StaticExportsDependency.d.ts +15 -0
- package/dist/dependencies/StaticExportsDependency.js +38 -0
- package/dist/dependencies/URLDependency.d.ts +16 -0
- package/dist/dependencies/URLDependency.js +103 -0
- package/dist/dependencies/URLPlugin.d.ts +4 -0
- package/dist/dependencies/URLPlugin.js +107 -0
- package/dist/dependencies/UnsupportedDependency.d.ts +9 -0
- package/dist/dependencies/UnsupportedDependency.js +36 -0
- package/dist/dependencies/commonjs/CommonJsDependencyHelpers.d.ts +2 -0
- package/dist/dependencies/commonjs/CommonJsDependencyHelpers.js +67 -0
- package/dist/dependencies/commonjs/CommonJsExportRequireDependency.d.ts +46 -0
- package/dist/dependencies/commonjs/CommonJsExportRequireDependency.js +260 -0
- package/dist/dependencies/commonjs/CommonJsExportsDependency.d.ts +19 -0
- package/dist/dependencies/commonjs/CommonJsExportsDependency.js +82 -0
- package/dist/dependencies/commonjs/CommonJsExportsParserPlugin.d.ts +6 -0
- package/dist/dependencies/commonjs/CommonJsExportsParserPlugin.js +314 -0
- package/dist/dependencies/commonjs/CommonJsFullRequireDependency.d.ts +13 -0
- package/dist/dependencies/commonjs/CommonJsFullRequireDependency.js +77 -0
- package/dist/dependencies/commonjs/CommonJsImportsParserPlugin.d.ts +6 -0
- package/dist/dependencies/commonjs/CommonJsImportsParserPlugin.js +500 -0
- package/dist/dependencies/commonjs/CommonJsPlugin.d.ts +4 -0
- package/dist/dependencies/commonjs/CommonJsPlugin.js +170 -0
- package/dist/dependencies/commonjs/CommonJsRequireContextDependency.d.ts +8 -0
- package/dist/dependencies/commonjs/CommonJsRequireContextDependency.js +37 -0
- package/dist/dependencies/commonjs/CommonJsRequireDependency.d.ts +7 -0
- package/dist/dependencies/commonjs/CommonJsRequireDependency.js +24 -0
- package/dist/dependencies/commonjs/CommonJsSelfReferenceDependency.d.ts +15 -0
- package/dist/dependencies/commonjs/CommonJsSelfReferenceDependency.js +112 -0
- package/dist/dependencies/const/CachedConstDependency.d.ts +12 -0
- package/dist/dependencies/const/CachedConstDependency.js +50 -0
- package/dist/dependencies/const/ConstDependency.d.ts +13 -0
- package/dist/dependencies/const/ConstDependency.js +63 -0
- package/dist/dependencies/context/ContextDependency.d.ts +26 -0
- package/dist/dependencies/context/ContextDependency.js +91 -0
- package/dist/dependencies/context/ContextDependencyHelpers.d.ts +2 -0
- package/dist/dependencies/context/ContextDependencyHelpers.js +128 -0
- package/dist/dependencies/context/ContextDependencyTemplateAsId.d.ts +10 -0
- package/dist/dependencies/context/ContextDependencyTemplateAsId.js +37 -0
- package/dist/dependencies/context/ContextDependencyTemplateAsRequireCall.d.ts +10 -0
- package/dist/dependencies/context/ContextDependencyTemplateAsRequireCall.js +39 -0
- package/dist/dependencies/context/ContextElementDependency.d.ts +13 -0
- package/dist/dependencies/context/ContextElementDependency.js +53 -0
- package/dist/dependencies/css/CssExportDependency.d.ts +17 -0
- package/dist/dependencies/css/CssExportDependency.js +49 -0
- package/dist/dependencies/css/CssImportDependency.d.ts +14 -0
- package/dist/dependencies/css/CssImportDependency.js +60 -0
- package/dist/dependencies/css/CssLocalIdentifierDependency.d.ts +12 -0
- package/dist/dependencies/css/CssLocalIdentifierDependency.js +69 -0
- package/dist/dependencies/css/CssSelfLocalIdentifierDependency.d.ts +13 -0
- package/dist/dependencies/css/CssSelfLocalIdentifierDependency.js +53 -0
- package/dist/dependencies/css/CssUrlDependency.d.ts +12 -0
- package/dist/dependencies/css/CssUrlDependency.js +89 -0
- package/dist/dependencies/entry/DynamicEntryPlugin.d.ts +22 -0
- package/dist/dependencies/entry/DynamicEntryPlugin.js +62 -0
- package/dist/dependencies/entry/EntryDependency.d.ts +7 -0
- package/dist/dependencies/entry/EntryDependency.js +20 -0
- package/dist/dependencies/getFunctionExpression.d.ts +10 -0
- package/dist/dependencies/getFunctionExpression.js +42 -0
- package/dist/dependencies/harmony/HarmonyAcceptDependency.d.ts +11 -0
- package/dist/dependencies/harmony/HarmonyAcceptDependency.js +81 -0
- package/dist/dependencies/harmony/HarmonyAcceptImportDependency.d.ts +6 -0
- package/dist/dependencies/harmony/HarmonyAcceptImportDependency.js +20 -0
- package/dist/dependencies/harmony/HarmonyCompatibilityDependency.d.ts +5 -0
- package/dist/dependencies/harmony/HarmonyCompatibilityDependency.js +61 -0
- package/dist/dependencies/harmony/HarmonyDetectionParserPlugin.d.ts +5 -0
- package/dist/dependencies/harmony/HarmonyDetectionParserPlugin.js +102 -0
- package/dist/dependencies/harmony/HarmonyEvaluatedImportSpecifierDependency.d.ts +16 -0
- package/dist/dependencies/harmony/HarmonyEvaluatedImportSpecifierDependency.js +84 -0
- package/dist/dependencies/harmony/HarmonyExportDependencyParserPlugin.d.ts +5 -0
- package/dist/dependencies/harmony/HarmonyExportDependencyParserPlugin.js +143 -0
- package/dist/dependencies/harmony/HarmonyExportExpressionDependency.d.ts +23 -0
- package/dist/dependencies/harmony/HarmonyExportExpressionDependency.js +148 -0
- package/dist/dependencies/harmony/HarmonyExportHeaderDependency.d.ts +10 -0
- package/dist/dependencies/harmony/HarmonyExportHeaderDependency.js +39 -0
- package/dist/dependencies/harmony/HarmonyExportImportedSpecifierDependency.d.ts +140 -0
- package/dist/dependencies/harmony/HarmonyExportImportedSpecifierDependency.js +763 -0
- package/dist/dependencies/harmony/HarmonyExportInitFragment.d.ts +14 -0
- package/dist/dependencies/harmony/HarmonyExportInitFragment.js +147 -0
- package/dist/dependencies/harmony/HarmonyExportSpecifierDependency.d.ts +17 -0
- package/dist/dependencies/harmony/HarmonyExportSpecifierDependency.js +62 -0
- package/dist/dependencies/harmony/HarmonyExports.d.ts +3 -0
- package/dist/dependencies/harmony/HarmonyExports.js +51 -0
- package/dist/dependencies/harmony/HarmonyImportDependency.d.ts +30 -0
- package/dist/dependencies/harmony/HarmonyImportDependency.js +217 -0
- package/dist/dependencies/harmony/HarmonyImportDependencyParserPlugin.d.ts +9 -0
- package/dist/dependencies/harmony/HarmonyImportDependencyParserPlugin.js +202 -0
- package/dist/dependencies/harmony/HarmonyImportSideEffectDependency.d.ts +8 -0
- package/dist/dependencies/harmony/HarmonyImportSideEffectDependency.js +43 -0
- package/dist/dependencies/harmony/HarmonyImportSpecifierDependency.d.ts +33 -0
- package/dist/dependencies/harmony/HarmonyImportSpecifierDependency.js +272 -0
- package/dist/dependencies/harmony/HarmonyModulesPlugin.d.ts +6 -0
- package/dist/dependencies/harmony/HarmonyModulesPlugin.js +57 -0
- package/dist/dependencies/harmony/HarmonyTopLevelThisParserPlugin.d.ts +4 -0
- package/dist/dependencies/harmony/HarmonyTopLevelThisParserPlugin.js +45 -0
- package/dist/dependencies/import/ImportContextDependency.d.ts +9 -0
- package/dist/dependencies/import/ImportContextDependency.js +34 -0
- package/dist/dependencies/import/ImportDependency.d.ts +11 -0
- package/dist/dependencies/import/ImportDependency.js +57 -0
- package/dist/dependencies/import/ImportEagerDependency.d.ts +7 -0
- package/dist/dependencies/import/ImportEagerDependency.js +34 -0
- package/dist/dependencies/import/ImportMetaContextDependency.d.ts +7 -0
- package/dist/dependencies/import/ImportMetaContextDependency.js +23 -0
- package/dist/dependencies/import/ImportMetaContextDependencyParserPlugin.d.ts +3 -0
- package/dist/dependencies/import/ImportMetaContextDependencyParserPlugin.js +207 -0
- package/dist/dependencies/import/ImportMetaContextPlugin.d.ts +4 -0
- package/dist/dependencies/import/ImportMetaContextPlugin.js +27 -0
- package/dist/dependencies/import/ImportMetaHotAcceptDependency.d.ts +7 -0
- package/dist/dependencies/import/ImportMetaHotAcceptDependency.js +24 -0
- package/dist/dependencies/import/ImportMetaHotDeclineDependency.d.ts +7 -0
- package/dist/dependencies/import/ImportMetaHotDeclineDependency.js +24 -0
- package/dist/dependencies/import/ImportMetaPlugin.d.ts +4 -0
- package/dist/dependencies/import/ImportMetaPlugin.js +129 -0
- package/dist/dependencies/import/ImportParserPlugin.d.ts +6 -0
- package/dist/dependencies/import/ImportParserPlugin.js +207 -0
- package/dist/dependencies/import/ImportPlugin.d.ts +4 -0
- package/dist/dependencies/import/ImportPlugin.js +37 -0
- package/dist/dependencies/import/ImportWeakDependency.d.ts +6 -0
- package/dist/dependencies/import/ImportWeakDependency.js +33 -0
- package/dist/dependencies/json/JsonExportsDependency.d.ts +14 -0
- package/dist/dependencies/json/JsonExportsDependency.js +61 -0
- package/dist/dependencies/loader/LoaderDependency.d.ts +8 -0
- package/dist/dependencies/loader/LoaderDependency.js +21 -0
- package/dist/dependencies/loader/LoaderImportDependency.d.ts +8 -0
- package/dist/dependencies/loader/LoaderImportDependency.js +22 -0
- package/dist/dependencies/loader/LoaderPlugin.d.ts +5 -0
- package/dist/dependencies/loader/LoaderPlugin.js +164 -0
- package/dist/dependencies/processExportInfo.d.ts +2 -0
- package/dist/dependencies/processExportInfo.js +32 -0
- package/dist/ids/DeterministicChunkIdsPlugin.d.ts +10 -0
- package/dist/ids/DeterministicChunkIdsPlugin.js +30 -0
- package/dist/ids/DeterministicModuleIdsPlugin.d.ts +6 -0
- package/dist/ids/DeterministicModuleIdsPlugin.js +38 -0
- package/dist/ids/IdHelpers.d.ts +16 -0
- package/dist/ids/IdHelpers.js +259 -0
- package/dist/ids/NamedChunkIdsPlugin.d.ts +11 -0
- package/dist/ids/NamedChunkIdsPlugin.js +34 -0
- package/dist/ids/NamedModuleIdsPlugin.d.ts +6 -0
- package/dist/ids/NamedModuleIdsPlugin.js +25 -0
- package/dist/ids/NaturalChunkIdsPlugin.d.ts +4 -0
- package/dist/ids/NaturalChunkIdsPlugin.js +17 -0
- package/dist/ids/NaturalModuleIdsPlugin.d.ts +4 -0
- package/dist/ids/NaturalModuleIdsPlugin.js +16 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +58 -0
- package/dist/library/AbstractLibraryPlugin.d.ts +21 -0
- package/dist/library/AbstractLibraryPlugin.js +177 -0
- package/dist/library/AssignLibraryPlugin.d.ts +53 -0
- package/dist/library/AssignLibraryPlugin.js +201 -0
- package/dist/library/EnableLibraryPlugin.d.ts +8 -0
- package/dist/library/EnableLibraryPlugin.js +174 -0
- package/dist/library/ExportPropertyLibraryPlugin.d.ts +22 -0
- package/dist/library/ExportPropertyLibraryPlugin.js +74 -0
- package/dist/library/JsonpLibraryPlugin.d.ts +19 -0
- package/dist/library/JsonpLibraryPlugin.js +35 -0
- package/dist/library/ModuleLibraryPlugin.d.ts +16 -0
- package/dist/library/ModuleLibraryPlugin.js +73 -0
- package/dist/library/UmdLibraryPlugin.d.ts +22 -0
- package/dist/library/UmdLibraryPlugin.js +161 -0
- package/dist/module/ContextExclusionPlugin.d.ts +6 -0
- package/dist/module/ContextExclusionPlugin.js +13 -0
- package/dist/module/ContextModule.d.ts +75 -0
- package/dist/module/ContextModule.js +844 -0
- package/dist/module/ContextModuleFactory.d.ts +8 -0
- package/dist/module/ContextModuleFactory.js +292 -0
- package/dist/module/ContextReplacementPlugin.d.ts +11 -0
- package/dist/module/ContextReplacementPlugin.js +128 -0
- package/dist/module/CssModule.d.ts +20 -0
- package/dist/module/CssModule.js +105 -0
- package/dist/module/ExportsInfo.d.ts +135 -0
- package/dist/module/ExportsInfo.js +1171 -0
- package/dist/module/ExportsInfoApiPlugin.d.ts +4 -0
- package/dist/module/ExportsInfoApiPlugin.js +38 -0
- package/dist/module/ExternalModule.d.ts +47 -0
- package/dist/module/ExternalModule.js +458 -0
- package/dist/module/ExternalModuleFactoryPlugin.d.ts +7 -0
- package/dist/module/ExternalModuleFactoryPlugin.js +176 -0
- package/dist/module/ExternalsPlugin.d.ts +7 -0
- package/dist/module/ExternalsPlugin.js +18 -0
- package/dist/module/Generator.d.ts +40 -0
- package/dist/module/Generator.js +49 -0
- package/dist/module/IgnoreErrorModuleFactory.d.ts +7 -0
- package/dist/module/IgnoreErrorModuleFactory.js +16 -0
- package/dist/module/JavascriptMetaInfoPlugin.d.ts +4 -0
- package/dist/module/JavascriptMetaInfoPlugin.js +65 -0
- package/dist/module/LazyModuleFactoryPlugin.d.ts +6 -0
- package/dist/module/LazyModuleFactoryPlugin.js +171 -0
- package/dist/module/Module.d.ts +175 -0
- package/dist/module/Module.js +550 -0
- package/dist/module/ModuleFactory.d.ts +25 -0
- package/dist/module/ModuleFactory.js +10 -0
- package/dist/module/ModuleGraph.d.ts +74 -0
- package/dist/module/ModuleGraph.js +470 -0
- package/dist/module/ModuleGraphConnection.d.ts +33 -0
- package/dist/module/ModuleGraphConnection.js +113 -0
- package/dist/module/ModuleProfile.d.ts +40 -0
- package/dist/module/ModuleProfile.js +77 -0
- package/dist/module/ModuleTypeConstants.d.ts +22 -0
- package/dist/module/ModuleTypeConstants.js +45 -0
- package/dist/module/NormalModule.d.ts +104 -0
- package/dist/module/NormalModule.js +904 -0
- package/dist/module/NormalModuleFactory.d.ts +36 -0
- package/dist/module/NormalModuleFactory.js +761 -0
- package/dist/module/Parser.d.ts +4 -0
- package/dist/module/Parser.js +9 -0
- package/dist/module/RawModule.d.ts +29 -0
- package/dist/module/RawModule.js +74 -0
- package/dist/module/RuntimeGlobals.d.ts +310 -0
- package/dist/module/RuntimeGlobals.js +316 -0
- package/dist/module/RuntimeHelpers.d.ts +43 -0
- package/dist/module/RuntimeHelpers.js +548 -0
- package/dist/module/RuntimeModule.d.ts +39 -0
- package/dist/module/RuntimeModule.js +114 -0
- package/dist/module/RuntimePlugin.d.ts +4 -0
- package/dist/module/RuntimePlugin.js +332 -0
- package/dist/module/SelfModuleFactory.d.ts +6 -0
- package/dist/module/SelfModuleFactory.js +14 -0
- package/dist/module/asset/AssetGenerator.d.ts +30 -0
- package/dist/module/asset/AssetGenerator.js +364 -0
- package/dist/module/asset/AssetModulesPlugin.d.ts +4 -0
- package/dist/module/asset/AssetModulesPlugin.js +98 -0
- package/dist/module/asset/AssetParser.d.ts +12 -0
- package/dist/module/asset/AssetParser.js +44 -0
- package/dist/module/asset/AssetSourceGenerator.d.ts +14 -0
- package/dist/module/asset/AssetSourceGenerator.js +74 -0
- package/dist/module/asset/AssetSourceParser.d.ts +5 -0
- package/dist/module/asset/AssetSourceParser.js +19 -0
- package/dist/module/asset/RawDataUrlModule.d.ts +27 -0
- package/dist/module/asset/RawDataUrlModule.js +102 -0
- package/dist/module/async-modules/AwaitDependenciesInitFragment.d.ts +10 -0
- package/dist/module/async-modules/AwaitDependenciesInitFragment.js +68 -0
- package/dist/module/async-modules/InferAsyncModulesPlugin.d.ts +4 -0
- package/dist/module/async-modules/InferAsyncModulesPlugin.js +28 -0
- package/dist/module/javascript/BasicEvaluatedExpression.d.ts +139 -0
- package/dist/module/javascript/BasicEvaluatedExpression.js +481 -0
- package/dist/module/javascript/JavascriptGenerator.d.ts +11 -0
- package/dist/module/javascript/JavascriptGenerator.js +103 -0
- package/dist/module/javascript/JavascriptModulesPlugin.d.ts +17 -0
- package/dist/module/javascript/JavascriptModulesPlugin.js +821 -0
- package/dist/module/javascript/JavascriptParser.d.ts +598 -0
- package/dist/module/javascript/JavascriptParser.js +3579 -0
- package/dist/module/javascript/JavascriptParserHelpers.d.ts +10 -0
- package/dist/module/javascript/JavascriptParserHelpers.js +61 -0
- package/dist/module/json/JsonData.d.ts +9 -0
- package/dist/module/json/JsonData.js +43 -0
- package/dist/module/json/JsonGenerator.d.ts +15 -0
- package/dist/module/json/JsonGenerator.js +137 -0
- package/dist/module/json/JsonModulesPlugin.d.ts +4 -0
- package/dist/module/json/JsonModulesPlugin.js +20 -0
- package/dist/module/json/JsonParser.d.ts +7 -0
- package/dist/module/json/JsonParser.js +41 -0
- package/dist/module/runtime/AsyncModuleRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/AsyncModuleRuntimeModule.js +115 -0
- package/dist/module/runtime/AutoPublicPathRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/AutoPublicPathRuntimeModule.js +81 -0
- package/dist/module/runtime/BaseUriRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/BaseUriRuntimeModule.js +41 -0
- package/dist/module/runtime/ChunkNameRuntimeModule.d.ts +7 -0
- package/dist/module/runtime/ChunkNameRuntimeModule.js +40 -0
- package/dist/module/runtime/CompatGetDefaultExportRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/CompatGetDefaultExportRuntimeModule.js +54 -0
- package/dist/module/runtime/CompatRuntimeModule.d.ts +7 -0
- package/dist/module/runtime/CompatRuntimeModule.js +59 -0
- package/dist/module/runtime/CreateFakeNamespaceObjectRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/CreateFakeNamespaceObjectRuntimeModule.js +77 -0
- package/dist/module/runtime/CreateScriptRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/CreateScriptRuntimeModule.js +44 -0
- package/dist/module/runtime/CreateScriptUrlRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/CreateScriptUrlRuntimeModule.js +44 -0
- package/dist/module/runtime/DefinePropertyGettersRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/DefinePropertyGettersRuntimeModule.js +56 -0
- package/dist/module/runtime/EnsureChunkRuntimeModule.d.ts +7 -0
- package/dist/module/runtime/EnsureChunkRuntimeModule.js +66 -0
- package/dist/module/runtime/GetChunkFilenameRuntimeModule.d.ts +10 -0
- package/dist/module/runtime/GetChunkFilenameRuntimeModule.js +220 -0
- package/dist/module/runtime/GetFullHashRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/GetFullHashRuntimeModule.js +42 -0
- package/dist/module/runtime/GetMainFilenameRuntimeModule.d.ts +8 -0
- package/dist/module/runtime/GetMainFilenameRuntimeModule.js +52 -0
- package/dist/module/runtime/GetTrustedTypesPolicyRuntimeModule.d.ts +7 -0
- package/dist/module/runtime/GetTrustedTypesPolicyRuntimeModule.js +89 -0
- package/dist/module/runtime/GlobalRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/GlobalRuntimeModule.js +61 -0
- package/dist/module/runtime/HasOwnPropertyRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/HasOwnPropertyRuntimeModule.js +44 -0
- package/dist/module/runtime/HelperRuntimeModule.d.ts +5 -0
- package/dist/module/runtime/HelperRuntimeModule.js +12 -0
- package/dist/module/runtime/LoadScriptRuntimeModule.d.ts +9 -0
- package/dist/module/runtime/LoadScriptRuntimeModule.js +129 -0
- package/dist/module/runtime/MakeNamespaceObjectRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/MakeNamespaceObjectRuntimeModule.js +53 -0
- package/dist/module/runtime/NonceRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/NonceRuntimeModule.js +39 -0
- package/dist/module/runtime/OnChunksLoadedRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/OnChunksLoadedRuntimeModule.js +81 -0
- package/dist/module/runtime/PublicPathRuntimeModule.d.ts +7 -0
- package/dist/module/runtime/PublicPathRuntimeModule.js +44 -0
- package/dist/module/runtime/RelativeUrlRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/RelativeUrlRuntimeModule.js +56 -0
- package/dist/module/runtime/RuntimeIdRuntimeModule.d.ts +6 -0
- package/dist/module/runtime/RuntimeIdRuntimeModule.js +45 -0
- package/dist/module/runtime/StartupChunkDependenciesPlugin.d.ts +11 -0
- package/dist/module/runtime/StartupChunkDependenciesPlugin.js +69 -0
- package/dist/module/runtime/StartupChunkDependenciesRuntimeModule.d.ts +7 -0
- package/dist/module/runtime/StartupChunkDependenciesRuntimeModule.js +67 -0
- package/dist/module/runtime/StartupEntrypointRuntimeModule.d.ts +7 -0
- package/dist/module/runtime/StartupEntrypointRuntimeModule.js +58 -0
- package/dist/module/uri/DataUriPlugin.d.ts +4 -0
- package/dist/module/uri/DataUriPlugin.js +46 -0
- package/dist/module/uri/FileUriPlugin.d.ts +4 -0
- package/dist/module/uri/FileUriPlugin.js +31 -0
- package/dist/plugins/APIPlugin.d.ts +9 -0
- package/dist/plugins/APIPlugin.js +230 -0
- package/dist/plugins/CleanPlugin.d.ts +7 -0
- package/dist/plugins/CleanPlugin.js +295 -0
- package/dist/plugins/CompatibilityPlugin.d.ts +4 -0
- package/dist/plugins/CompatibilityPlugin.js +142 -0
- package/dist/plugins/ConstPlugin.d.ts +4 -0
- package/dist/plugins/ConstPlugin.js +409 -0
- package/dist/plugins/DefaultStatsFactoryPlugin.d.ts +4 -0
- package/dist/plugins/DefaultStatsFactoryPlugin.js +1552 -0
- package/dist/plugins/DefaultStatsPresetPlugin.d.ts +4 -0
- package/dist/plugins/DefaultStatsPresetPlugin.js +306 -0
- package/dist/plugins/DefaultStatsPrinterPlugin.d.ts +4 -0
- package/dist/plugins/DefaultStatsPrinterPlugin.js +986 -0
- package/dist/plugins/DefinePlugin.d.ts +15 -0
- package/dist/plugins/DefinePlugin.js +400 -0
- package/dist/plugins/NodeStuffPlugin.d.ts +6 -0
- package/dist/plugins/NodeStuffPlugin.js +134 -0
- package/dist/plugins/ProgressPlugin.d.ts +20 -0
- package/dist/plugins/ProgressPlugin.js +494 -0
- package/dist/plugins/RecordIdsPlugin.d.ts +9 -0
- package/dist/plugins/RecordIdsPlugin.js +175 -0
- package/dist/plugins/UseStrictPlugin.d.ts +4 -0
- package/dist/plugins/UseStrictPlugin.js +35 -0
- package/dist/plugins/WarnCaseSensitiveModulesPlugin.d.ts +4 -0
- package/dist/plugins/WarnCaseSensitiveModulesPlugin.js +37 -0
- package/dist/plugins/WarnDeprecatedOptionPlugin.d.ts +8 -0
- package/dist/plugins/WarnDeprecatedOptionPlugin.js +29 -0
- package/dist/plugins/cssMinimizer/CssMinimizerMinify.js +73 -0
- package/dist/plugins/cssMinimizer/CssMinimizerPlugin.d.ts +11 -0
- package/dist/plugins/cssMinimizer/CssMinimizerPlugin.js +329 -0
- package/dist/plugins/cssMinimizer/CssMinimizerUtils.js +147 -0
- package/dist/plugins/miniCssExtractPlugin/MiniCssExtractLoader.d.ts +1 -0
- package/dist/plugins/miniCssExtractPlugin/MiniCssExtractLoader.js +177 -0
- package/dist/plugins/miniCssExtractPlugin/MiniCssExtractPlugin.d.ts +22 -0
- package/dist/plugins/miniCssExtractPlugin/MiniCssExtractPlugin.js +780 -0
- package/dist/plugins/miniCssExtractPlugin/MiniCssUtils.d.ts +14 -0
- package/dist/plugins/miniCssExtractPlugin/MiniCssUtils.js +132 -0
- package/dist/plugins/optimize/AggressiveMergingPlugin.d.ts +6 -0
- package/dist/plugins/optimize/AggressiveMergingPlugin.js +62 -0
- package/dist/plugins/optimize/AggressiveSplittingPlugin.d.ts +7 -0
- package/dist/plugins/optimize/AggressiveSplittingPlugin.js +247 -0
- package/dist/plugins/optimize/ConcatenatedModule.d.ts +47 -0
- package/dist/plugins/optimize/ConcatenatedModule.js +1221 -0
- package/dist/plugins/optimize/EnsureChunkConditionsPlugin.d.ts +4 -0
- package/dist/plugins/optimize/EnsureChunkConditionsPlugin.js +61 -0
- package/dist/plugins/optimize/FlagAllModulesAsUsedPlugin.d.ts +6 -0
- package/dist/plugins/optimize/FlagAllModulesAsUsedPlugin.js +30 -0
- package/dist/plugins/optimize/FlagDependencyExportsPlugin.d.ts +4 -0
- package/dist/plugins/optimize/FlagDependencyExportsPlugin.js +275 -0
- package/dist/plugins/optimize/FlagDependencyUsagePlugin.d.ts +6 -0
- package/dist/plugins/optimize/FlagDependencyUsagePlugin.js +243 -0
- package/dist/plugins/optimize/FlagEntryExportAsUsedPlugin.d.ts +7 -0
- package/dist/plugins/optimize/FlagEntryExportAsUsedPlugin.js +34 -0
- package/dist/plugins/optimize/FlagIncludedChunksPlugin.d.ts +4 -0
- package/dist/plugins/optimize/FlagIncludedChunksPlugin.js +85 -0
- package/dist/plugins/optimize/InnerGraph.d.ts +20 -0
- package/dist/plugins/optimize/InnerGraph.js +234 -0
- package/dist/plugins/optimize/InnerGraphPlugin.d.ts +4 -0
- package/dist/plugins/optimize/InnerGraphPlugin.js +289 -0
- package/dist/plugins/optimize/LimitChunkCountPlugin.d.ts +6 -0
- package/dist/plugins/optimize/LimitChunkCountPlugin.js +200 -0
- package/dist/plugins/optimize/MangleExportsPlugin.d.ts +6 -0
- package/dist/plugins/optimize/MangleExportsPlugin.js +124 -0
- package/dist/plugins/optimize/MergeDuplicateChunksPlugin.d.ts +4 -0
- package/dist/plugins/optimize/MergeDuplicateChunksPlugin.js +84 -0
- package/dist/plugins/optimize/MinChunkSizePlugin.d.ts +6 -0
- package/dist/plugins/optimize/MinChunkSizePlugin.js +71 -0
- package/dist/plugins/optimize/ModuleConcatenationPlugin.d.ts +8 -0
- package/dist/plugins/optimize/ModuleConcatenationPlugin.js +525 -0
- package/dist/plugins/optimize/ModuleInfoHeaderPlugin.d.ts +6 -0
- package/dist/plugins/optimize/ModuleInfoHeaderPlugin.js +145 -0
- package/dist/plugins/optimize/NoEmitOnErrorsPlugin.d.ts +4 -0
- package/dist/plugins/optimize/NoEmitOnErrorsPlugin.js +17 -0
- package/dist/plugins/optimize/OptimizationStages.d.ts +4 -0
- package/dist/plugins/optimize/OptimizationStages.js +9 -0
- package/dist/plugins/optimize/RealContentHashPlugin.d.ts +11 -0
- package/dist/plugins/optimize/RealContentHashPlugin.js +295 -0
- package/dist/plugins/optimize/RemoveEmptyChunksPlugin.d.ts +4 -0
- package/dist/plugins/optimize/RemoveEmptyChunksPlugin.js +30 -0
- package/dist/plugins/optimize/RemoveParentModulesPlugin.d.ts +4 -0
- package/dist/plugins/optimize/RemoveParentModulesPlugin.js +103 -0
- package/dist/plugins/optimize/RuntimeChunkPlugin.d.ts +6 -0
- package/dist/plugins/optimize/RuntimeChunkPlugin.js +25 -0
- package/dist/plugins/optimize/SideEffectsFlagPlugin.d.ts +7 -0
- package/dist/plugins/optimize/SideEffectsFlagPlugin.js +211 -0
- package/dist/plugins/optimize/SplitChunksPlugin.d.ts +7 -0
- package/dist/plugins/optimize/SplitChunksPlugin.js +1113 -0
- package/dist/rules/BasicEffectRulePlugin.d.ts +7 -0
- package/dist/rules/BasicEffectRulePlugin.js +21 -0
- package/dist/rules/BasicMatcherRulePlugin.d.ts +8 -0
- package/dist/rules/BasicMatcherRulePlugin.js +25 -0
- package/dist/rules/ObjectMatcherRulePlugin.d.ts +7 -0
- package/dist/rules/ObjectMatcherRulePlugin.js +27 -0
- package/dist/rules/RuleSetCompiler.d.ts +20 -0
- package/dist/rules/RuleSetCompiler.js +242 -0
- package/dist/rules/UseEffectRulePlugin.d.ts +5 -0
- package/dist/rules/UseEffectRulePlugin.js +117 -0
- package/dist/serialization/Serialization.d.ts +11 -0
- package/dist/serialization/Serialization.js +95 -0
- package/dist/serialization/Serializer.d.ts +9 -0
- package/dist/serialization/Serializer.js +43 -0
- package/dist/serialization/SerializerMiddleware.d.ts +13 -0
- package/dist/serialization/SerializerMiddleware.js +86 -0
- package/dist/serialization/internalSerializables.d.ts +82 -0
- package/dist/serialization/internalSerializables.js +94 -0
- package/dist/serialization/makeSerializable.d.ts +2 -0
- package/dist/serialization/makeSerializable.js +25 -0
- package/dist/serialization/middlewares/BinaryMiddleware.d.ts +12 -0
- package/dist/serialization/middlewares/BinaryMiddleware.js +955 -0
- package/dist/serialization/middlewares/FileMiddleware.d.ts +9 -0
- package/dist/serialization/middlewares/FileMiddleware.js +546 -0
- package/dist/serialization/middlewares/ObjectMiddleware.d.ts +15 -0
- package/dist/serialization/middlewares/ObjectMiddleware.js +602 -0
- package/dist/serialization/middlewares/SingleItemMiddleware.d.ts +6 -0
- package/dist/serialization/middlewares/SingleItemMiddleware.js +15 -0
- package/dist/serialization/registerExternalSerializer.d.ts +1 -0
- package/dist/serialization/registerExternalSerializer.js +154 -0
- package/dist/serialization/serializers/ArraySerializer.d.ts +5 -0
- package/dist/serialization/serializers/ArraySerializer.js +18 -0
- package/dist/serialization/serializers/DateObjectSerializer.d.ts +5 -0
- package/dist/serialization/serializers/DateObjectSerializer.js +11 -0
- package/dist/serialization/serializers/ErrorObjectSerializer.d.ts +7 -0
- package/dist/serialization/serializers/ErrorObjectSerializer.js +20 -0
- package/dist/serialization/serializers/MapObjectSerializer.d.ts +5 -0
- package/dist/serialization/serializers/MapObjectSerializer.js +26 -0
- package/dist/serialization/serializers/NullPrototypeObjectSerializer.d.ts +5 -0
- package/dist/serialization/serializers/NullPrototypeObjectSerializer.js +28 -0
- package/dist/serialization/serializers/PlainObjectSerializer.d.ts +5 -0
- package/dist/serialization/serializers/PlainObjectSerializer.js +77 -0
- package/dist/serialization/serializers/RegExpObjectSerializer.d.ts +5 -0
- package/dist/serialization/serializers/RegExpObjectSerializer.js +12 -0
- package/dist/serialization/serializers/SetObjectSerializer.d.ts +5 -0
- package/dist/serialization/serializers/SetObjectSerializer.js +19 -0
- package/dist/sourcemap/EvalDevToolModulePlugin.d.ts +8 -0
- package/dist/sourcemap/EvalDevToolModulePlugin.js +97 -0
- package/dist/sourcemap/EvalSourceMapDevToolPlugin.d.ts +9 -0
- package/dist/sourcemap/EvalSourceMapDevToolPlugin.js +167 -0
- package/dist/sourcemap/SourceMapDevToolModuleOptionsPlugin.d.ts +6 -0
- package/dist/sourcemap/SourceMapDevToolModuleOptionsPlugin.js +29 -0
- package/dist/sourcemap/SourceMapDevToolPlugin.d.ts +11 -0
- package/dist/sourcemap/SourceMapDevToolPlugin.js +364 -0
- package/dist/template/ChunkTemplate.d.ts +6 -0
- package/dist/template/ChunkTemplate.js +69 -0
- package/dist/template/LibraryTemplatePlugin.d.ts +6 -0
- package/dist/template/LibraryTemplatePlugin.js +23 -0
- package/dist/template/MainTemplate.d.ts +10 -0
- package/dist/template/MainTemplate.js +177 -0
- package/dist/template/ModuleTemplate.d.ts +7 -0
- package/dist/template/ModuleTemplate.js +46 -0
- package/dist/template/RuntimeTemplate.d.ts +158 -0
- package/dist/template/RuntimeTemplate.js +663 -0
- package/dist/template/Template.d.ts +25 -0
- package/dist/template/Template.js +269 -0
- package/dist/template/TemplatedPathPlugin.d.ts +4 -0
- package/dist/template/TemplatedPathPlugin.js +228 -0
- package/dist/thread/WorkerError.d.ts +4 -0
- package/dist/thread/WorkerError.js +21 -0
- package/dist/thread/WorkerPool.d.ts +52 -0
- package/dist/thread/WorkerPool.js +370 -0
- package/dist/thread/readBuffer.d.ts +1 -0
- package/dist/thread/readBuffer.js +37 -0
- package/dist/thread/serializer.d.ts +2 -0
- package/dist/thread/serializer.js +24 -0
- package/dist/thread/worker.d.ts +1 -0
- package/dist/thread/worker.js +185 -0
- package/dist/thread/workerPools.d.ts +2 -0
- package/dist/thread/workerPools.js +31 -0
- package/dist/types/index.d.ts +58 -0
- package/dist/types/index.js +8 -0
- package/package.json +96 -0
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.applyWebpackOptionsDefaults = exports.applyWebpackOptionsBaseDefaults = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const ModuleTypeConstants_1 = require("@/module/ModuleTypeConstants");
|
|
10
|
+
const Template_1 = require("@/template/Template");
|
|
11
|
+
const cleverMerge_1 = require("@/base/cleverMerge");
|
|
12
|
+
// Lazy load the Terser plugin
|
|
13
|
+
const terser_webpack_plugin_1 = __importDefault(require("terser-webpack-plugin"));
|
|
14
|
+
const NODE_MODULES_REGEXP = /[\\/]node_modules[\\/]/i;
|
|
15
|
+
const D = (obj, prop, value) => {
|
|
16
|
+
if (obj[prop] === undefined) {
|
|
17
|
+
obj[prop] = value;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const F = (obj, prop, factory) => {
|
|
21
|
+
if (obj[prop] === undefined) {
|
|
22
|
+
obj[prop] = factory();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const A = (obj, prop, factory) => {
|
|
26
|
+
const value = obj[prop];
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
obj[prop] = factory();
|
|
29
|
+
}
|
|
30
|
+
else if (Array.isArray(value)) {
|
|
31
|
+
let newArray;
|
|
32
|
+
for (let i = 0; i < value.length; i++) {
|
|
33
|
+
const item = value[i];
|
|
34
|
+
if (item === '...') {
|
|
35
|
+
if (newArray === undefined) {
|
|
36
|
+
newArray = value.slice(0, i);
|
|
37
|
+
obj[prop] = newArray;
|
|
38
|
+
}
|
|
39
|
+
const items = factory();
|
|
40
|
+
if (items !== undefined) {
|
|
41
|
+
for (const item of items) {
|
|
42
|
+
newArray.push(item);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else if (newArray !== undefined) {
|
|
47
|
+
newArray.push(item);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const applyWebpackOptionsBaseDefaults = options => {
|
|
53
|
+
F(options, 'context', () => process.cwd());
|
|
54
|
+
applyInfrastructureLoggingDefaults(options.infrastructureLogging);
|
|
55
|
+
};
|
|
56
|
+
exports.applyWebpackOptionsBaseDefaults = applyWebpackOptionsBaseDefaults;
|
|
57
|
+
const applyWebpackOptionsDefaults = options => {
|
|
58
|
+
F(options, 'context', () => process.cwd());
|
|
59
|
+
F(options, 'target', () => ['web', 'es5']);
|
|
60
|
+
const { mode, name, target } = options;
|
|
61
|
+
const targetProperties = {
|
|
62
|
+
web: true,
|
|
63
|
+
browser: true,
|
|
64
|
+
document: true,
|
|
65
|
+
importScriptsInWorker: true,
|
|
66
|
+
};
|
|
67
|
+
const development = mode === 'development';
|
|
68
|
+
const production = mode === 'production' || !mode;
|
|
69
|
+
if (typeof options.entry !== 'function') {
|
|
70
|
+
for (const key of Object.keys(options.entry)) {
|
|
71
|
+
F(options.entry[key], 'import', () => ['./src']);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
F(options, 'devtool', () => (development ? 'eval' : false));
|
|
75
|
+
D(options, 'watch', false);
|
|
76
|
+
D(options, 'profile', false);
|
|
77
|
+
D(options, 'parallelism', 100);
|
|
78
|
+
D(options, 'recordsInputPath', false);
|
|
79
|
+
D(options, 'recordsOutputPath', false);
|
|
80
|
+
const futureDefaults = options.experiments.futureDefaults;
|
|
81
|
+
F(options, 'cache', () => (development ? { type: 'memory' } : false));
|
|
82
|
+
applyCacheDefaults(options.cache, {
|
|
83
|
+
name: name || 'default',
|
|
84
|
+
mode: mode || 'production',
|
|
85
|
+
development,
|
|
86
|
+
cacheUnaffected: options.experiments.cacheUnaffected,
|
|
87
|
+
});
|
|
88
|
+
const cache = !!options.cache;
|
|
89
|
+
applySnapshotDefaults(options.snapshot, {
|
|
90
|
+
production,
|
|
91
|
+
futureDefaults,
|
|
92
|
+
});
|
|
93
|
+
applyModuleDefaults(options.module, {
|
|
94
|
+
cache,
|
|
95
|
+
futureDefaults,
|
|
96
|
+
});
|
|
97
|
+
applyOutputDefaults(options.output, {
|
|
98
|
+
context: options.context,
|
|
99
|
+
isAffectedByBrowserslist: target === undefined ||
|
|
100
|
+
(typeof target === 'string' && target.startsWith('browserslist')) ||
|
|
101
|
+
(Array.isArray(target) && target.some(target => target.startsWith('browserslist'))),
|
|
102
|
+
outputModule: options.experiments.outputModule,
|
|
103
|
+
development,
|
|
104
|
+
entry: options.entry,
|
|
105
|
+
module: options.module,
|
|
106
|
+
futureDefaults,
|
|
107
|
+
});
|
|
108
|
+
applyExternalsPresetsDefaults(options.externalsPresets);
|
|
109
|
+
applyLoaderDefaults(options.loader, {
|
|
110
|
+
environment: options.output.environment,
|
|
111
|
+
});
|
|
112
|
+
F(options, 'externalsType', () => options.output.library && options.output.module ? 'module' : 'var');
|
|
113
|
+
applyOptimizationDefaults(options.optimization, {
|
|
114
|
+
development,
|
|
115
|
+
production,
|
|
116
|
+
css: options.experiments.css,
|
|
117
|
+
records: !!(options.recordsInputPath || options.recordsOutputPath),
|
|
118
|
+
});
|
|
119
|
+
options.resolve = (0, cleverMerge_1.cleverMerge)(getResolveDefaults({
|
|
120
|
+
cache,
|
|
121
|
+
context: options.context,
|
|
122
|
+
mode: options.mode,
|
|
123
|
+
css: options.experiments.css,
|
|
124
|
+
}), options.resolve);
|
|
125
|
+
options.resolveLoader = (0, cleverMerge_1.cleverMerge)(getResolveLoaderDefaults({ cache }), options.resolveLoader);
|
|
126
|
+
};
|
|
127
|
+
exports.applyWebpackOptionsDefaults = applyWebpackOptionsDefaults;
|
|
128
|
+
const applyCacheDefaults = (cache, { name, mode, development, cacheUnaffected }) => {
|
|
129
|
+
if (cache === false)
|
|
130
|
+
return;
|
|
131
|
+
switch (cache.type) {
|
|
132
|
+
case 'filesystem':
|
|
133
|
+
F(cache, 'name', () => `${name}-${mode}`);
|
|
134
|
+
D(cache, 'version', '');
|
|
135
|
+
F(cache, 'cacheDirectory', () => {
|
|
136
|
+
const cwd = process.cwd();
|
|
137
|
+
let dir = cwd;
|
|
138
|
+
for (;;) {
|
|
139
|
+
try {
|
|
140
|
+
if (fs_1.default.statSync(path_1.default.join(dir, 'package.json')).isFile())
|
|
141
|
+
break;
|
|
142
|
+
// eslint-disable-next-line no-empty
|
|
143
|
+
}
|
|
144
|
+
catch (e) { }
|
|
145
|
+
const parent = path_1.default.dirname(dir);
|
|
146
|
+
if (dir === parent) {
|
|
147
|
+
dir = undefined;
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
dir = parent;
|
|
151
|
+
}
|
|
152
|
+
if (!dir) {
|
|
153
|
+
return path_1.default.resolve(cwd, '.cache/webpack');
|
|
154
|
+
}
|
|
155
|
+
if (process.versions.pnp === '1') {
|
|
156
|
+
return path_1.default.resolve(dir, '.pnp/.cache/webpack');
|
|
157
|
+
}
|
|
158
|
+
if (process.versions.pnp === '3') {
|
|
159
|
+
return path_1.default.resolve(dir, '.yarn/.cache/webpack');
|
|
160
|
+
}
|
|
161
|
+
return path_1.default.resolve(dir, 'node_modules/.cache/webpack');
|
|
162
|
+
});
|
|
163
|
+
F(cache, 'cacheLocation', () => path_1.default.resolve(cache.cacheDirectory, cache.name));
|
|
164
|
+
D(cache, 'hashAlgorithm', 'md4');
|
|
165
|
+
D(cache, 'store', 'pack');
|
|
166
|
+
D(cache, 'compression', false);
|
|
167
|
+
D(cache, 'profile', false);
|
|
168
|
+
D(cache, 'idleTimeout', 60000);
|
|
169
|
+
D(cache, 'idleTimeoutForInitialStore', 5000);
|
|
170
|
+
D(cache, 'idleTimeoutAfterLargeChanges', 1000);
|
|
171
|
+
D(cache, 'maxMemoryGenerations', development ? 5 : Infinity);
|
|
172
|
+
D(cache, 'maxAge', 1000 * 60 * 60 * 24 * 60); // 1 month
|
|
173
|
+
D(cache, 'allowCollectingMemory', development);
|
|
174
|
+
D(cache, 'memoryCacheUnaffected', development && cacheUnaffected);
|
|
175
|
+
D(cache, 'readonly', false);
|
|
176
|
+
D(cache.buildDependencies, 'defaultWebpack', [path_1.default.resolve(__dirname, '..') + path_1.default.sep]);
|
|
177
|
+
break;
|
|
178
|
+
case 'memory':
|
|
179
|
+
D(cache, 'maxGenerations', Infinity);
|
|
180
|
+
D(cache, 'cacheUnaffected', development && cacheUnaffected);
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const applyJavascriptParserOptionsDefaults = (parserOptions, { futureDefaults, isNode }) => {
|
|
185
|
+
D(parserOptions, 'unknownContextRequest', '.');
|
|
186
|
+
D(parserOptions, 'unknownContextRegExp', false);
|
|
187
|
+
D(parserOptions, 'unknownContextRecursive', true);
|
|
188
|
+
D(parserOptions, 'unknownContextCritical', true);
|
|
189
|
+
D(parserOptions, 'exprContextRequest', '.');
|
|
190
|
+
D(parserOptions, 'exprContextRegExp', false);
|
|
191
|
+
D(parserOptions, 'exprContextRecursive', true);
|
|
192
|
+
D(parserOptions, 'exprContextCritical', true);
|
|
193
|
+
D(parserOptions, 'wrappedContextRegExp', /.*/);
|
|
194
|
+
D(parserOptions, 'wrappedContextRecursive', true);
|
|
195
|
+
D(parserOptions, 'wrappedContextCritical', false);
|
|
196
|
+
D(parserOptions, 'strictThisContextOnImports', false);
|
|
197
|
+
D(parserOptions, 'importMeta', true);
|
|
198
|
+
D(parserOptions, 'dynamicImportMode', 'lazy');
|
|
199
|
+
D(parserOptions, 'dynamicImportPrefetch', false);
|
|
200
|
+
D(parserOptions, 'dynamicImportPreload', false);
|
|
201
|
+
D(parserOptions, 'dynamicImportFetchPriority', false);
|
|
202
|
+
D(parserOptions, 'createRequire', isNode);
|
|
203
|
+
if (futureDefaults)
|
|
204
|
+
D(parserOptions, 'exportsPresence', 'error');
|
|
205
|
+
};
|
|
206
|
+
const applyModuleDefaults = (module, { cache, futureDefaults }) => {
|
|
207
|
+
if (cache) {
|
|
208
|
+
D(module, 'unsafeCache', module => {
|
|
209
|
+
const name = module.nameForCondition();
|
|
210
|
+
return name && NODE_MODULES_REGEXP.test(name);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
D(module, 'unsafeCache', false);
|
|
215
|
+
}
|
|
216
|
+
F(module.parser, ModuleTypeConstants_1.ASSET_MODULE_TYPE, () => ({}));
|
|
217
|
+
F(module.parser.asset, 'dataUrlCondition', () => ({}));
|
|
218
|
+
if (typeof module.parser.asset.dataUrlCondition === 'object') {
|
|
219
|
+
D(module.parser.asset.dataUrlCondition, 'maxSize', 8096);
|
|
220
|
+
}
|
|
221
|
+
F(module.parser, 'javascript', () => ({}));
|
|
222
|
+
applyJavascriptParserOptionsDefaults(module.parser.javascript, {
|
|
223
|
+
futureDefaults,
|
|
224
|
+
isNode: false,
|
|
225
|
+
});
|
|
226
|
+
A(module, 'defaultRules', () => {
|
|
227
|
+
const esm = {
|
|
228
|
+
type: ModuleTypeConstants_1.JAVASCRIPT_MODULE_TYPE_ESM,
|
|
229
|
+
resolve: {
|
|
230
|
+
byDependency: {
|
|
231
|
+
esm: {
|
|
232
|
+
fullySpecified: true,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
const commonjs = {
|
|
238
|
+
type: ModuleTypeConstants_1.JAVASCRIPT_MODULE_TYPE_DYNAMIC,
|
|
239
|
+
};
|
|
240
|
+
const rules = [
|
|
241
|
+
{
|
|
242
|
+
mimetype: 'application/node',
|
|
243
|
+
type: ModuleTypeConstants_1.JAVASCRIPT_MODULE_TYPE_AUTO,
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
test: /\.json$/i,
|
|
247
|
+
type: ModuleTypeConstants_1.JSON_MODULE_TYPE,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
mimetype: 'application/json',
|
|
251
|
+
type: ModuleTypeConstants_1.JSON_MODULE_TYPE,
|
|
252
|
+
},
|
|
253
|
+
Object.assign({ test: /\.mjs$/i }, esm),
|
|
254
|
+
Object.assign({ test: /\.js$/i, descriptionData: {
|
|
255
|
+
type: 'module',
|
|
256
|
+
} }, esm),
|
|
257
|
+
Object.assign({ test: /\.cjs$/i }, commonjs),
|
|
258
|
+
Object.assign({ test: /\.js$/i, descriptionData: {
|
|
259
|
+
type: 'commonjs',
|
|
260
|
+
} }, commonjs),
|
|
261
|
+
Object.assign({ mimetype: {
|
|
262
|
+
or: ['text/javascript', 'application/javascript'],
|
|
263
|
+
} }, esm),
|
|
264
|
+
];
|
|
265
|
+
rules.push({
|
|
266
|
+
dependency: 'url',
|
|
267
|
+
oneOf: [
|
|
268
|
+
{
|
|
269
|
+
scheme: /^data$/,
|
|
270
|
+
type: 'asset/inline',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
type: 'asset/resource',
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
}, {
|
|
277
|
+
assert: { type: 'json' },
|
|
278
|
+
type: ModuleTypeConstants_1.JSON_MODULE_TYPE,
|
|
279
|
+
});
|
|
280
|
+
return rules;
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
// {
|
|
284
|
+
// timestamp: true
|
|
285
|
+
// }
|
|
286
|
+
const applySnapshotDefaults = (snapshot, { production, futureDefaults }) => {
|
|
287
|
+
if (futureDefaults) {
|
|
288
|
+
F(snapshot, 'managedPaths', () => process.versions.pnp === '3'
|
|
289
|
+
? [/^(.+?(?:[\\/]\.yarn[\\/]unplugged[\\/][^\\/]+)?[\\/]node_modules[\\/])/]
|
|
290
|
+
: [/^(.+?[\\/]node_modules[\\/])/]);
|
|
291
|
+
F(snapshot, 'immutablePaths', () => process.versions.pnp === '3'
|
|
292
|
+
? [/^(.+?[\\/]cache[\\/][^\\/]+\.zip[\\/]node_modules[\\/])/]
|
|
293
|
+
: []);
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
A(snapshot, 'managedPaths', () => {
|
|
297
|
+
if (process.versions.pnp === '3') {
|
|
298
|
+
const match = /^(.+?)[\\/]cache[\\/]watchpack-npm-[^\\/]+\.zip[\\/]node_modules[\\/]/.exec(require.resolve('watchpack'));
|
|
299
|
+
if (match) {
|
|
300
|
+
return [path_1.default.resolve(match[1], 'unplugged')];
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
const match = /^(.+?[\\/]node_modules[\\/])/.exec(require.resolve('watchpack'));
|
|
305
|
+
if (match) {
|
|
306
|
+
return [match[1]];
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return [];
|
|
310
|
+
});
|
|
311
|
+
A(snapshot, 'immutablePaths', () => {
|
|
312
|
+
if (process.versions.pnp === '1') {
|
|
313
|
+
const match = /^(.+?[\\/]v4)[\\/]npm-watchpack-[^\\/]+-[\da-f]{40}[\\/]node_modules[\\/]/.exec(require.resolve('watchpack'));
|
|
314
|
+
if (match) {
|
|
315
|
+
return [match[1]];
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
else if (process.versions.pnp === '3') {
|
|
319
|
+
const match = /^(.+?)[\\/]watchpack-npm-[^\\/]+\.zip[\\/]node_modules[\\/]/.exec(require.resolve('watchpack'));
|
|
320
|
+
if (match) {
|
|
321
|
+
return [match[1]];
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
return [];
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
F(snapshot, 'resolveBuildDependencies', () => ({
|
|
328
|
+
timestamp: true,
|
|
329
|
+
hash: true,
|
|
330
|
+
}));
|
|
331
|
+
F(snapshot, 'buildDependencies', () => ({ timestamp: true, hash: true }));
|
|
332
|
+
F(snapshot, 'module', () => (production ? { timestamp: true, hash: true } : { timestamp: true }));
|
|
333
|
+
F(snapshot, 'resolve', () => (production ? { timestamp: true, hash: true } : { timestamp: true }));
|
|
334
|
+
};
|
|
335
|
+
const applyOutputDefaults = (output, { context, outputModule, development, entry, module, futureDefaults, isAffectedByBrowserslist }) => {
|
|
336
|
+
const getLibraryName = (library) => {
|
|
337
|
+
const libraryName = typeof library === 'object' && library && !Array.isArray(library) && 'type' in library
|
|
338
|
+
? library.name
|
|
339
|
+
: library;
|
|
340
|
+
if (Array.isArray(libraryName)) {
|
|
341
|
+
return libraryName.join('.');
|
|
342
|
+
}
|
|
343
|
+
if (typeof libraryName === 'object') {
|
|
344
|
+
return getLibraryName(libraryName.root);
|
|
345
|
+
}
|
|
346
|
+
if (typeof libraryName === 'string') {
|
|
347
|
+
return libraryName;
|
|
348
|
+
}
|
|
349
|
+
return '';
|
|
350
|
+
};
|
|
351
|
+
F(output, 'uniqueName', () => {
|
|
352
|
+
const libraryName = getLibraryName(output.library).replace(/^\[(\\*[\w:]+\\*)\](\.)|(\.)\[(\\*[\w:]+\\*)\](?=\.|$)|\[(\\*[\w:]+\\*)\]/g, (m, a, d1, d2, b, c) => {
|
|
353
|
+
const content = a || b || c;
|
|
354
|
+
return content.startsWith('\\') && content.endsWith('\\')
|
|
355
|
+
? `${d2 || ''}[${content.slice(1, -1)}]${d1 || ''}`
|
|
356
|
+
: '';
|
|
357
|
+
});
|
|
358
|
+
if (libraryName)
|
|
359
|
+
return libraryName;
|
|
360
|
+
const pkgPath = path_1.default.resolve(context, 'package.json');
|
|
361
|
+
try {
|
|
362
|
+
const packageInfo = JSON.parse(fs_1.default.readFileSync(pkgPath, 'utf-8'));
|
|
363
|
+
return packageInfo.name || '';
|
|
364
|
+
}
|
|
365
|
+
catch (e) {
|
|
366
|
+
if (e.code !== 'ENOENT') {
|
|
367
|
+
e.message += `\nwhile determining default 'output.uniqueName' from 'name' in ${pkgPath}`;
|
|
368
|
+
throw e;
|
|
369
|
+
}
|
|
370
|
+
return '';
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
F(output, 'module', () => !!outputModule);
|
|
374
|
+
D(output, 'filename', output.module ? '[name].mjs' : '[name].js');
|
|
375
|
+
F(output, 'iife', () => !output.module);
|
|
376
|
+
D(output, 'importFunctionName', 'import');
|
|
377
|
+
D(output, 'importMetaName', 'import.meta');
|
|
378
|
+
F(output, 'chunkFilename', () => {
|
|
379
|
+
const filename = output.filename;
|
|
380
|
+
if (typeof filename !== 'function') {
|
|
381
|
+
const hasName = filename.includes('[name]');
|
|
382
|
+
const hasId = filename.includes('[id]');
|
|
383
|
+
const hasChunkHash = filename.includes('[chunkhash]');
|
|
384
|
+
const hasContentHash = filename.includes('[contenthash]');
|
|
385
|
+
// Anything changing depending on chunk is fine
|
|
386
|
+
if (hasChunkHash || hasContentHash || hasName || hasId)
|
|
387
|
+
return filename;
|
|
388
|
+
// Otherwise prefix "[id]." in front of the basename to make it changing
|
|
389
|
+
return filename.replace(/(^|\/)([^/]*(?:\?|$))/, '$1[id].$2');
|
|
390
|
+
}
|
|
391
|
+
return output.module ? '[id].mjs' : '[id].js';
|
|
392
|
+
});
|
|
393
|
+
F(output, 'cssFilename', () => {
|
|
394
|
+
const filename = output.filename;
|
|
395
|
+
if (typeof filename !== 'function') {
|
|
396
|
+
return filename.replace(/\.[mc]?js(\?|$)/, '.css$1');
|
|
397
|
+
}
|
|
398
|
+
return '[id].css';
|
|
399
|
+
});
|
|
400
|
+
F(output, 'cssChunkFilename', () => {
|
|
401
|
+
const chunkFilename = output.chunkFilename;
|
|
402
|
+
if (typeof chunkFilename !== 'function') {
|
|
403
|
+
return chunkFilename.replace(/\.[mc]?js(\?|$)/, '.css$1');
|
|
404
|
+
}
|
|
405
|
+
return '[id].css';
|
|
406
|
+
});
|
|
407
|
+
D(output, 'assetModuleFilename', '[hash][ext][query]');
|
|
408
|
+
D(output, 'webassemblyModuleFilename', '[hash].module.wasm');
|
|
409
|
+
D(output, 'compareBeforeEmit', true);
|
|
410
|
+
D(output, 'charset', true);
|
|
411
|
+
F(output, 'hotUpdateGlobal', () => Template_1.Template.toIdentifier(`webpackHotUpdate${Template_1.Template.toIdentifier(output.uniqueName)}`));
|
|
412
|
+
F(output, 'chunkLoadingGlobal', () => Template_1.Template.toIdentifier(`webpackChunk${Template_1.Template.toIdentifier(output.uniqueName)}`));
|
|
413
|
+
F(output, 'globalObject', () => 'self');
|
|
414
|
+
F(output, 'chunkFormat', () => 'array-push');
|
|
415
|
+
D(output, 'asyncChunks', true);
|
|
416
|
+
F(output, 'chunkLoading', () => 'jsonp');
|
|
417
|
+
F(output, 'devtoolNamespace', () => output.uniqueName);
|
|
418
|
+
if (output.library) {
|
|
419
|
+
F(output.library, 'type', () => (output.module ? 'module' : 'var'));
|
|
420
|
+
}
|
|
421
|
+
F(output, 'path', () => path_1.default.join(process.cwd(), 'dist'));
|
|
422
|
+
F(output, 'pathinfo', () => development);
|
|
423
|
+
D(output, 'sourceMapFilename', '[file].map[query]');
|
|
424
|
+
D(output, 'hotUpdateChunkFilename', `[id].[fullhash].hot-update.${output.module ? 'mjs' : 'js'}`);
|
|
425
|
+
D(output, 'hotUpdateMainFilename', '[runtime].[fullhash].hot-update.json');
|
|
426
|
+
D(output, 'crossOriginLoading', false);
|
|
427
|
+
F(output, 'scriptType', () => (output.module ? 'module' : false));
|
|
428
|
+
D(output, 'chunkLoadTimeout', 120000);
|
|
429
|
+
D(output, 'hashFunction', futureDefaults ? 'xxhash64' : 'md4');
|
|
430
|
+
D(output, 'hashDigest', 'hex');
|
|
431
|
+
D(output, 'hashDigestLength', futureDefaults ? 16 : 20);
|
|
432
|
+
D(output, 'strictModuleExceptionHandling', false);
|
|
433
|
+
// const environment = output.environment
|
|
434
|
+
// const optimistic = v => v || v === undefined
|
|
435
|
+
// const conditionallyOptimistic = (v, c) => (v === undefined && c) || v
|
|
436
|
+
// F(environment, 'bigIntLiteral', () => false)
|
|
437
|
+
// F(environment, 'const', () => tp && optimistic(tp.const))
|
|
438
|
+
// F(environment, 'arrowFunction', () => tp && optimistic(tp.arrowFunction))
|
|
439
|
+
// F(environment, 'forOf', () => tp && optimistic(tp.forOf))
|
|
440
|
+
// F(environment, 'destructuring', () => tp && optimistic(tp.destructuring))
|
|
441
|
+
// F(environment, 'optionalChaining', () => tp && optimistic(tp.optionalChaining))
|
|
442
|
+
// F(environment, 'templateLiteral', () => tp && optimistic(tp.templateLiteral))
|
|
443
|
+
// F(environment, 'dynamicImport', () =>
|
|
444
|
+
// conditionallyOptimistic(tp && tp.dynamicImport, output.module),
|
|
445
|
+
// )
|
|
446
|
+
// F(environment, 'dynamicImportInWorker', () =>
|
|
447
|
+
// conditionallyOptimistic(tp && tp.dynamicImportInWorker, output.module),
|
|
448
|
+
// )
|
|
449
|
+
// F(environment, 'module', () => conditionallyOptimistic(tp && tp.module, output.module))
|
|
450
|
+
const { trustedTypes } = output;
|
|
451
|
+
if (trustedTypes) {
|
|
452
|
+
F(trustedTypes, 'policyName', () => output.uniqueName.replace(/[^a-zA-Z0-9\-#=_/@.%]+/g, '_') || 'webpack');
|
|
453
|
+
D(trustedTypes, 'onPolicyCreationFailure', 'stop');
|
|
454
|
+
}
|
|
455
|
+
const forEachEntry = fn => {
|
|
456
|
+
for (const name of Object.keys(entry)) {
|
|
457
|
+
fn(entry[name]);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
A(output, 'enabledLibraryTypes', () => {
|
|
461
|
+
const enabledLibraryTypes = [];
|
|
462
|
+
if (output.library) {
|
|
463
|
+
enabledLibraryTypes.push(output.library.type);
|
|
464
|
+
}
|
|
465
|
+
forEachEntry(desc => {
|
|
466
|
+
if (desc.library) {
|
|
467
|
+
enabledLibraryTypes.push(desc.library.type);
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
return enabledLibraryTypes;
|
|
471
|
+
});
|
|
472
|
+
A(output, 'enabledChunkLoadingTypes', () => {
|
|
473
|
+
const enabledChunkLoadingTypes = new Set();
|
|
474
|
+
if (output.chunkLoading) {
|
|
475
|
+
enabledChunkLoadingTypes.add(output.chunkLoading);
|
|
476
|
+
}
|
|
477
|
+
if (output.workerChunkLoading) {
|
|
478
|
+
enabledChunkLoadingTypes.add(output.workerChunkLoading);
|
|
479
|
+
}
|
|
480
|
+
forEachEntry(desc => {
|
|
481
|
+
if (desc.chunkLoading) {
|
|
482
|
+
enabledChunkLoadingTypes.add(desc.chunkLoading);
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
return Array.from(enabledChunkLoadingTypes);
|
|
486
|
+
});
|
|
487
|
+
A(output, 'enabledWasmLoadingTypes', () => {
|
|
488
|
+
const enabledWasmLoadingTypes = new Set();
|
|
489
|
+
if (output.wasmLoading) {
|
|
490
|
+
enabledWasmLoadingTypes.add(output.wasmLoading);
|
|
491
|
+
}
|
|
492
|
+
if (output.workerWasmLoading) {
|
|
493
|
+
enabledWasmLoadingTypes.add(output.workerWasmLoading);
|
|
494
|
+
}
|
|
495
|
+
forEachEntry(desc => {
|
|
496
|
+
if (desc.wasmLoading) {
|
|
497
|
+
enabledWasmLoadingTypes.add(desc.wasmLoading);
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
return Array.from(enabledWasmLoadingTypes);
|
|
501
|
+
});
|
|
502
|
+
};
|
|
503
|
+
const applyExternalsPresetsDefaults = externalsPresets => {
|
|
504
|
+
D(externalsPresets, 'web', true);
|
|
505
|
+
};
|
|
506
|
+
const applyLoaderDefaults = (loader, { environment }) => {
|
|
507
|
+
F(loader, 'target', () => 'web');
|
|
508
|
+
D(loader, 'environment', environment);
|
|
509
|
+
};
|
|
510
|
+
const applyOptimizationDefaults = (optimization, { production, development, css, records }) => {
|
|
511
|
+
D(optimization, 'removeAvailableModules', false);
|
|
512
|
+
D(optimization, 'removeEmptyChunks', true);
|
|
513
|
+
D(optimization, 'mergeDuplicateChunks', true);
|
|
514
|
+
D(optimization, 'flagIncludedChunks', production);
|
|
515
|
+
F(optimization, 'moduleIds', () => {
|
|
516
|
+
if (production)
|
|
517
|
+
return 'deterministic';
|
|
518
|
+
if (development)
|
|
519
|
+
return 'named';
|
|
520
|
+
return 'natural';
|
|
521
|
+
});
|
|
522
|
+
F(optimization, 'chunkIds', () => {
|
|
523
|
+
if (production)
|
|
524
|
+
return 'deterministic';
|
|
525
|
+
if (development)
|
|
526
|
+
return 'named';
|
|
527
|
+
return 'natural';
|
|
528
|
+
});
|
|
529
|
+
F(optimization, 'sideEffects', () => (production ? true : 'flag'));
|
|
530
|
+
D(optimization, 'providedExports', true);
|
|
531
|
+
D(optimization, 'usedExports', production);
|
|
532
|
+
D(optimization, 'innerGraph', production);
|
|
533
|
+
D(optimization, 'mangleExports', production);
|
|
534
|
+
D(optimization, 'concatenateModules', production);
|
|
535
|
+
D(optimization, 'runtimeChunk', false);
|
|
536
|
+
D(optimization, 'emitOnErrors', !production);
|
|
537
|
+
D(optimization, 'checkWasmTypes', production);
|
|
538
|
+
D(optimization, 'mangleWasmImports', false);
|
|
539
|
+
D(optimization, 'portableRecords', records);
|
|
540
|
+
D(optimization, 'realContentHash', production);
|
|
541
|
+
D(optimization, 'minimize', production);
|
|
542
|
+
A(optimization, 'minimizer', () => [
|
|
543
|
+
{
|
|
544
|
+
apply: compiler => {
|
|
545
|
+
new terser_webpack_plugin_1.default({
|
|
546
|
+
terserOptions: {
|
|
547
|
+
compress: {
|
|
548
|
+
passes: 2,
|
|
549
|
+
},
|
|
550
|
+
},
|
|
551
|
+
}).apply(compiler);
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
]);
|
|
555
|
+
F(optimization, 'nodeEnv', () => {
|
|
556
|
+
if (production)
|
|
557
|
+
return 'production';
|
|
558
|
+
if (development)
|
|
559
|
+
return 'development';
|
|
560
|
+
return false;
|
|
561
|
+
});
|
|
562
|
+
const { splitChunks } = optimization;
|
|
563
|
+
if (splitChunks) {
|
|
564
|
+
A(splitChunks, 'defaultSizeTypes', () => css ? ['javascript', 'css', 'unknown'] : ['javascript', 'unknown']);
|
|
565
|
+
D(splitChunks, 'hidePathInfo', production);
|
|
566
|
+
D(splitChunks, 'chunks', 'async');
|
|
567
|
+
D(splitChunks, 'usedExports', optimization.usedExports === true);
|
|
568
|
+
D(splitChunks, 'minChunks', 1);
|
|
569
|
+
F(splitChunks, 'minSize', () => (production ? 20000 : 10000));
|
|
570
|
+
F(splitChunks, 'minRemainingSize', () => (development ? 0 : undefined));
|
|
571
|
+
F(splitChunks, 'enforceSizeThreshold', () => (production ? 50000 : 30000));
|
|
572
|
+
F(splitChunks, 'maxAsyncRequests', () => (production ? 30 : Infinity));
|
|
573
|
+
F(splitChunks, 'maxInitialRequests', () => (production ? 30 : Infinity));
|
|
574
|
+
D(splitChunks, 'automaticNameDelimiter', '-');
|
|
575
|
+
const cacheGroups = splitChunks.cacheGroups;
|
|
576
|
+
F(cacheGroups, 'default', () => ({
|
|
577
|
+
idHint: '',
|
|
578
|
+
reuseExistingChunk: true,
|
|
579
|
+
minChunks: 2,
|
|
580
|
+
priority: -20,
|
|
581
|
+
}));
|
|
582
|
+
F(cacheGroups, 'defaultVendors', () => ({
|
|
583
|
+
idHint: 'vendors',
|
|
584
|
+
reuseExistingChunk: true,
|
|
585
|
+
test: NODE_MODULES_REGEXP,
|
|
586
|
+
priority: -10,
|
|
587
|
+
}));
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
const getResolveDefaults = ({ cache, context, mode, css }) => {
|
|
591
|
+
const conditions = ['webpack'];
|
|
592
|
+
conditions.push(mode === 'development' ? 'development' : 'production');
|
|
593
|
+
conditions.push('browser');
|
|
594
|
+
const jsExtensions = ['.js', '.json', '.wasm'];
|
|
595
|
+
const browserField = true;
|
|
596
|
+
const cjsDeps = () => ({
|
|
597
|
+
aliasFields: browserField ? ['browser'] : [],
|
|
598
|
+
mainFields: browserField ? ['browser', 'module', '...'] : ['module', '...'],
|
|
599
|
+
conditionNames: ['require', 'module', '...'],
|
|
600
|
+
extensions: [...jsExtensions],
|
|
601
|
+
});
|
|
602
|
+
const esmDeps = () => ({
|
|
603
|
+
aliasFields: browserField ? ['browser'] : [],
|
|
604
|
+
mainFields: browserField ? ['browser', 'module', '...'] : ['module', '...'],
|
|
605
|
+
conditionNames: ['import', 'module', '...'],
|
|
606
|
+
extensions: [...jsExtensions],
|
|
607
|
+
});
|
|
608
|
+
const resolveOptions = {
|
|
609
|
+
cache,
|
|
610
|
+
modules: ['node_modules'],
|
|
611
|
+
conditionNames: conditions,
|
|
612
|
+
mainFiles: ['index'],
|
|
613
|
+
extensions: [],
|
|
614
|
+
aliasFields: [],
|
|
615
|
+
exportsFields: ['exports'],
|
|
616
|
+
roots: [context],
|
|
617
|
+
mainFields: ['main'],
|
|
618
|
+
byDependency: {
|
|
619
|
+
wasm: esmDeps(),
|
|
620
|
+
esm: esmDeps(),
|
|
621
|
+
loaderImport: esmDeps(),
|
|
622
|
+
url: {
|
|
623
|
+
preferRelative: true,
|
|
624
|
+
},
|
|
625
|
+
worker: Object.assign(Object.assign({}, esmDeps()), { preferRelative: true }),
|
|
626
|
+
commonjs: cjsDeps(),
|
|
627
|
+
amd: cjsDeps(),
|
|
628
|
+
// for backward-compat: loadModule
|
|
629
|
+
loader: cjsDeps(),
|
|
630
|
+
// for backward-compat: Custom Dependency
|
|
631
|
+
unknown: cjsDeps(),
|
|
632
|
+
// for backward-compat: getResolve without dependencyType
|
|
633
|
+
undefined: cjsDeps(),
|
|
634
|
+
},
|
|
635
|
+
};
|
|
636
|
+
if (css) {
|
|
637
|
+
const styleConditions = [];
|
|
638
|
+
styleConditions.push('webpack');
|
|
639
|
+
styleConditions.push(mode === 'development' ? 'development' : 'production');
|
|
640
|
+
styleConditions.push('style');
|
|
641
|
+
resolveOptions.byDependency['css-import'] = {
|
|
642
|
+
// We avoid using any main files because we have to be consistent with CSS `@import`
|
|
643
|
+
// and CSS `@import` does not handle `main` files in directories,
|
|
644
|
+
// you should always specify the full URL for styles
|
|
645
|
+
mainFiles: [],
|
|
646
|
+
mainFields: ['style', '...'],
|
|
647
|
+
conditionNames: styleConditions,
|
|
648
|
+
extensions: ['.css'],
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
return resolveOptions;
|
|
652
|
+
};
|
|
653
|
+
const getResolveLoaderDefaults = ({ cache }) => {
|
|
654
|
+
const resolveOptions = {
|
|
655
|
+
cache,
|
|
656
|
+
conditionNames: ['loader', 'require', 'node'],
|
|
657
|
+
exportsFields: ['exports'],
|
|
658
|
+
mainFields: ['loader', 'main'],
|
|
659
|
+
extensions: ['.js'],
|
|
660
|
+
mainFiles: ['index'],
|
|
661
|
+
};
|
|
662
|
+
return resolveOptions;
|
|
663
|
+
};
|
|
664
|
+
const applyInfrastructureLoggingDefaults = infrastructureLogging => {
|
|
665
|
+
F(infrastructureLogging, 'stream', () => process.stderr);
|
|
666
|
+
const tty = infrastructureLogging.stream.isTTY && process.env.TERM !== 'dumb';
|
|
667
|
+
D(infrastructureLogging, 'level', 'info');
|
|
668
|
+
D(infrastructureLogging, 'debug', false);
|
|
669
|
+
D(infrastructureLogging, 'colors', tty);
|
|
670
|
+
D(infrastructureLogging, 'appendOnly', !tty);
|
|
671
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const arrayToSetDeprecation: (set: any, name: any) => void;
|
|
2
|
+
declare const createArrayToSetDeprecationSet: (name: any) => {
|
|
3
|
+
new (items?: any): {
|
|
4
|
+
add(value: any): any;
|
|
5
|
+
clear(): void;
|
|
6
|
+
delete(value: any): boolean;
|
|
7
|
+
forEach(callbackfn: (value: any, value2: any, set: Set<any>) => void, thisArg?: any): void;
|
|
8
|
+
has(value: any): boolean;
|
|
9
|
+
readonly size: number;
|
|
10
|
+
entries(): IterableIterator<[any, any]>;
|
|
11
|
+
keys(): IterableIterator<any>;
|
|
12
|
+
values(): IterableIterator<any>;
|
|
13
|
+
[Symbol.iterator](): IterableIterator<any>;
|
|
14
|
+
readonly [Symbol.toStringTag]: string;
|
|
15
|
+
};
|
|
16
|
+
readonly [Symbol.species]: SetConstructor;
|
|
17
|
+
};
|
|
18
|
+
declare const soonFrozenObjectDeprecation: (obj: Object, name: string, code: string, note?: string) => Object;
|
|
19
|
+
declare const deprecateAllProperties: (obj: any, message: string, code: string) => {};
|
|
20
|
+
declare const createFakeHook: (fakeHook: any, message?: string, code?: string) => any;
|
|
21
|
+
export { arrayToSetDeprecation, createArrayToSetDeprecationSet, soonFrozenObjectDeprecation, deprecateAllProperties, createFakeHook, };
|