@rspack-canary/core 1.7.4-canary-6f161b5e-20260120174123 → 2.0.0-canary-30d58971-20260122174325
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/ChunkGraph.d.ts +1 -1
- package/dist/Compilation.d.ts +27 -27
- package/dist/Compiler.d.ts +19 -17
- package/dist/ContextModuleFactory.d.ts +1 -1
- package/dist/Diagnostics.d.ts +1 -1
- package/dist/ExecuteModulePlugin.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +1 -1
- package/dist/FileSystem.d.ts +1 -1
- package/dist/Module.d.ts +2 -2
- package/dist/ModuleGraph.d.ts +2 -2
- package/dist/MultiCompiler.d.ts +7 -7
- package/dist/MultiStats.d.ts +3 -3
- package/dist/MultiWatching.d.ts +2 -2
- package/dist/NativeWatchFileSystem.d.ts +1 -1
- package/dist/NormalModule.d.ts +3 -3
- package/dist/NormalModuleFactory.d.ts +3 -3
- package/dist/Resolver.d.ts +1 -1
- package/dist/ResolverFactory.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +2 -2
- package/dist/RuntimeModule.d.ts +3 -3
- package/dist/Stats.d.ts +4 -4
- package/dist/VirtualModulesPlugin.d.ts +1 -1
- package/dist/Watching.d.ts +4 -4
- package/dist/builtin-loader/lightningcss/index.d.ts +11 -14
- package/dist/builtin-loader/lightningcss/target.d.ts +4 -0
- package/dist/builtin-loader/swc/index.d.ts +5 -5
- package/dist/builtin-loader/swc/types.d.ts +2 -8
- package/dist/builtin-plugin/APIPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/BannerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CaseSensitivePlugin.d.ts +3 -3
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +4 -4
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +3 -3
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DataUriPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DefinePlugin.d.ts +3 -3
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +3 -3
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EntryPlugin.d.ts +4 -4
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +3 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +3 -3
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FileUriPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +2 -2
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +3 -3
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/IgnorePlugin.d.ts +3 -3
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/InlineExportsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +4 -4
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +3 -3
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +7 -11
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +3 -3
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +3 -3
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +4 -4
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ProgressPlugin.d.ts +3 -3
- package/dist/builtin-plugin/ProvidePlugin.d.ts +3 -3
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +4 -8
- package/dist/builtin-plugin/RslibPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RstestPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RuntimePlugin.d.ts +6 -10
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +3 -3
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +6 -5
- package/dist/builtin-plugin/URLPlugin.d.ts +3 -3
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
- package/dist/builtin-plugin/WorkerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/index.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +1 -6
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -9
- package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +84 -84
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +4 -4
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/config/adapter.d.ts +4 -4
- package/dist/config/adapterRuleUse.d.ts +10 -9
- package/dist/config/browserslistTargetHandler.d.ts +1 -1
- package/dist/config/defaults.d.ts +5 -3
- package/dist/config/devServer.d.ts +3 -3
- package/dist/config/index.d.ts +5 -5
- package/dist/config/normalization.d.ts +8 -36
- package/dist/config/target.d.ts +14 -11
- package/dist/config/types.d.ts +94 -179
- package/dist/container/ContainerPlugin.d.ts +3 -3
- package/dist/container/ContainerReferencePlugin.d.ts +3 -3
- package/dist/container/ModuleFederationManifestPlugin.d.ts +2 -2
- package/dist/container/ModuleFederationPlugin.d.ts +5 -3
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +7 -3
- package/dist/container/index.d.ts +4 -4
- package/dist/cssExtractHmr.js +2 -27
- package/dist/cssExtractLoader.js +18 -60
- package/dist/exports.d.ts +69 -82
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11676 -11722
- package/dist/lib/AbstractMethodError.d.ts +1 -1
- package/dist/lib/Cache.d.ts +1 -1
- package/dist/lib/CacheFacade.d.ts +3 -3
- package/dist/lib/DllPlugin.d.ts +2 -2
- package/dist/lib/DllReferencePlugin.d.ts +3 -3
- package/dist/lib/EntryOptionPlugin.d.ts +2 -2
- package/dist/lib/EnvironmentPlugin.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +1 -1
- package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
- package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
- package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
- package/dist/lib/WebpackError.d.ts +2 -2
- package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
- package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
- package/dist/lib/cache/mergeEtags.d.ts +1 -1
- package/dist/loader-runner/ModuleError.d.ts +1 -1
- package/dist/loader-runner/index.d.ts +1 -1
- package/dist/loader-runner/loadLoader.d.ts +2 -2
- package/dist/loader-runner/utils.d.ts +3 -3
- package/dist/loader-runner/worker.d.ts +1 -1
- package/dist/logging/createConsoleLogger.d.ts +2 -2
- package/dist/moduleFederationDefaultRuntime.js +1 -1
- package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
- package/dist/node/NodeTemplatePlugin.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +1 -1
- package/dist/node/nodeConsole.d.ts +1 -1
- package/dist/rslib-runtime.js +29 -0
- package/dist/rspack.d.ts +5 -5
- package/dist/rspackOptionsApply.d.ts +1 -1
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +1 -2
- package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
- package/dist/sharing/ProvideSharedPlugin.d.ts +2 -2
- package/dist/sharing/SharePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +2 -2
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +2 -2
- package/dist/stats/StatsPrinter.d.ts +1 -1
- package/dist/stats/statsFactoryUtils.d.ts +3 -6
- package/dist/taps/compilation.d.ts +1 -1
- package/dist/taps/compiler.d.ts +1 -1
- package/dist/taps/contextModuleFactory.d.ts +1 -1
- package/dist/taps/index.d.ts +6 -6
- package/dist/taps/javascriptModules.d.ts +1 -1
- package/dist/taps/normalModuleFactory.d.ts +1 -1
- package/dist/taps/types.d.ts +1 -1
- package/dist/trace/traceHookPlugin.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/fs.d.ts +1 -1
- package/dist/util/hash/md4.d.ts +1 -1
- package/dist/util/hash/xxhash64.d.ts +1 -1
- package/dist/util/index.d.ts +1 -1
- package/dist/util/targetsVersion.d.ts +2 -0
- package/dist/util/validateConfig.d.ts +1 -1
- package/dist/worker.js +846 -918
- package/hot/dev-server.js +12 -9
- package/hot/emitter.js +5 -1
- package/hot/lazy-compilation-node.js +4 -1
- package/hot/lazy-compilation-web.js +2 -3
- package/hot/log-apply-result.js +8 -5
- package/hot/log.js +17 -7
- package/hot/only-dev-server.js +13 -10
- package/hot/poll.js +11 -8
- package/hot/signal.js +13 -9
- package/package.json +10 -6
- package/compiled/browserslist-load-config/index.d.ts +0 -21
- package/compiled/browserslist-load-config/index.js +0 -252
- package/compiled/browserslist-load-config/license +0 -21
- package/compiled/browserslist-load-config/package.json +0 -1
- package/dist/builtin-loader/index.d.ts +0 -1
package/dist/lib/Cache.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import { AsyncParallelHook, AsyncSeriesBailHook, SyncHook } from '@rspack/lite-tapable';
|
|
11
|
-
import type { WebpackError } from './WebpackError';
|
|
11
|
+
import type { WebpackError } from './WebpackError.js';
|
|
12
12
|
export interface Etag {
|
|
13
13
|
toString(): string;
|
|
14
14
|
}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Cache, CallbackCache, Etag } from './Cache';
|
|
11
|
-
import type { HashableObject, HashConstructor } from './cache/getLazyHashedEtag';
|
|
12
|
-
import type WebpackError from './WebpackError';
|
|
10
|
+
import type { Cache, CallbackCache, Etag } from './Cache.js';
|
|
11
|
+
import type { HashableObject, HashConstructor } from './cache/getLazyHashedEtag.js';
|
|
12
|
+
import type WebpackError from './WebpackError.js';
|
|
13
13
|
type CallbackNormalErrorCache<T> = (err?: WebpackError | null, result?: T) => void;
|
|
14
14
|
declare abstract class BaseCache {
|
|
15
15
|
abstract get<T>(callback: CallbackCache<T>): void;
|
package/dist/lib/DllPlugin.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler } from '../Compiler';
|
|
10
|
+
import type { Compiler } from '../Compiler.js';
|
|
11
11
|
export type DllPluginOptions = {
|
|
12
12
|
/**
|
|
13
13
|
* Context of requests in the manifest file (defaults to the webpack context).
|
|
@@ -31,7 +31,7 @@ export type DllPluginOptions = {
|
|
|
31
31
|
*/
|
|
32
32
|
path: string;
|
|
33
33
|
/**
|
|
34
|
-
* Type of the dll bundle (external type, use value of 'output.
|
|
34
|
+
* Type of the dll bundle (external type, use value of 'output.library.type').
|
|
35
35
|
*/
|
|
36
36
|
type?: string;
|
|
37
37
|
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { JsBuildMeta } from '@rspack/binding';
|
|
11
|
-
import type { Compiler } from '../Compiler';
|
|
11
|
+
import type { Compiler } from '../Compiler.js';
|
|
12
12
|
export type DllReferencePluginOptions = {
|
|
13
13
|
/**
|
|
14
14
|
* Context of requests in the manifest (or content property) as absolute path.
|
|
@@ -31,7 +31,7 @@ export type DllReferencePluginOptions = {
|
|
|
31
31
|
*/
|
|
32
32
|
scope?: string;
|
|
33
33
|
/**
|
|
34
|
-
* How the dll is exposed (
|
|
34
|
+
* How the dll is exposed (library.type, defaults to manifest.type).
|
|
35
35
|
*/
|
|
36
36
|
sourceType?: DllReferencePluginOptionsSourceType;
|
|
37
37
|
/**
|
|
@@ -60,7 +60,7 @@ export type DllReferencePluginOptions = {
|
|
|
60
60
|
*/
|
|
61
61
|
scope?: string;
|
|
62
62
|
/**
|
|
63
|
-
* How the dll is exposed (
|
|
63
|
+
* How the dll is exposed (library.type).
|
|
64
64
|
*/
|
|
65
65
|
sourceType?: DllReferencePluginOptionsSourceType;
|
|
66
66
|
/**
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler, EntryDescriptionNormalized, EntryNormalized } from '
|
|
11
|
-
import type { EntryOptions } from '../builtin-plugin';
|
|
10
|
+
import type { Compiler, EntryDescriptionNormalized, EntryNormalized } from '../index.js';
|
|
11
|
+
import type { EntryOptions } from '../builtin-plugin/index.js';
|
|
12
12
|
export declare class EntryOptionPlugin {
|
|
13
13
|
/**
|
|
14
14
|
* @param compiler the compiler instance one is tapping into
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler } from '../Compiler';
|
|
10
|
+
import type { Compiler } from '../Compiler.js';
|
|
11
11
|
declare class EnvironmentPlugin {
|
|
12
12
|
keys: string[];
|
|
13
13
|
defaultValues: Record<string, string | undefined | null>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { Callback } from '@rspack/lite-tapable';
|
|
11
|
-
import WebpackError from './WebpackError';
|
|
11
|
+
import WebpackError from './WebpackError.js';
|
|
12
12
|
export declare class HookWebpackError extends WebpackError {
|
|
13
13
|
hook: string;
|
|
14
14
|
error: Error;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler, IgnoreWarningsNormalized, RspackPluginInstance } from '
|
|
10
|
+
import type { Compiler, IgnoreWarningsNormalized, RspackPluginInstance } from '../index.js';
|
|
11
11
|
declare class IgnoreWarningsPlugin implements RspackPluginInstance {
|
|
12
12
|
_ignorePattern: IgnoreWarningsNormalized;
|
|
13
13
|
name: string;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler } from '../Compiler';
|
|
11
|
-
import type { MatchObject } from './ModuleFilenameHelpers';
|
|
10
|
+
import type { Compiler } from '../Compiler.js';
|
|
11
|
+
import type { MatchObject } from './ModuleFilenameHelpers.js';
|
|
12
12
|
type LoaderOptionsPluginOptions = MatchObject & {
|
|
13
13
|
[key: string]: unknown;
|
|
14
14
|
};
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler } from '../Compiler';
|
|
11
|
-
import type { Target } from '../config';
|
|
10
|
+
import type { Compiler } from '../Compiler.js';
|
|
11
|
+
import type { Target } from '../config/index.js';
|
|
12
12
|
export declare class LoaderTargetPlugin {
|
|
13
13
|
readonly target: Target;
|
|
14
14
|
/**
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { DependencyLocation } from '@rspack/binding';
|
|
11
|
-
import type { Chunk } from '../Chunk';
|
|
12
|
-
import type { Module } from '../Module';
|
|
11
|
+
import type { Chunk } from '../Chunk.js';
|
|
12
|
+
import type { Module } from '../Module.js';
|
|
13
13
|
export declare class WebpackError extends Error {
|
|
14
14
|
loc?: DependencyLocation;
|
|
15
15
|
file?: string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type Hash from '../../util/hash';
|
|
10
|
+
import type Hash from '../../util/hash/index.js';
|
|
11
11
|
export type HashConstructor = typeof Hash;
|
|
12
12
|
export interface HashableObject {
|
|
13
13
|
updateHash(hash: Hash): void;
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/loader-runner/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler } from '../exports';
|
|
11
|
-
import type { LoaderObject } from '.';
|
|
10
|
+
import type { Compiler } from '../exports.js';
|
|
11
|
+
import type { LoaderObject } from './index.js';
|
|
12
12
|
export default function loadLoader(loader: LoaderObject, compiler: Compiler, callback: (err: unknown) => void): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { LoaderContext } from '../config/adapterRuleUse';
|
|
2
|
-
import type { Compiler } from '../exports';
|
|
3
|
-
import type { LoaderObject } from '.';
|
|
1
|
+
import type { LoaderContext } from '../config/adapterRuleUse.js';
|
|
2
|
+
import type { Compiler } from '../exports.js';
|
|
3
|
+
import type { LoaderObject } from './index.js';
|
|
4
4
|
export declare function convertArgs(args: any[], raw: boolean): void;
|
|
5
5
|
export declare const loadLoader: (loaderObject: LoaderObject, compiler: Compiler) => Promise<void>;
|
|
6
6
|
export declare const runSyncOrAsync: (arg1: Function, arg2: LoaderContext<{}>, arg3: any[]) => Promise<any[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MessagePort } from 'node:worker_threads';
|
|
2
2
|
import { JsLoaderState } from '@rspack/binding';
|
|
3
|
-
import type { LoaderContext } from '../config';
|
|
3
|
+
import type { LoaderContext } from '../config/index.js';
|
|
4
4
|
interface WorkerOptions {
|
|
5
5
|
loaderContext: LoaderContext;
|
|
6
6
|
loaderState: JsLoaderState;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { FilterTypes } from '../config';
|
|
11
|
-
import { type LogTypeEnum } from './Logger';
|
|
10
|
+
import type { FilterTypes } from '../config/index.js';
|
|
11
|
+
import { type LogTypeEnum } from './Logger.js';
|
|
12
12
|
export type FilterFunction = (ident: string) => boolean;
|
|
13
13
|
export type LoggerConsole = {
|
|
14
14
|
clear: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __module_federation_bundler_runtime__,__module_federation_runtime_plugins__,__module_federation_remote_infos__,__module_federation_container_name__,__module_federation_share_strategy__;
|
|
1
|
+
var __module_federation_bundler_runtime__,__module_federation_runtime_plugins__,__module_federation_remote_infos__,__module_federation_container_name__,__module_federation_share_strategy__;export default function(){if((__webpack_require__.initializeSharingData||__webpack_require__.initializeExposesData)&&__webpack_require__.federation){var _ref,_ref1,_ref2,_ref3,_ref4;var __webpack_require___remotesLoadingData,__webpack_require___remotesLoadingData1,__webpack_require___initializeSharingData,__webpack_require___consumesLoadingData,__webpack_require___consumesLoadingData1,__webpack_require___initializeExposesData,__webpack_require___consumesLoadingData2;const override=(obj,key,value)=>{if(!obj)return;if(obj[key])obj[key]=value};const merge=(obj,key,fn)=>{const value=fn();if(Array.isArray(value)){var _obj,_key,_;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=[];obj[key].push(...value)}else if(typeof value==="object"&&value!==null){var _obj1,_key1,_1;(_1=(_obj1=obj)[_key1=key])!==null&&_1!==void 0?_1:_obj1[_key1]={};Object.assign(obj[key],value)}};const early=(obj,key,initial)=>{var _obj,_key,_;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=initial()};const remotesLoadingChunkMapping=(_ref=(__webpack_require___remotesLoadingData=__webpack_require__.remotesLoadingData)===null||__webpack_require___remotesLoadingData===void 0?void 0:__webpack_require___remotesLoadingData.chunkMapping)!==null&&_ref!==void 0?_ref:{};const remotesLoadingModuleIdToRemoteDataMapping=(_ref1=(__webpack_require___remotesLoadingData1=__webpack_require__.remotesLoadingData)===null||__webpack_require___remotesLoadingData1===void 0?void 0:__webpack_require___remotesLoadingData1.moduleIdToRemoteDataMapping)!==null&&_ref1!==void 0?_ref1:{};const initializeSharingScopeToInitDataMapping=(_ref2=(__webpack_require___initializeSharingData=__webpack_require__.initializeSharingData)===null||__webpack_require___initializeSharingData===void 0?void 0:__webpack_require___initializeSharingData.scopeToSharingDataMapping)!==null&&_ref2!==void 0?_ref2:{};const consumesLoadingChunkMapping=(_ref3=(__webpack_require___consumesLoadingData=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData===void 0?void 0:__webpack_require___consumesLoadingData.chunkMapping)!==null&&_ref3!==void 0?_ref3:{};const consumesLoadingModuleToConsumeDataMapping=(_ref4=(__webpack_require___consumesLoadingData1=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData1===void 0?void 0:__webpack_require___consumesLoadingData1.moduleIdToConsumeDataMapping)!==null&&_ref4!==void 0?_ref4:{};const consumesLoadinginstalledModules={};const initializeSharingInitPromises=[];const initializeSharingInitTokens={};const containerShareScope=(__webpack_require___initializeExposesData=__webpack_require__.initializeExposesData)===null||__webpack_require___initializeExposesData===void 0?void 0:__webpack_require___initializeExposesData.shareScope;for(const key in __module_federation_bundler_runtime__){__webpack_require__.federation[key]=__module_federation_bundler_runtime__[key]}early(__webpack_require__.federation,"consumesLoadingModuleToHandlerMapping",()=>{const consumesLoadingModuleToHandlerMapping={};for(let[moduleId,data]of Object.entries(consumesLoadingModuleToConsumeDataMapping)){consumesLoadingModuleToHandlerMapping[moduleId]={getter:data.fallback,shareInfo:{shareConfig:{fixedDependencies:false,requiredVersion:data.requiredVersion,strictVersion:data.strictVersion,singleton:data.singleton,eager:data.eager},scope:[data.shareScope]},shareKey:data.shareKey}}return consumesLoadingModuleToHandlerMapping});early(__webpack_require__.federation,"initOptions",()=>({}));early(__webpack_require__.federation.initOptions,"name",()=>__module_federation_container_name__);early(__webpack_require__.federation.initOptions,"shareStrategy",()=>__module_federation_share_strategy__);early(__webpack_require__.federation.initOptions,"shared",()=>{const shared={};for(let[scope,stages]of Object.entries(initializeSharingScopeToInitDataMapping)){for(let stage of stages){if(typeof stage==="object"&&stage!==null){const{name,version,factory,eager,singleton,requiredVersion,strictVersion}=stage;const shareConfig={};const isValidValue=function(val){return typeof val!=="undefined"};if(isValidValue(singleton)){shareConfig.singleton=singleton}if(isValidValue(requiredVersion)){shareConfig.requiredVersion=requiredVersion}if(isValidValue(eager)){shareConfig.eager=eager}if(isValidValue(strictVersion)){shareConfig.strictVersion=strictVersion}const options={version,scope:[scope],shareConfig,get:factory};if(shared[name]){shared[name].push(options)}else{shared[name]=[options]}}}}return shared});merge(__webpack_require__.federation.initOptions,"remotes",()=>Object.values(__module_federation_remote_infos__).flat().filter(remote=>remote.externalType==="script"));merge(__webpack_require__.federation.initOptions,"plugins",()=>__module_federation_runtime_plugins__);early(__webpack_require__.federation,"bundlerRuntimeOptions",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions,"remotes",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>remotesLoadingChunkMapping);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>__module_federation_remote_infos__);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{const remotesLoadingIdToExternalAndNameMappingMapping={};for(let[moduleId,data]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){remotesLoadingIdToExternalAndNameMappingMapping[moduleId]=[data.shareScope,data.name,data.externalModuleId,data.remoteName]}return remotesLoadingIdToExternalAndNameMappingMapping});early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>__webpack_require__);merge(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{const idToRemoteMap={};for(let[id,remoteData]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){const info=__module_federation_remote_infos__[remoteData.remoteName];if(info)idToRemoteMap[id]=info}return idToRemoteMap});override(__webpack_require__,"S",__webpack_require__.federation.bundlerRuntime.S);if(__webpack_require__.federation.attachShareScopeMap){__webpack_require__.federation.attachShareScopeMap(__webpack_require__)}override(__webpack_require__.f,"remotes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.remotes({chunkId,promises,chunkMapping:remotesLoadingChunkMapping,idToExternalAndNameMapping:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:__webpack_require__}));override(__webpack_require__.f,"consumes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.consumes({chunkId,promises,chunkMapping:consumesLoadingChunkMapping,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping,installedModules:consumesLoadinginstalledModules,webpackRequire:__webpack_require__}));override(__webpack_require__,"I",(name,initScope)=>__webpack_require__.federation.bundlerRuntime.I({shareScopeName:name,initScope,initPromises:initializeSharingInitPromises,initTokens:initializeSharingInitTokens,webpackRequire:__webpack_require__}));override(__webpack_require__,"initContainer",(shareScope,initScope,remoteEntryInitOptions)=>__webpack_require__.federation.bundlerRuntime.initContainerEntry({shareScope,initScope,remoteEntryInitOptions,shareScopeKey:containerShareScope,webpackRequire:__webpack_require__}));override(__webpack_require__,"getContainer",(module,getScope)=>{var moduleMap=__webpack_require__.initializeExposesData.moduleMap;__webpack_require__.R=getScope;getScope=Object.prototype.hasOwnProperty.call(moduleMap,module)?moduleMap[module]():Promise.resolve().then(()=>{throw new Error('Module "'+module+'" does not exist in container.')});__webpack_require__.R=undefined;return getScope});__webpack_require__.federation.instance=__webpack_require__.federation.runtime.init(__webpack_require__.federation.initOptions);if((__webpack_require___consumesLoadingData2=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData2===void 0?void 0:__webpack_require___consumesLoadingData2.initialConsumes){__webpack_require__.federation.bundlerRuntime.installInitialConsumes({webpackRequire:__webpack_require__,installedModules:consumesLoadinginstalledModules,initialConsumes:__webpack_require__.consumesLoadingData.initialConsumes,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping})}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Compiler } from '
|
|
2
|
-
import type { InfrastructureLogging } from '../config';
|
|
1
|
+
import type { Compiler } from '../index.js';
|
|
2
|
+
import type { InfrastructureLogging } from '../config/index.js';
|
|
3
3
|
export interface NodeEnvironmentPluginOptions {
|
|
4
4
|
infrastructureLogging: InfrastructureLogging;
|
|
5
5
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler } from '../Compiler';
|
|
10
|
+
import type { Compiler } from '../Compiler.js';
|
|
11
11
|
export type NodeTemplatePluginOptions = {
|
|
12
12
|
asyncChunkLoading?: boolean;
|
|
13
13
|
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type Watchpack from '../../compiled/watchpack';
|
|
11
|
-
import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from '../util/fs';
|
|
11
|
+
import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from '../util/fs.js';
|
|
12
12
|
export default class NodeWatchFileSystem implements WatchFileSystem {
|
|
13
13
|
inputFileSystem: InputFileSystem;
|
|
14
14
|
watcherOptions: Watchpack.WatchOptions;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { LoggerConsole } from '../logging/createConsoleLogger';
|
|
10
|
+
import type { LoggerConsole } from '../logging/createConsoleLogger.js';
|
|
11
11
|
export default function ({ colors, appendOnly, stream, }: {
|
|
12
12
|
colors?: boolean;
|
|
13
13
|
appendOnly?: boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __webpack_modules__ = {}, __webpack_module_cache__ = {};
|
|
2
|
+
function __webpack_require__(moduleId) {
|
|
3
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
4
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
5
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
6
|
+
exports: {}
|
|
7
|
+
};
|
|
8
|
+
return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
|
|
9
|
+
}
|
|
10
|
+
__webpack_require__.m = __webpack_modules__, __webpack_require__.add = function(modules) {
|
|
11
|
+
Object.assign(__webpack_require__.m, modules);
|
|
12
|
+
}, __webpack_require__.n = (module)=>{
|
|
13
|
+
var getter = module && module.__esModule ? ()=>module.default : ()=>module;
|
|
14
|
+
return __webpack_require__.d(getter, {
|
|
15
|
+
a: getter
|
|
16
|
+
}), getter;
|
|
17
|
+
}, __webpack_require__.d = (exports, definition)=>{
|
|
18
|
+
for(var key in definition)__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key) && Object.defineProperty(exports, key, {
|
|
19
|
+
enumerable: !0,
|
|
20
|
+
get: definition[key]
|
|
21
|
+
});
|
|
22
|
+
}, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports)=>{
|
|
23
|
+
"u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
|
|
24
|
+
value: 'Module'
|
|
25
|
+
}), Object.defineProperty(exports, '__esModule', {
|
|
26
|
+
value: !0
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
export { __webpack_require__ };
|
package/dist/rspack.d.ts
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { Callback } from '@rspack/lite-tapable';
|
|
11
|
-
import { Compiler } from './Compiler';
|
|
12
|
-
import { type RspackOptions } from './config';
|
|
13
|
-
import { MultiCompiler, type MultiRspackOptions } from './MultiCompiler';
|
|
14
|
-
import MultiStats from './MultiStats';
|
|
15
|
-
import { Stats } from './Stats';
|
|
11
|
+
import { Compiler } from './Compiler.js';
|
|
12
|
+
import { type RspackOptions } from './config/index.js';
|
|
13
|
+
import { MultiCompiler, type MultiRspackOptions } from './MultiCompiler.js';
|
|
14
|
+
import MultiStats from './MultiStats.js';
|
|
15
|
+
import { Stats } from './Stats.js';
|
|
16
16
|
declare function createMultiCompiler(options: MultiRspackOptions): MultiCompiler;
|
|
17
17
|
declare function createCompiler(userOptions: RspackOptions): Compiler;
|
|
18
18
|
declare function rspack(options: MultiRspackOptions): MultiCompiler;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export = _exports;
|
|
1
|
+
export default function _default(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
-
import { RspackBuiltinPlugin } from '../builtin-plugin/base';
|
|
3
|
-
import type { Compiler } from '../Compiler';
|
|
2
|
+
import { RspackBuiltinPlugin } from '../builtin-plugin/base.js';
|
|
3
|
+
import type { Compiler } from '../Compiler.js';
|
|
4
4
|
export type ConsumeSharedPluginOptions = {
|
|
5
5
|
consumes: Consumes;
|
|
6
6
|
shareScope?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName, type RawProvideOptions } from '@rspack/binding';
|
|
2
|
-
import { RspackBuiltinPlugin } from '../builtin-plugin/base';
|
|
3
|
-
import type { Compiler } from '../Compiler';
|
|
2
|
+
import { RspackBuiltinPlugin } from '../builtin-plugin/base.js';
|
|
3
|
+
import type { Compiler } from '../Compiler.js';
|
|
4
4
|
export type ProvideSharedPluginOptions<Enhanced extends boolean = false> = {
|
|
5
5
|
provides: Provides<Enhanced>;
|
|
6
6
|
shareScope?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
-
import { RspackBuiltinPlugin } from '../builtin-plugin/base';
|
|
3
|
-
import type { Compiler } from '../Compiler';
|
|
2
|
+
import { RspackBuiltinPlugin } from '../builtin-plugin/base.js';
|
|
3
|
+
import type { Compiler } from '../Compiler.js';
|
|
4
4
|
export declare class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
|
5
5
|
private enhanced;
|
|
6
6
|
name: BuiltinPluginName;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type { Compiler } from '../Compiler';
|
|
10
|
+
import type { Compiler } from '../Compiler.js';
|
|
11
11
|
export declare class DefaultStatsPrinterPlugin {
|
|
12
12
|
apply(compiler: Compiler): void;
|
|
13
13
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type { JsStats, JsStatsCompilation, JsStatsError } from '@rspack/binding';
|
|
11
11
|
import { HookMap, SyncBailHook, SyncWaterfallHook } from '@rspack/lite-tapable';
|
|
12
|
-
import type { Compilation } from '../Compilation';
|
|
13
|
-
import { type GroupConfig } from '../util/smartGrouping';
|
|
12
|
+
import type { Compilation } from '../Compilation.js';
|
|
13
|
+
import { type GroupConfig } from '../util/smartGrouping.js';
|
|
14
14
|
export type KnownStatsFactoryContext = {
|
|
15
15
|
type: string;
|
|
16
16
|
makePathsRelative?: ((arg0: string) => string) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HookMap, SyncBailHook, SyncWaterfallHook } from '@rspack/lite-tapable';
|
|
2
|
-
import type { StatsAsset, StatsChunk, StatsChunkGroup, StatsCompilation, StatsModule, StatsModuleReason } from './statsFactoryUtils';
|
|
2
|
+
import type { StatsAsset, StatsChunk, StatsChunkGroup, StatsCompilation, StatsModule, StatsModuleReason } from './statsFactoryUtils.js';
|
|
3
3
|
type PrintedElement = {
|
|
4
4
|
element: string;
|
|
5
5
|
content: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type binding from '@rspack/binding';
|
|
2
2
|
import type { JsOriginRecord } from '@rspack/binding';
|
|
3
|
-
import type { Compilation } from '../Compilation';
|
|
4
|
-
import type { StatsOptions } from '../config';
|
|
5
|
-
import type { StatsFactory, StatsFactoryContext } from './StatsFactory';
|
|
3
|
+
import type { Compilation } from '../Compilation.js';
|
|
4
|
+
import type { StatsOptions } from '../config/index.js';
|
|
5
|
+
import type { StatsFactory, StatsFactoryContext } from './StatsFactory.js';
|
|
6
6
|
export type KnownStatsChunkGroup = {
|
|
7
7
|
name?: string;
|
|
8
8
|
chunks?: (string | number)[];
|
|
@@ -117,7 +117,6 @@ export type KnownStatsModule = {
|
|
|
117
117
|
failed?: boolean;
|
|
118
118
|
errors?: number;
|
|
119
119
|
warnings?: number;
|
|
120
|
-
profile?: StatsProfile;
|
|
121
120
|
reasons?: StatsModuleReason[];
|
|
122
121
|
usedExports?: boolean | string[] | null;
|
|
123
122
|
providedExports?: string[] | null;
|
|
@@ -127,7 +126,6 @@ export type KnownStatsModule = {
|
|
|
127
126
|
filteredModules?: number;
|
|
128
127
|
source?: string | Buffer;
|
|
129
128
|
};
|
|
130
|
-
export type StatsProfile = KnownStatsProfile & Record<string, any>;
|
|
131
129
|
export type KnownStatsProfile = {
|
|
132
130
|
total: number;
|
|
133
131
|
resolving: number;
|
|
@@ -297,7 +295,6 @@ export type SimpleExtractors = {
|
|
|
297
295
|
module: ExtractorsByOption<binding.JsStatsModule, StatsModule>;
|
|
298
296
|
module$visible: ExtractorsByOption<binding.JsStatsModule, StatsModule>;
|
|
299
297
|
moduleIssuer: ExtractorsByOption<binding.JsStatsModuleIssuer, StatsModuleIssuer>;
|
|
300
|
-
profile: ExtractorsByOption<binding.JsStatsModuleProfile, StatsProfile>;
|
|
301
298
|
moduleReason: ExtractorsByOption<binding.JsStatsModuleReason, StatsModuleReason>;
|
|
302
299
|
chunk: ExtractorsByOption<binding.JsStatsChunk, KnownStatsChunk>;
|
|
303
300
|
chunkOrigin: ExtractorsByOption<JsOriginRecord, StatsChunkOrigin>;
|
package/dist/taps/compiler.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from './types';
|
|
1
|
+
import type { CreatePartialRegisters } from './types.js';
|
|
2
2
|
export declare const createCompilerHooksRegisters: CreatePartialRegisters<`Compiler`>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from './types';
|
|
1
|
+
import type { CreatePartialRegisters } from './types.js';
|
|
2
2
|
export declare const createContextModuleFactoryHooksRegisters: CreatePartialRegisters<`ContextModuleFactory`>;
|
package/dist/taps/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createHtmlPluginHooksRegisters } from '../builtin-plugin/html-plugin/taps';
|
|
2
|
-
export { createCompilationHooksRegisters } from './compilation';
|
|
3
|
-
export { createCompilerHooksRegisters } from './compiler';
|
|
4
|
-
export { createContextModuleFactoryHooksRegisters } from './contextModuleFactory';
|
|
5
|
-
export { createJavaScriptModulesHooksRegisters } from './javascriptModules';
|
|
6
|
-
export { createNormalModuleFactoryHooksRegisters } from './normalModuleFactory';
|
|
1
|
+
export { createHtmlPluginHooksRegisters } from '../builtin-plugin/html-plugin/taps.js';
|
|
2
|
+
export { createCompilationHooksRegisters } from './compilation.js';
|
|
3
|
+
export { createCompilerHooksRegisters } from './compiler.js';
|
|
4
|
+
export { createContextModuleFactoryHooksRegisters } from './contextModuleFactory.js';
|
|
5
|
+
export { createJavaScriptModulesHooksRegisters } from './javascriptModules.js';
|
|
6
|
+
export { createNormalModuleFactoryHooksRegisters } from './normalModuleFactory.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from './types';
|
|
1
|
+
import type { CreatePartialRegisters } from './types.js';
|
|
2
2
|
export declare const createJavaScriptModulesHooksRegisters: CreatePartialRegisters<`JavascriptModules`>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePartialRegisters } from './types';
|
|
1
|
+
import type { CreatePartialRegisters } from './types.js';
|
|
2
2
|
export declare const createNormalModuleFactoryHooksRegisters: CreatePartialRegisters<`NormalModuleFactory`>;
|
package/dist/taps/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type binding from '@rspack/binding';
|
|
2
2
|
import type * as liteTapable from '@rspack/lite-tapable';
|
|
3
|
-
import type { Compiler } from '../Compiler';
|
|
3
|
+
import type { Compiler } from '../Compiler.js';
|
|
4
4
|
type CreateHookMapRegisterTaps = <H extends liteTapable.Hook<any, any, any>>(registerKind: binding.RegisterJsTapKind, getHookMap: () => liteTapable.HookMap<H>, createTap: (queried: liteTapable.QueriedHookMap<H>) => any) => (stages: number[]) => binding.JsTap[];
|
|
5
5
|
type CreateHookRegisterTaps = <T, R, A>(registerKind: binding.RegisterJsTapKind, getHook: () => liteTapable.Hook<T, R, A>, createTap: (queried: liteTapable.QueriedHook<T, R, A>) => any) => (stages: number[]) => binding.JsTap[];
|
|
6
6
|
type RegisterTapKeys<T, L extends string> = T extends keyof binding.RegisterJsTaps ? (T extends L ? T : never) : never;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import Hash from './hash';
|
|
10
|
+
import Hash from './hash/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Creates a hash by name or function
|
|
13
13
|
* @param algorithm the algorithm name or a constructor creating a hash
|
package/dist/util/fs.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { Abortable } from 'node:events';
|
|
11
|
-
import type { WatchOptions } from '../config';
|
|
11
|
+
import type { WatchOptions } from '../config/index.js';
|
|
12
12
|
export interface Watcher {
|
|
13
13
|
close(): void;
|
|
14
14
|
pause(): void;
|
package/dist/util/hash/md4.d.ts
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
declare const _default: () => import("./wasm-hash").WasmHash;
|
|
10
|
+
declare const _default: () => import("./wasm-hash.js").WasmHash;
|
|
11
11
|
export default _default;
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
declare const _default: () => import("./wasm-hash").WasmHash;
|
|
10
|
+
declare const _default: () => import("./wasm-hash.js").WasmHash;
|
|
11
11
|
export default _default;
|
package/dist/util/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LoaderObject } from '../loader-runner';
|
|
1
|
+
import type { LoaderObject } from '../loader-runner/index.js';
|
|
2
2
|
export declare function isNil(value: unknown): value is null | undefined;
|
|
3
3
|
export declare const toBuffer: (bufLike: string | Buffer | Uint8Array) => Buffer;
|
|
4
4
|
export declare const toObject: (input: string | Buffer | object) => object;
|