@rspack/core 0.5.5 → 0.5.6
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/dist/Chunk.d.ts +0 -1
- package/dist/Chunk.js +0 -1
- package/dist/ChunkGraph.d.ts +0 -1
- package/dist/ChunkGraph.js +0 -1
- package/dist/ChunkGroup.d.ts +0 -1
- package/dist/ChunkGroup.js +0 -1
- package/dist/Compilation.d.ts +1 -1
- package/dist/Compilation.js +3 -1
- package/dist/Compiler.d.ts +3 -3
- package/dist/Compiler.js +49 -44
- package/dist/ContextModuleFactory.d.ts +1 -1
- package/dist/ContextModuleFactory.js +2 -4
- package/dist/ErrorHelpers.d.ts +0 -1
- package/dist/ErrorHelpers.js +0 -1
- package/dist/ExecuteModulePlugin.d.ts +0 -1
- package/dist/ExecuteModulePlugin.js +0 -1
- package/dist/FileSystemInfo.d.ts +0 -1
- package/dist/FileSystemInfo.js +0 -1
- package/dist/Module.d.ts +0 -1
- package/dist/Module.js +0 -1
- package/dist/ModuleFilenameHelpers.d.ts +0 -1
- package/dist/ModuleFilenameHelpers.js +0 -1
- package/dist/ModuleTypeConstants.d.ts +0 -1
- package/dist/ModuleTypeConstants.js +0 -1
- package/dist/MultiCompiler.d.ts +0 -1
- package/dist/MultiCompiler.js +0 -1
- package/dist/MultiStats.d.ts +0 -1
- package/dist/MultiStats.js +0 -1
- package/dist/MultiWatching.d.ts +0 -1
- package/dist/MultiWatching.js +0 -1
- package/dist/NormalModule.d.ts +0 -1
- package/dist/NormalModule.js +0 -1
- package/dist/NormalModuleFactory.d.ts +0 -1
- package/dist/NormalModuleFactory.js +0 -1
- package/dist/ResolverFactory.d.ts +0 -1
- package/dist/ResolverFactory.js +0 -1
- package/dist/RuleSetCompiler.d.ts +0 -1
- package/dist/RuleSetCompiler.js +0 -1
- package/dist/RuntimeGlobals.d.ts +0 -1
- package/dist/RuntimeGlobals.js +0 -1
- package/dist/Stats.d.ts +0 -1
- package/dist/Stats.js +0 -1
- package/dist/Template.d.ts +0 -1
- package/dist/Template.js +0 -1
- package/dist/Watching.d.ts +0 -1
- package/dist/Watching.js +0 -1
- package/dist/builtin-loader/index.d.ts +0 -1
- package/dist/builtin-loader/index.js +0 -1
- package/dist/builtin-loader/swc/emotion.d.ts +0 -1
- package/dist/builtin-loader/swc/emotion.js +0 -1
- package/dist/builtin-loader/swc/index.d.ts +0 -1
- package/dist/builtin-loader/swc/index.js +0 -1
- package/dist/builtin-loader/swc/pluginImport.d.ts +0 -1
- package/dist/builtin-loader/swc/pluginImport.js +0 -1
- package/dist/builtin-loader/swc/react.d.ts +0 -1
- package/dist/builtin-loader/swc/react.js +0 -1
- package/dist/builtin-loader/swc/relay.d.ts +0 -1
- package/dist/builtin-loader/swc/relay.js +0 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +0 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.js +0 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +0 -1
- package/dist/builtin-plugin/AssetModulesPlugin.js +0 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +0 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.js +0 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +0 -1
- package/dist/builtin-plugin/BannerPlugin.js +0 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +0 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.js +0 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +0 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.js +0 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +0 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.js +0 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +0 -1
- package/dist/builtin-plugin/CopyRspackPlugin.js +0 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +0 -1
- package/dist/builtin-plugin/DataUriPlugin.js +0 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +0 -1
- package/dist/builtin-plugin/DefinePlugin.js +0 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +0 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.js +0 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +0 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.js +0 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +0 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.js +0 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +0 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.js +0 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +0 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.js +0 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +0 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.js +0 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +0 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.js +0 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +0 -1
- package/dist/builtin-plugin/EntryPlugin.js +0 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +0 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.js +0 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +0 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.js +0 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +0 -1
- package/dist/builtin-plugin/ExternalsPlugin.js +0 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +0 -1
- package/dist/builtin-plugin/FileUriPlugin.js +0 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +0 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.js +0 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +0 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.js +0 -1
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +0 -1
- package/dist/builtin-plugin/HotModuleReplacementPlugin.js +0 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +0 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.js +0 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +0 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.js +0 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +0 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.js +0 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +0 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.js +0 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +0 -1
- package/dist/builtin-plugin/JsonModulesPlugin.js +0 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +0 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.js +0 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +0 -1
- package/dist/builtin-plugin/MangleExportsPlugin.js +0 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +0 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.js +0 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +0 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.js +0 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +0 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.js +0 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +0 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.js +0 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +0 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.js +0 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +0 -1
- package/dist/builtin-plugin/NodeTargetPlugin.js +0 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +0 -1
- package/dist/builtin-plugin/ProgressPlugin.js +0 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +0 -1
- package/dist/builtin-plugin/ProvidePlugin.js +0 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +0 -1
- package/dist/builtin-plugin/RealContentHashPlugin.js +0 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +0 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.js +0 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +0 -1
- package/dist/builtin-plugin/RuntimePlugin.js +0 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +0 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.js +0 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +0 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.js +0 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +0 -1
- package/dist/builtin-plugin/SplitChunksPlugin.js +0 -1
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +0 -1
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.js +0 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +0 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.js +0 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +0 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.js +0 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +0 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.js +0 -1
- package/dist/builtin-plugin/WorkerPlugin.d.ts +0 -1
- package/dist/builtin-plugin/WorkerPlugin.js +0 -1
- package/dist/builtin-plugin/base.d.ts +0 -1
- package/dist/builtin-plugin/base.js +0 -1
- package/dist/builtin-plugin/index.d.ts +2 -3
- package/dist/builtin-plugin/index.js +1 -4
- package/dist/config/adapter.d.ts +0 -1
- package/dist/config/adapter.js +0 -1
- package/dist/config/adapterRuleUse.d.ts +0 -1
- package/dist/config/adapterRuleUse.js +0 -1
- package/dist/config/browserslistTargetHandler.d.ts +0 -1
- package/dist/config/browserslistTargetHandler.js +0 -1
- package/dist/config/defaults.d.ts +0 -1
- package/dist/config/defaults.js +0 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -1
- package/dist/config/normalization.d.ts +0 -1
- package/dist/config/normalization.js +0 -1
- package/dist/config/target.d.ts +0 -1
- package/dist/config/target.js +0 -1
- package/dist/config/zod.d.ts +0 -1
- package/dist/config/zod.js +1 -2
- package/dist/container/ContainerPlugin.d.ts +0 -1
- package/dist/container/ContainerPlugin.js +0 -1
- package/dist/container/ContainerReferencePlugin.d.ts +0 -1
- package/dist/container/ContainerReferencePlugin.js +0 -1
- package/dist/container/ModuleFederationPlugin.d.ts +0 -1
- package/dist/container/ModuleFederationPlugin.js +0 -1
- package/dist/container/ModuleFederationPluginV1.d.ts +0 -1
- package/dist/container/ModuleFederationPluginV1.js +0 -1
- package/dist/container/default.runtime.d.ts +0 -1
- package/dist/container/default.runtime.js +0 -1
- package/dist/container/options.d.ts +0 -1
- package/dist/container/options.js +0 -1
- package/dist/error/ConcurrentCompilationError.d.ts +0 -1
- package/dist/error/ConcurrentCompilationError.js +0 -1
- package/dist/exports.d.ts +0 -1
- package/dist/exports.js +0 -1
- package/dist/fileSystem.d.ts +0 -1
- package/dist/fileSystem.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/lib/AbstractMethodError.d.ts +0 -1
- package/dist/lib/AbstractMethodError.js +0 -1
- package/dist/lib/Cache.d.ts +0 -1
- package/dist/lib/Cache.js +0 -1
- package/dist/lib/CacheFacade.d.ts +0 -1
- package/dist/lib/CacheFacade.js +0 -1
- package/dist/lib/EntryOptionPlugin.d.ts +0 -1
- package/dist/lib/EntryOptionPlugin.js +0 -1
- package/dist/lib/EnvironmentPlugin.d.ts +0 -1
- package/dist/lib/EnvironmentPlugin.js +0 -1
- package/dist/lib/HookWebpackError.d.ts +0 -1
- package/dist/lib/HookWebpackError.js +0 -1
- package/dist/lib/LoaderOptionsPlugin.d.ts +0 -1
- package/dist/lib/LoaderOptionsPlugin.js +0 -1
- package/dist/lib/LoaderTargetPlugin.d.ts +0 -1
- package/dist/lib/LoaderTargetPlugin.js +0 -1
- package/dist/lib/ModuleFilenameHelpers.d.ts +0 -1
- package/dist/lib/ModuleFilenameHelpers.js +0 -1
- package/dist/lib/WebpackError.d.ts +0 -1
- package/dist/lib/WebpackError.js +0 -1
- package/dist/lib/cache/getLazyHashedEtag.d.ts +0 -1
- package/dist/lib/cache/getLazyHashedEtag.js +0 -1
- package/dist/lib/cache/mergeEtags.d.ts +0 -1
- package/dist/lib/cache/mergeEtags.js +0 -1
- package/dist/lib/formatLocation.d.ts +0 -1
- package/dist/lib/formatLocation.js +0 -1
- package/dist/lib/ignoreWarningsPlugin.d.ts +0 -1
- package/dist/lib/ignoreWarningsPlugin.js +0 -1
- package/dist/lite-tapable/index.d.ts +92 -0
- package/dist/lite-tapable/index.js +315 -0
- package/dist/loader-runner/LoaderLoadingError.d.ts +0 -1
- package/dist/loader-runner/LoaderLoadingError.js +0 -1
- package/dist/loader-runner/index.d.ts +0 -1
- package/dist/loader-runner/index.js +0 -2
- package/dist/loader-runner/loadLoader.d.ts +0 -1
- package/dist/loader-runner/loadLoader.js +0 -1
- package/dist/logging/Logger.d.ts +0 -1
- package/dist/logging/Logger.js +0 -1
- package/dist/logging/createConsoleLogger.d.ts +0 -1
- package/dist/logging/createConsoleLogger.js +0 -1
- package/dist/logging/runtime.d.ts +0 -1
- package/dist/logging/runtime.js +0 -1
- package/dist/logging/truncateArgs.d.ts +0 -1
- package/dist/logging/truncateArgs.js +0 -1
- package/dist/node/NodeEnvironmentPlugin.d.ts +0 -1
- package/dist/node/NodeEnvironmentPlugin.js +0 -1
- package/dist/node/NodeTemplatePlugin.d.ts +0 -1
- package/dist/node/NodeTemplatePlugin.js +0 -1
- package/dist/node/NodeWatchFileSystem.d.ts +0 -1
- package/dist/node/NodeWatchFileSystem.js +0 -1
- package/dist/node/nodeConsole.d.ts +0 -1
- package/dist/node/nodeConsole.js +0 -1
- package/dist/rspack.d.ts +0 -1
- package/dist/rspack.js +0 -1
- package/dist/rspackOptionsApply.d.ts +0 -1
- package/dist/rspackOptionsApply.js +2 -3
- package/dist/sharing/ConsumeSharedPlugin.d.ts +0 -1
- package/dist/sharing/ConsumeSharedPlugin.js +0 -1
- package/dist/sharing/ProvideSharedPlugin.d.ts +0 -1
- package/dist/sharing/ProvideSharedPlugin.js +0 -1
- package/dist/sharing/SharePlugin.d.ts +0 -1
- package/dist/sharing/SharePlugin.js +0 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +0 -1
- package/dist/sharing/ShareRuntimePlugin.js +0 -1
- package/dist/sharing/utils.d.ts +0 -1
- package/dist/sharing/utils.js +0 -1
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +0 -1
- package/dist/stats/DefaultStatsFactoryPlugin.js +1 -2
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +0 -1
- package/dist/stats/DefaultStatsPrinterPlugin.js +0 -1
- package/dist/stats/StatsFactory.d.ts +0 -1
- package/dist/stats/StatsFactory.js +0 -1
- package/dist/stats/StatsPrinter.d.ts +0 -1
- package/dist/stats/StatsPrinter.js +0 -1
- package/dist/stats/statsFactoryUtils.d.ts +0 -1
- package/dist/stats/statsFactoryUtils.js +0 -1
- package/dist/util/ArrayQueue.d.ts +0 -1
- package/dist/util/ArrayQueue.js +0 -1
- package/dist/util/IterableHelpers.d.ts +0 -1
- package/dist/util/IterableHelpers.js +0 -1
- package/dist/util/MergeCaller.d.ts +0 -1
- package/dist/util/MergeCaller.js +0 -1
- package/dist/util/SizeFormatHelpers.d.ts +0 -1
- package/dist/util/SizeFormatHelpers.js +0 -1
- package/dist/util/assertNotNil.d.ts +0 -1
- package/dist/util/assertNotNil.js +0 -1
- package/dist/util/bindingVersionCheck.d.ts +0 -1
- package/dist/util/bindingVersionCheck.js +0 -1
- package/dist/util/cleverMerge.d.ts +0 -1
- package/dist/util/cleverMerge.js +0 -1
- package/dist/util/comparators.d.ts +0 -1
- package/dist/util/comparators.js +0 -1
- package/dist/util/createHash.d.ts +0 -1
- package/dist/util/createHash.js +0 -1
- package/dist/util/createSource.d.ts +0 -1
- package/dist/util/createSource.js +0 -1
- package/dist/util/fake.d.ts +0 -1
- package/dist/util/fake.js +0 -1
- package/dist/util/fs.d.ts +0 -1
- package/dist/util/fs.js +0 -1
- package/dist/util/hash/BatchedHash.d.ts +0 -1
- package/dist/util/hash/BatchedHash.js +0 -1
- package/dist/util/hash/index.d.ts +0 -1
- package/dist/util/hash/index.js +0 -1
- package/dist/util/hash/md4.d.ts +0 -1
- package/dist/util/hash/md4.js +0 -1
- package/dist/util/hash/wasm-hash.d.ts +0 -1
- package/dist/util/hash/wasm-hash.js +0 -1
- package/dist/util/hash/xxhash64.d.ts +0 -1
- package/dist/util/hash/xxhash64.js +0 -1
- package/dist/util/identifier.d.ts +0 -1
- package/dist/util/identifier.js +0 -1
- package/dist/util/index.d.ts +0 -10
- package/dist/util/index.js +1 -7
- package/dist/util/memoize.d.ts +0 -1
- package/dist/util/memoize.js +0 -1
- package/dist/util/normalization.d.ts +0 -1
- package/dist/util/normalization.js +0 -1
- package/dist/util/scheme.d.ts +0 -1
- package/dist/util/scheme.js +0 -1
- package/dist/util/smartGrouping.d.ts +0 -1
- package/dist/util/smartGrouping.js +0 -1
- package/dist/util/validate.d.ts +0 -1
- package/dist/util/validate.js +0 -1
- package/dist/util/webpack.d.ts +0 -1
- package/dist/util/webpack.js +0 -1
- package/package.json +7 -9
- package/dist/Chunk.d.ts.map +0 -1
- package/dist/Chunk.js.map +0 -1
- package/dist/ChunkGraph.d.ts.map +0 -1
- package/dist/ChunkGraph.js.map +0 -1
- package/dist/ChunkGroup.d.ts.map +0 -1
- package/dist/ChunkGroup.js.map +0 -1
- package/dist/Compilation.d.ts.map +0 -1
- package/dist/Compilation.js.map +0 -1
- package/dist/Compiler.d.ts.map +0 -1
- package/dist/Compiler.js.map +0 -1
- package/dist/ContextModuleFactory.d.ts.map +0 -1
- package/dist/ContextModuleFactory.js.map +0 -1
- package/dist/ErrorHelpers.d.ts.map +0 -1
- package/dist/ErrorHelpers.js.map +0 -1
- package/dist/ExecuteModulePlugin.d.ts.map +0 -1
- package/dist/ExecuteModulePlugin.js.map +0 -1
- package/dist/FileSystemInfo.d.ts.map +0 -1
- package/dist/FileSystemInfo.js.map +0 -1
- package/dist/Module.d.ts.map +0 -1
- package/dist/Module.js.map +0 -1
- package/dist/ModuleFilenameHelpers.d.ts.map +0 -1
- package/dist/ModuleFilenameHelpers.js.map +0 -1
- package/dist/ModuleTypeConstants.d.ts.map +0 -1
- package/dist/ModuleTypeConstants.js.map +0 -1
- package/dist/MultiCompiler.d.ts.map +0 -1
- package/dist/MultiCompiler.js.map +0 -1
- package/dist/MultiStats.d.ts.map +0 -1
- package/dist/MultiStats.js.map +0 -1
- package/dist/MultiWatching.d.ts.map +0 -1
- package/dist/MultiWatching.js.map +0 -1
- package/dist/NormalModule.d.ts.map +0 -1
- package/dist/NormalModule.js.map +0 -1
- package/dist/NormalModuleFactory.d.ts.map +0 -1
- package/dist/NormalModuleFactory.js.map +0 -1
- package/dist/ResolverFactory.d.ts.map +0 -1
- package/dist/ResolverFactory.js.map +0 -1
- package/dist/RuleSetCompiler.d.ts.map +0 -1
- package/dist/RuleSetCompiler.js.map +0 -1
- package/dist/RuntimeGlobals.d.ts.map +0 -1
- package/dist/RuntimeGlobals.js.map +0 -1
- package/dist/Stats.d.ts.map +0 -1
- package/dist/Stats.js.map +0 -1
- package/dist/Template.d.ts.map +0 -1
- package/dist/Template.js.map +0 -1
- package/dist/Watching.d.ts.map +0 -1
- package/dist/Watching.js.map +0 -1
- package/dist/builtin-loader/index.d.ts.map +0 -1
- package/dist/builtin-loader/index.js.map +0 -1
- package/dist/builtin-loader/swc/emotion.d.ts.map +0 -1
- package/dist/builtin-loader/swc/emotion.js.map +0 -1
- package/dist/builtin-loader/swc/index.d.ts.map +0 -1
- package/dist/builtin-loader/swc/index.js.map +0 -1
- package/dist/builtin-loader/swc/pluginImport.d.ts.map +0 -1
- package/dist/builtin-loader/swc/pluginImport.js.map +0 -1
- package/dist/builtin-loader/swc/react.d.ts.map +0 -1
- package/dist/builtin-loader/swc/react.js.map +0 -1
- package/dist/builtin-loader/swc/relay.d.ts.map +0 -1
- package/dist/builtin-loader/swc/relay.js.map +0 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.js.map +0 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/AssetModulesPlugin.js.map +0 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.js.map +0 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/BannerPlugin.js.map +0 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.js.map +0 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.js.map +0 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.js.map +0 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/CopyRspackPlugin.js.map +0 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/DataUriPlugin.js.map +0 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/DefinePlugin.js.map +0 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.js.map +0 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.js.map +0 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.js.map +0 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.js.map +0 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.js.map +0 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.js.map +0 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.js.map +0 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/EntryPlugin.js.map +0 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.js.map +0 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.js.map +0 -1
- package/dist/builtin-plugin/ExternalsPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/ExternalsPlugin.js.map +0 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/FileUriPlugin.js.map +0 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.js.map +0 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.js.map +0 -1
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/HotModuleReplacementPlugin.js.map +0 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/HtmlRspackPlugin.js.map +0 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.js.map +0 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.js.map +0 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.js.map +0 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/JsonModulesPlugin.js.map +0 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.js.map +0 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/MangleExportsPlugin.js.map +0 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.js.map +0 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.js.map +0 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.js.map +0 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.js.map +0 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.js.map +0 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/NodeTargetPlugin.js.map +0 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/ProgressPlugin.js.map +0 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/ProvidePlugin.js.map +0 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/RealContentHashPlugin.js.map +0 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.js.map +0 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/RuntimePlugin.js.map +0 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.js.map +0 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.js.map +0 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/SplitChunksPlugin.js.map +0 -1
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/SwcCssMinimizerPlugin.js.map +0 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.js.map +0 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.js.map +0 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.js.map +0 -1
- package/dist/builtin-plugin/WorkerPlugin.d.ts.map +0 -1
- package/dist/builtin-plugin/WorkerPlugin.js.map +0 -1
- package/dist/builtin-plugin/base.d.ts.map +0 -1
- package/dist/builtin-plugin/base.js.map +0 -1
- package/dist/builtin-plugin/index.d.ts.map +0 -1
- package/dist/builtin-plugin/index.js.map +0 -1
- package/dist/config/adapter.d.ts.map +0 -1
- package/dist/config/adapter.js.map +0 -1
- package/dist/config/adapterRuleUse.d.ts.map +0 -1
- package/dist/config/adapterRuleUse.js.map +0 -1
- package/dist/config/browserslistTargetHandler.d.ts.map +0 -1
- package/dist/config/browserslistTargetHandler.js.map +0 -1
- package/dist/config/defaults.d.ts.map +0 -1
- package/dist/config/defaults.js.map +0 -1
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/normalization.d.ts.map +0 -1
- package/dist/config/normalization.js.map +0 -1
- package/dist/config/target.d.ts.map +0 -1
- package/dist/config/target.js.map +0 -1
- package/dist/config/zod.d.ts.map +0 -1
- package/dist/config/zod.js.map +0 -1
- package/dist/container/ContainerPlugin.d.ts.map +0 -1
- package/dist/container/ContainerPlugin.js.map +0 -1
- package/dist/container/ContainerReferencePlugin.d.ts.map +0 -1
- package/dist/container/ContainerReferencePlugin.js.map +0 -1
- package/dist/container/ModuleFederationPlugin.d.ts.map +0 -1
- package/dist/container/ModuleFederationPlugin.js.map +0 -1
- package/dist/container/ModuleFederationPluginV1.d.ts.map +0 -1
- package/dist/container/ModuleFederationPluginV1.js.map +0 -1
- package/dist/container/default.runtime.d.ts.map +0 -1
- package/dist/container/default.runtime.js.map +0 -1
- package/dist/container/options.d.ts.map +0 -1
- package/dist/container/options.js.map +0 -1
- package/dist/error/ConcurrentCompilationError.d.ts.map +0 -1
- package/dist/error/ConcurrentCompilationError.js.map +0 -1
- package/dist/exports.d.ts.map +0 -1
- package/dist/exports.js.map +0 -1
- package/dist/fileSystem.d.ts.map +0 -1
- package/dist/fileSystem.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/AbstractMethodError.d.ts.map +0 -1
- package/dist/lib/AbstractMethodError.js.map +0 -1
- package/dist/lib/Cache.d.ts.map +0 -1
- package/dist/lib/Cache.js.map +0 -1
- package/dist/lib/CacheFacade.d.ts.map +0 -1
- package/dist/lib/CacheFacade.js.map +0 -1
- package/dist/lib/EntryOptionPlugin.d.ts.map +0 -1
- package/dist/lib/EntryOptionPlugin.js.map +0 -1
- package/dist/lib/EnvironmentPlugin.d.ts.map +0 -1
- package/dist/lib/EnvironmentPlugin.js.map +0 -1
- package/dist/lib/HookWebpackError.d.ts.map +0 -1
- package/dist/lib/HookWebpackError.js.map +0 -1
- package/dist/lib/LoaderOptionsPlugin.d.ts.map +0 -1
- package/dist/lib/LoaderOptionsPlugin.js.map +0 -1
- package/dist/lib/LoaderTargetPlugin.d.ts.map +0 -1
- package/dist/lib/LoaderTargetPlugin.js.map +0 -1
- package/dist/lib/ModuleFilenameHelpers.d.ts.map +0 -1
- package/dist/lib/ModuleFilenameHelpers.js.map +0 -1
- package/dist/lib/WebpackError.d.ts.map +0 -1
- package/dist/lib/WebpackError.js.map +0 -1
- package/dist/lib/cache/getLazyHashedEtag.d.ts.map +0 -1
- package/dist/lib/cache/getLazyHashedEtag.js.map +0 -1
- package/dist/lib/cache/mergeEtags.d.ts.map +0 -1
- package/dist/lib/cache/mergeEtags.js.map +0 -1
- package/dist/lib/formatLocation.d.ts.map +0 -1
- package/dist/lib/formatLocation.js.map +0 -1
- package/dist/lib/ignoreWarningsPlugin.d.ts.map +0 -1
- package/dist/lib/ignoreWarningsPlugin.js.map +0 -1
- package/dist/loader-runner/LoaderLoadingError.d.ts.map +0 -1
- package/dist/loader-runner/LoaderLoadingError.js.map +0 -1
- package/dist/loader-runner/index.d.ts.map +0 -1
- package/dist/loader-runner/index.js.map +0 -1
- package/dist/loader-runner/loadLoader.d.ts.map +0 -1
- package/dist/loader-runner/loadLoader.js.map +0 -1
- package/dist/logging/Logger.d.ts.map +0 -1
- package/dist/logging/Logger.js.map +0 -1
- package/dist/logging/createConsoleLogger.d.ts.map +0 -1
- package/dist/logging/createConsoleLogger.js.map +0 -1
- package/dist/logging/runtime.d.ts.map +0 -1
- package/dist/logging/runtime.js.map +0 -1
- package/dist/logging/truncateArgs.d.ts.map +0 -1
- package/dist/logging/truncateArgs.js.map +0 -1
- package/dist/node/NodeEnvironmentPlugin.d.ts.map +0 -1
- package/dist/node/NodeEnvironmentPlugin.js.map +0 -1
- package/dist/node/NodeTemplatePlugin.d.ts.map +0 -1
- package/dist/node/NodeTemplatePlugin.js.map +0 -1
- package/dist/node/NodeWatchFileSystem.d.ts.map +0 -1
- package/dist/node/NodeWatchFileSystem.js.map +0 -1
- package/dist/node/nodeConsole.d.ts.map +0 -1
- package/dist/node/nodeConsole.js.map +0 -1
- package/dist/rspack.d.ts.map +0 -1
- package/dist/rspack.js.map +0 -1
- package/dist/rspackOptionsApply.d.ts.map +0 -1
- package/dist/rspackOptionsApply.js.map +0 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts.map +0 -1
- package/dist/sharing/ConsumeSharedPlugin.js.map +0 -1
- package/dist/sharing/ProvideSharedPlugin.d.ts.map +0 -1
- package/dist/sharing/ProvideSharedPlugin.js.map +0 -1
- package/dist/sharing/SharePlugin.d.ts.map +0 -1
- package/dist/sharing/SharePlugin.js.map +0 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts.map +0 -1
- package/dist/sharing/ShareRuntimePlugin.js.map +0 -1
- package/dist/sharing/utils.d.ts.map +0 -1
- package/dist/sharing/utils.js.map +0 -1
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts.map +0 -1
- package/dist/stats/DefaultStatsFactoryPlugin.js.map +0 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts.map +0 -1
- package/dist/stats/DefaultStatsPrinterPlugin.js.map +0 -1
- package/dist/stats/StatsFactory.d.ts.map +0 -1
- package/dist/stats/StatsFactory.js.map +0 -1
- package/dist/stats/StatsPrinter.d.ts.map +0 -1
- package/dist/stats/StatsPrinter.js.map +0 -1
- package/dist/stats/statsFactoryUtils.d.ts.map +0 -1
- package/dist/stats/statsFactoryUtils.js.map +0 -1
- package/dist/util/ArrayQueue.d.ts.map +0 -1
- package/dist/util/ArrayQueue.js.map +0 -1
- package/dist/util/IterableHelpers.d.ts.map +0 -1
- package/dist/util/IterableHelpers.js.map +0 -1
- package/dist/util/MergeCaller.d.ts.map +0 -1
- package/dist/util/MergeCaller.js.map +0 -1
- package/dist/util/SizeFormatHelpers.d.ts.map +0 -1
- package/dist/util/SizeFormatHelpers.js.map +0 -1
- package/dist/util/assertNotNil.d.ts.map +0 -1
- package/dist/util/assertNotNil.js.map +0 -1
- package/dist/util/bindingVersionCheck.d.ts.map +0 -1
- package/dist/util/bindingVersionCheck.js.map +0 -1
- package/dist/util/cleverMerge.d.ts.map +0 -1
- package/dist/util/cleverMerge.js.map +0 -1
- package/dist/util/comparators.d.ts.map +0 -1
- package/dist/util/comparators.js.map +0 -1
- package/dist/util/createHash.d.ts.map +0 -1
- package/dist/util/createHash.js.map +0 -1
- package/dist/util/createSource.d.ts.map +0 -1
- package/dist/util/createSource.js.map +0 -1
- package/dist/util/fake.d.ts.map +0 -1
- package/dist/util/fake.js.map +0 -1
- package/dist/util/fs.d.ts.map +0 -1
- package/dist/util/fs.js.map +0 -1
- package/dist/util/hash/BatchedHash.d.ts.map +0 -1
- package/dist/util/hash/BatchedHash.js.map +0 -1
- package/dist/util/hash/index.d.ts.map +0 -1
- package/dist/util/hash/index.js.map +0 -1
- package/dist/util/hash/md4.d.ts.map +0 -1
- package/dist/util/hash/md4.js.map +0 -1
- package/dist/util/hash/wasm-hash.d.ts.map +0 -1
- package/dist/util/hash/wasm-hash.js.map +0 -1
- package/dist/util/hash/xxhash64.d.ts.map +0 -1
- package/dist/util/hash/xxhash64.js.map +0 -1
- package/dist/util/identifier.d.ts.map +0 -1
- package/dist/util/identifier.js.map +0 -1
- package/dist/util/index.d.ts.map +0 -1
- package/dist/util/index.js.map +0 -1
- package/dist/util/memoize.d.ts.map +0 -1
- package/dist/util/memoize.js.map +0 -1
- package/dist/util/normalization.d.ts.map +0 -1
- package/dist/util/normalization.js.map +0 -1
- package/dist/util/scheme.d.ts.map +0 -1
- package/dist/util/scheme.js.map +0 -1
- package/dist/util/smartGrouping.d.ts.map +0 -1
- package/dist/util/smartGrouping.js.map +0 -1
- package/dist/util/validate.d.ts.map +0 -1
- package/dist/util/validate.js.map +0 -1
- package/dist/util/webpack.d.ts.map +0 -1
- package/dist/util/webpack.js.map +0 -1
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _StageRange_from, _StageRange_to;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AsyncParallelHook = exports.SyncHook = exports.StageRange = void 0;
|
|
16
|
+
class Hook {
|
|
17
|
+
constructor(args, name) {
|
|
18
|
+
this.args = args;
|
|
19
|
+
this.name = name;
|
|
20
|
+
this.taps = [];
|
|
21
|
+
this.interceptors = [];
|
|
22
|
+
}
|
|
23
|
+
intercept(interceptor) {
|
|
24
|
+
this.interceptors.push(Object.assign({}, interceptor));
|
|
25
|
+
if (interceptor.register) {
|
|
26
|
+
for (let i = 0; i < this.taps.length; i++) {
|
|
27
|
+
this.taps[i] = interceptor.register(this.taps[i]);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
_runRegisterInterceptors(options) {
|
|
32
|
+
for (const interceptor of this.interceptors) {
|
|
33
|
+
if (interceptor.register) {
|
|
34
|
+
const newOptions = interceptor.register(options);
|
|
35
|
+
if (newOptions !== undefined) {
|
|
36
|
+
options = newOptions;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return options;
|
|
41
|
+
}
|
|
42
|
+
_runCallInterceptors(...args) {
|
|
43
|
+
for (const interceptor of this.interceptors) {
|
|
44
|
+
if (interceptor.call) {
|
|
45
|
+
interceptor.call(...args);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
_runErrorInterceptors(e) {
|
|
50
|
+
for (const interceptor of this.interceptors) {
|
|
51
|
+
if (interceptor.error) {
|
|
52
|
+
interceptor.error(e);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
_runTapInterceptors(tap) {
|
|
57
|
+
for (const interceptor of this.interceptors) {
|
|
58
|
+
if (interceptor.tap) {
|
|
59
|
+
interceptor.tap(tap);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
_runDoneInterceptors() {
|
|
64
|
+
for (const interceptor of this.interceptors) {
|
|
65
|
+
if (interceptor.done) {
|
|
66
|
+
interceptor.done();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
isUsed() {
|
|
71
|
+
return this.taps.length > 0 || this.interceptors.length > 0;
|
|
72
|
+
}
|
|
73
|
+
callAsyncStageRange(stageRange, ...args) {
|
|
74
|
+
throw new Error("Hook should implement there own _callAsyncStageRange");
|
|
75
|
+
}
|
|
76
|
+
callAsync(...args) {
|
|
77
|
+
return this.callAsyncStageRange(StageRange.all(), ...args);
|
|
78
|
+
}
|
|
79
|
+
promiseStageRange(stageRange, ...args) {
|
|
80
|
+
return new Promise((resolve, reject) => {
|
|
81
|
+
// @ts-expect-error
|
|
82
|
+
this.callAsyncStageRange(stageRange, ...args, (e, r) => {
|
|
83
|
+
if (e)
|
|
84
|
+
return reject(e);
|
|
85
|
+
return resolve(r);
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
promise(...args) {
|
|
90
|
+
return this.promiseStageRange(StageRange.all(), ...args);
|
|
91
|
+
}
|
|
92
|
+
tap(options, fn) {
|
|
93
|
+
this._tap("sync", options, fn);
|
|
94
|
+
}
|
|
95
|
+
_tap(type, options, fn) {
|
|
96
|
+
if (typeof options === "string") {
|
|
97
|
+
options = {
|
|
98
|
+
name: options.trim()
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
else if (typeof options !== "object" || options === null) {
|
|
102
|
+
throw new Error("Invalid tap options");
|
|
103
|
+
}
|
|
104
|
+
if (typeof options.name !== "string" || options.name === "") {
|
|
105
|
+
throw new Error("Missing name for tap");
|
|
106
|
+
}
|
|
107
|
+
let insert = Object.assign({ type, fn }, options);
|
|
108
|
+
insert = this._runRegisterInterceptors(insert);
|
|
109
|
+
this._insert(insert);
|
|
110
|
+
}
|
|
111
|
+
_insert(item) {
|
|
112
|
+
let before;
|
|
113
|
+
if (typeof item.before === "string") {
|
|
114
|
+
before = new Set([item.before]);
|
|
115
|
+
}
|
|
116
|
+
else if (Array.isArray(item.before)) {
|
|
117
|
+
before = new Set(item.before);
|
|
118
|
+
}
|
|
119
|
+
let stage = 0;
|
|
120
|
+
if (typeof item.stage === "number") {
|
|
121
|
+
stage = item.stage;
|
|
122
|
+
}
|
|
123
|
+
let i = this.taps.length;
|
|
124
|
+
while (i > 0) {
|
|
125
|
+
i--;
|
|
126
|
+
const x = this.taps[i];
|
|
127
|
+
this.taps[i + 1] = x;
|
|
128
|
+
const xStage = x.stage || 0;
|
|
129
|
+
if (before) {
|
|
130
|
+
if (before.has(x.name)) {
|
|
131
|
+
before.delete(x.name);
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
if (before.size > 0) {
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (xStage > stage) {
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
i++;
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
this.taps[i] = item;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
class StageRange {
|
|
148
|
+
constructor(from, to) {
|
|
149
|
+
_StageRange_from.set(this, void 0);
|
|
150
|
+
_StageRange_to.set(this, void 0);
|
|
151
|
+
__classPrivateFieldSet(this, _StageRange_from, StageRange.trim(from), "f");
|
|
152
|
+
__classPrivateFieldSet(this, _StageRange_to, StageRange.trim(to), "f");
|
|
153
|
+
}
|
|
154
|
+
static from(from, to) {
|
|
155
|
+
return new StageRange(from, to);
|
|
156
|
+
}
|
|
157
|
+
static all() {
|
|
158
|
+
return StageRange.from(StageRange.MIN, StageRange.MAX);
|
|
159
|
+
}
|
|
160
|
+
get from() {
|
|
161
|
+
return __classPrivateFieldGet(this, _StageRange_from, "f");
|
|
162
|
+
}
|
|
163
|
+
get to() {
|
|
164
|
+
return __classPrivateFieldGet(this, _StageRange_to, "f");
|
|
165
|
+
}
|
|
166
|
+
static trim(n) {
|
|
167
|
+
if (n > StageRange.MAX)
|
|
168
|
+
return StageRange.MAX;
|
|
169
|
+
if (n < StageRange.MIN)
|
|
170
|
+
return StageRange.MIN;
|
|
171
|
+
return n;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
_StageRange_from = new WeakMap(), _StageRange_to = new WeakMap();
|
|
175
|
+
StageRange.MAX = 2 ** 31 - 1;
|
|
176
|
+
StageRange.MIN = -(2 ** 31);
|
|
177
|
+
exports.StageRange = StageRange;
|
|
178
|
+
class SyncHook extends Hook {
|
|
179
|
+
callAsyncStageRange({ from, to }, ...args) {
|
|
180
|
+
var _a;
|
|
181
|
+
const args2 = [...args];
|
|
182
|
+
const cb = args2.pop();
|
|
183
|
+
if (from === StageRange.MIN) {
|
|
184
|
+
this._runCallInterceptors(...args2);
|
|
185
|
+
}
|
|
186
|
+
for (let tap of this.taps) {
|
|
187
|
+
const stage = (_a = tap.stage) !== null && _a !== void 0 ? _a : 0;
|
|
188
|
+
if (from < stage && stage <= to) {
|
|
189
|
+
this._runTapInterceptors(tap);
|
|
190
|
+
try {
|
|
191
|
+
tap.fn(...args2);
|
|
192
|
+
}
|
|
193
|
+
catch (e) {
|
|
194
|
+
const err = e;
|
|
195
|
+
this._runErrorInterceptors(err);
|
|
196
|
+
return cb(err);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (to === StageRange.MAX) {
|
|
201
|
+
this._runDoneInterceptors();
|
|
202
|
+
cb(null);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
call(...args) {
|
|
206
|
+
return this.callStageRange(StageRange.all(), ...args);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* call a range of taps, from < stage <= to, (from, to]
|
|
210
|
+
*/
|
|
211
|
+
callStageRange(stageRange, ...args) {
|
|
212
|
+
let result, error;
|
|
213
|
+
// @ts-expect-error
|
|
214
|
+
this.callAsyncStageRange(stageRange, ...args, (e, r) => {
|
|
215
|
+
error = e;
|
|
216
|
+
result = r;
|
|
217
|
+
});
|
|
218
|
+
if (error) {
|
|
219
|
+
throw error;
|
|
220
|
+
}
|
|
221
|
+
return result;
|
|
222
|
+
}
|
|
223
|
+
tapAsync() {
|
|
224
|
+
throw new Error("tapAsync is not supported on a SyncHook");
|
|
225
|
+
}
|
|
226
|
+
tapPromise() {
|
|
227
|
+
throw new Error("tapPromise is not supported on a SyncHook");
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
exports.SyncHook = SyncHook;
|
|
231
|
+
class AsyncParallelHook extends Hook {
|
|
232
|
+
callAsyncStageRange({ from, to }, ...args) {
|
|
233
|
+
var _a;
|
|
234
|
+
const args2 = [...args];
|
|
235
|
+
const cb = args2.pop();
|
|
236
|
+
if (from === StageRange.MIN) {
|
|
237
|
+
this._runCallInterceptors(...args2);
|
|
238
|
+
}
|
|
239
|
+
const done = () => {
|
|
240
|
+
this._runDoneInterceptors();
|
|
241
|
+
cb(null);
|
|
242
|
+
};
|
|
243
|
+
const error = (e) => {
|
|
244
|
+
this._runErrorInterceptors(e);
|
|
245
|
+
cb(e);
|
|
246
|
+
};
|
|
247
|
+
const tapsInRange = [];
|
|
248
|
+
for (let tap of this.taps) {
|
|
249
|
+
const stage = (_a = tap.stage) !== null && _a !== void 0 ? _a : 0;
|
|
250
|
+
if (from < stage && stage <= to) {
|
|
251
|
+
tapsInRange.push(tap);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (tapsInRange.length === 0)
|
|
255
|
+
return done();
|
|
256
|
+
let counter = tapsInRange.length;
|
|
257
|
+
for (let tap of tapsInRange) {
|
|
258
|
+
this._runTapInterceptors(tap);
|
|
259
|
+
if (tap.type === "promise") {
|
|
260
|
+
const promise = tap.fn(...args2);
|
|
261
|
+
if (!promise || !promise.then) {
|
|
262
|
+
throw new Error("Tap function (tapPromise) did not return promise (returned " +
|
|
263
|
+
promise +
|
|
264
|
+
")");
|
|
265
|
+
}
|
|
266
|
+
promise.then(() => {
|
|
267
|
+
counter -= 1;
|
|
268
|
+
if (counter === 0) {
|
|
269
|
+
done();
|
|
270
|
+
}
|
|
271
|
+
}, (e) => {
|
|
272
|
+
counter = 0;
|
|
273
|
+
error(e);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
else if (tap.type === "async") {
|
|
277
|
+
tap.fn(...args2, (e) => {
|
|
278
|
+
if (e) {
|
|
279
|
+
counter = 0;
|
|
280
|
+
error(e);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
counter -= 1;
|
|
284
|
+
if (counter === 0) {
|
|
285
|
+
done();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
let hasError = false;
|
|
292
|
+
try {
|
|
293
|
+
tap.fn(...args2);
|
|
294
|
+
}
|
|
295
|
+
catch (e) {
|
|
296
|
+
hasError = true;
|
|
297
|
+
counter = 0;
|
|
298
|
+
error(e);
|
|
299
|
+
}
|
|
300
|
+
if (!hasError && --counter === 0) {
|
|
301
|
+
done();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
if (counter <= 0)
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
tapAsync(options, fn) {
|
|
309
|
+
this._tap("async", options, fn);
|
|
310
|
+
}
|
|
311
|
+
tapPromise(options, fn) {
|
|
312
|
+
this._tap("promise", options, fn);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
exports.AsyncParallelHook = AsyncParallelHook;
|
|
@@ -196,7 +196,6 @@ async function runLoaders(compiler, rawContext) {
|
|
|
196
196
|
cacheable = true;
|
|
197
197
|
};
|
|
198
198
|
loaderContext.importModule = function importModule(request, options, callback) {
|
|
199
|
-
const executeModuleKey = request + options.publicPath + options.baseUri;
|
|
200
199
|
if (!callback) {
|
|
201
200
|
return new Promise((resolve, reject) => {
|
|
202
201
|
compiler.compilation
|
|
@@ -726,4 +725,3 @@ function iterateNormalLoaders(loaderContext, args, callback) {
|
|
|
726
725
|
});
|
|
727
726
|
});
|
|
728
727
|
}
|
|
729
|
-
//# sourceMappingURL=index.js.map
|
package/dist/logging/Logger.d.ts
CHANGED
package/dist/logging/Logger.js
CHANGED
package/dist/logging/runtime.js
CHANGED
|
@@ -16,4 +16,3 @@ export default class NodeWatchFileSystem implements WatchFileSystem {
|
|
|
16
16
|
constructor(inputFileSystem: any);
|
|
17
17
|
watch(files: Iterable<string>, directories: Iterable<string>, missing: Iterable<string>, startTime: number, options: WatchOptions, callback: (error: Error, fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, changedFiles: Set<string>, removedFiles: Set<string>) => void, callbackUndelayed: (fileName: string, changeTime: number) => void): Watcher;
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=NodeWatchFileSystem.d.ts.map
|
package/dist/node/nodeConsole.js
CHANGED
package/dist/rspack.d.ts
CHANGED
|
@@ -23,4 +23,3 @@ declare function rspack(options: RspackOptions, callback?: Callback<Error, Stats
|
|
|
23
23
|
declare function rspack(options: MultiRspackOptions | RspackOptions, callback?: Callback<Error, MultiStats | Stats>): null | MultiCompiler | Compiler;
|
|
24
24
|
export { rspack, createCompiler, createMultiCompiler, Stats, MultiStats };
|
|
25
25
|
export default rspack;
|
|
26
|
-
//# sourceMappingURL=rspack.d.ts.map
|
package/dist/rspack.js
CHANGED
|
@@ -15,7 +15,7 @@ const builtin_plugin_1 = require("./builtin-plugin");
|
|
|
15
15
|
const util_1 = require("./util");
|
|
16
16
|
function applyEntryOptions(compiler, options) {
|
|
17
17
|
if (!options.experiments.rspackFuture.disableApplyEntryLazily) {
|
|
18
|
-
(0, util_1.deprecatedWarn)(`You are depending on
|
|
18
|
+
(0, util_1.deprecatedWarn)(`You are depending on apply entry lazily (https://rspack.dev/config/experiments.html#experimentsrspackfuturedisableapplyentrylazily), this behavior has been deprecated, you can setup 'experiments.rspackFuture.disableApplyEntryLazily = true' to disable this behavior, and this will be enabled by default in v0.5`);
|
|
19
19
|
}
|
|
20
20
|
if (compiler.parentCompilation === undefined) {
|
|
21
21
|
if (options.experiments.rspackFuture.disableApplyEntryLazily) {
|
|
@@ -114,7 +114,7 @@ class RspackOptionsApply {
|
|
|
114
114
|
? builtin_plugin_1.EvalSourceMapDevToolPlugin
|
|
115
115
|
: builtin_plugin_1.SourceMapDevToolPlugin;
|
|
116
116
|
new Plugin({
|
|
117
|
-
filename: inline ?
|
|
117
|
+
filename: inline ? null : options.output.sourceMapFilename,
|
|
118
118
|
moduleFilenameTemplate: options.output.devtoolModuleFilenameTemplate,
|
|
119
119
|
fallbackModuleFilenameTemplate: options.output.devtoolFallbackModuleFilenameTemplate,
|
|
120
120
|
append: hidden ? false : undefined,
|
|
@@ -262,4 +262,3 @@ class RspackOptionsApply {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
exports.RspackOptionsApply = RspackOptionsApply;
|
|
265
|
-
//# sourceMappingURL=rspackOptionsApply.js.map
|
package/dist/sharing/utils.d.ts
CHANGED
package/dist/sharing/utils.js
CHANGED
|
@@ -515,7 +515,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
515
515
|
}, {});
|
|
516
516
|
},
|
|
517
517
|
chunkGroups: (object, compilation, context, _options, factory) => {
|
|
518
|
-
const { type } = context;
|
|
518
|
+
// const { type } = context;
|
|
519
519
|
const namedChunkGroups = context
|
|
520
520
|
.getInner(compilation)
|
|
521
521
|
.getNamedChunkGroups();
|
|
@@ -750,4 +750,3 @@ class DefaultStatsFactoryPlugin {
|
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
exports.DefaultStatsFactoryPlugin = DefaultStatsFactoryPlugin;
|
|
753
|
-
//# sourceMappingURL=DefaultStatsFactoryPlugin.js.map
|
package/dist/util/ArrayQueue.js
CHANGED
|
@@ -10,4 +10,3 @@
|
|
|
10
10
|
export declare const last: <T>(set: Iterable<T>) => T | undefined;
|
|
11
11
|
export declare const someInIterable: <T>(iterable: Iterable<T>, filter: (arg: T) => boolean) => boolean;
|
|
12
12
|
export declare const countIterable: <T>(iterable: Iterable<T>) => number;
|
|
13
|
-
//# sourceMappingURL=IterableHelpers.d.ts.map
|