@rspack/core 1.0.12 → 1.0.14
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/Compiler.d.ts +0 -1
- package/dist/FileSystem.d.ts +0 -1
- package/dist/NormalModule.d.ts +2 -7
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/builtin-plugin/APIPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DataUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DefinePlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FileUriPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +15 -9
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProvidePlugin.d.ts +2 -2
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimePlugin.d.ts +2 -2
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +4 -4
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +2 -2
- package/dist/builtin-plugin/css-extract/loader.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +1 -5
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +2 -2
- package/dist/config/adapterRuleUse.d.ts +0 -1
- package/dist/config/types.d.ts +809 -1
- package/dist/config/zod.d.ts +261 -3709
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +2 -2
- package/dist/exports.d.ts +2 -2
- package/dist/index.js +51 -20
- package/dist/lib/HookWebpackError.d.ts +1 -1
- package/dist/lib/WebpackError.d.ts +0 -1
- package/dist/node/nodeConsole.d.ts +0 -1
- package/dist/stats/statsFactoryUtils.d.ts +1 -2
- package/dist/util/fs.d.ts +0 -3
- package/dist/util/hash/BatchedHash.d.ts +0 -1
- package/dist/util/hash/index.d.ts +0 -1
- package/dist/util/hash/wasm-hash.d.ts +0 -1
- package/dist/util/identifier.d.ts +8 -8
- package/dist/util/index.d.ts +0 -1
- package/dist/util/memoize.d.ts +1 -1
- package/dist/util/webpack.d.ts +1 -1
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@ export declare const ModuleFederationRuntimePlugin: {
|
|
|
4
4
|
name: BuiltinPluginName;
|
|
5
5
|
_args: [];
|
|
6
6
|
affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
7
|
-
raw(compiler: import("
|
|
8
|
-
apply(compiler: import("
|
|
7
|
+
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
8
|
+
apply(compiler: import("..").Compiler): void;
|
|
9
9
|
};
|
|
10
10
|
};
|
package/dist/exports.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { RspackOptionsApply } from "./rspackOptionsApply";
|
|
|
10
10
|
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
11
11
|
export type { Chunk } from "./Chunk";
|
|
12
12
|
export type { ChunkGroup } from "./ChunkGroup";
|
|
13
|
-
export type { Module } from "./Module";
|
|
13
|
+
export type { Module, ResolveData } from "./Module";
|
|
14
14
|
export { MultiStats } from "./MultiStats";
|
|
15
15
|
export { NormalModule } from "./NormalModule";
|
|
16
16
|
export type { NormalModuleFactory } from "./NormalModuleFactory";
|
|
@@ -37,7 +37,7 @@ export type * from "./config";
|
|
|
37
37
|
import { ValidationError } from "./util/validate";
|
|
38
38
|
export { ValidationError };
|
|
39
39
|
export declare const util: {
|
|
40
|
-
createHash: (algorithm:
|
|
40
|
+
createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
|
|
41
41
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
|
42
42
|
};
|
|
43
43
|
export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
|
package/dist/index.js
CHANGED
|
@@ -9121,7 +9121,7 @@ var RuntimeGlobals = {
|
|
|
9121
9121
|
*/
|
|
9122
9122
|
compatGetDefaultExport: "__webpack_require__.n",
|
|
9123
9123
|
/**
|
|
9124
|
-
*
|
|
9124
|
+
* ES modules decorator
|
|
9125
9125
|
*/
|
|
9126
9126
|
harmonyModuleDecorator: "__webpack_require__.hmd",
|
|
9127
9127
|
/**
|
|
@@ -11587,9 +11587,10 @@ function getRawIncremental(incremental2) {
|
|
|
11587
11587
|
emitAssets: incremental2.emitAssets,
|
|
11588
11588
|
inferAsyncModules: incremental2.inferAsyncModules,
|
|
11589
11589
|
providedExports: incremental2.providedExports,
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11590
|
+
dependenciesDiagnostics: incremental2.dependenciesDiagnostics,
|
|
11591
|
+
modulesHashes: incremental2.modulesHashes,
|
|
11592
|
+
modulesCodegen: incremental2.modulesCodegen,
|
|
11593
|
+
modulesRuntimeRequirements: incremental2.modulesRuntimeRequirements
|
|
11593
11594
|
};
|
|
11594
11595
|
}
|
|
11595
11596
|
function getRawRspackFutureOptions(future) {
|
|
@@ -12796,9 +12797,10 @@ var applyExperimentsDefaults = (experiments3) => {
|
|
|
12796
12797
|
D(experiments3.incremental, "emitAssets", true);
|
|
12797
12798
|
D(experiments3.incremental, "inferAsyncModules", false);
|
|
12798
12799
|
D(experiments3.incremental, "providedExports", false);
|
|
12799
|
-
D(experiments3.incremental, "
|
|
12800
|
-
D(experiments3.incremental, "
|
|
12801
|
-
D(experiments3.incremental, "
|
|
12800
|
+
D(experiments3.incremental, "dependenciesDiagnostics", false);
|
|
12801
|
+
D(experiments3.incremental, "modulesHashes", false);
|
|
12802
|
+
D(experiments3.incremental, "modulesCodegen", false);
|
|
12803
|
+
D(experiments3.incremental, "modulesRuntimeRequirements", false);
|
|
12802
12804
|
}
|
|
12803
12805
|
D(experiments3, "rspackFuture", {});
|
|
12804
12806
|
};
|
|
@@ -13746,7 +13748,16 @@ var getNormalizedRspackOptions = (config2) => {
|
|
|
13746
13748
|
),
|
|
13747
13749
|
incremental: optionalNestedConfig(
|
|
13748
13750
|
experiments3.incremental,
|
|
13749
|
-
(options) => options === true ? {
|
|
13751
|
+
(options) => options === true ? {
|
|
13752
|
+
make: true,
|
|
13753
|
+
emitAssets: true,
|
|
13754
|
+
dependenciesDiagnostics: true,
|
|
13755
|
+
inferAsyncModules: true,
|
|
13756
|
+
providedExports: true,
|
|
13757
|
+
modulesHashes: true,
|
|
13758
|
+
modulesCodegen: true,
|
|
13759
|
+
modulesRuntimeRequirements: true
|
|
13760
|
+
} : options
|
|
13750
13761
|
)
|
|
13751
13762
|
})),
|
|
13752
13763
|
watch: config2.watch,
|
|
@@ -14126,7 +14137,9 @@ var ruleSetLoaderWithOptions = import_zod.z.strictObject({
|
|
|
14126
14137
|
loader: ruleSetLoader,
|
|
14127
14138
|
options: ruleSetLoaderOptions.optional()
|
|
14128
14139
|
});
|
|
14129
|
-
var ruleSetUseItem = ruleSetLoader.or(
|
|
14140
|
+
var ruleSetUseItem = ruleSetLoader.or(
|
|
14141
|
+
ruleSetLoaderWithOptions
|
|
14142
|
+
);
|
|
14130
14143
|
var ruleSetUse = ruleSetUseItem.or(ruleSetUseItem.array()).or(
|
|
14131
14144
|
import_zod.z.function().args(import_zod.z.custom()).returns(ruleSetUseItem.array())
|
|
14132
14145
|
);
|
|
@@ -14159,7 +14172,9 @@ var ruleSetRule = baseRuleSetRule.extend({
|
|
|
14159
14172
|
oneOf: import_zod.z.lazy(() => ruleSetRule.array()).optional(),
|
|
14160
14173
|
rules: import_zod.z.lazy(() => ruleSetRule.array()).optional()
|
|
14161
14174
|
});
|
|
14162
|
-
var ruleSetRules = import_zod.z.array(
|
|
14175
|
+
var ruleSetRules = import_zod.z.array(
|
|
14176
|
+
import_zod.z.literal("...").or(ruleSetRule).or(falsy)
|
|
14177
|
+
);
|
|
14163
14178
|
var assetParserDataUrlOptions = import_zod.z.strictObject({
|
|
14164
14179
|
maxSize: import_zod.z.number().optional()
|
|
14165
14180
|
});
|
|
@@ -14226,7 +14241,9 @@ var parserOptionsByModuleTypeKnown = import_zod.z.strictObject({
|
|
|
14226
14241
|
"javascript/dynamic": javascriptParserOptions.optional(),
|
|
14227
14242
|
"javascript/esm": javascriptParserOptions.optional()
|
|
14228
14243
|
});
|
|
14229
|
-
var parserOptionsByModuleTypeUnknown = import_zod.z.record(
|
|
14244
|
+
var parserOptionsByModuleTypeUnknown = import_zod.z.record(
|
|
14245
|
+
import_zod.z.record(import_zod.z.any())
|
|
14246
|
+
);
|
|
14230
14247
|
var parserOptionsByModuleType = parserOptionsByModuleTypeKnown.or(
|
|
14231
14248
|
parserOptionsByModuleTypeUnknown
|
|
14232
14249
|
);
|
|
@@ -14288,12 +14305,16 @@ var generatorOptionsByModuleTypeKnown = import_zod.z.strictObject({
|
|
|
14288
14305
|
"css/auto": cssAutoGeneratorOptions.optional(),
|
|
14289
14306
|
"css/module": cssModuleGeneratorOptions.optional()
|
|
14290
14307
|
});
|
|
14291
|
-
var generatorOptionsByModuleTypeUnknown = import_zod.z.record(
|
|
14308
|
+
var generatorOptionsByModuleTypeUnknown = import_zod.z.record(
|
|
14309
|
+
import_zod.z.record(import_zod.z.any())
|
|
14310
|
+
);
|
|
14292
14311
|
var generatorOptionsByModuleType = generatorOptionsByModuleTypeKnown.or(
|
|
14293
14312
|
generatorOptionsByModuleTypeUnknown
|
|
14294
14313
|
);
|
|
14295
14314
|
var noParseOptionSingle = import_zod.z.string().or(import_zod.z.instanceof(RegExp)).or(import_zod.z.function().args(import_zod.z.string()).returns(import_zod.z.boolean()));
|
|
14296
|
-
var noParseOption = noParseOptionSingle.or(
|
|
14315
|
+
var noParseOption = noParseOptionSingle.or(
|
|
14316
|
+
import_zod.z.array(noParseOptionSingle)
|
|
14317
|
+
);
|
|
14297
14318
|
var moduleOptions = import_zod.z.strictObject({
|
|
14298
14319
|
defaultRules: ruleSetRules.optional(),
|
|
14299
14320
|
rules: ruleSetRules.optional(),
|
|
@@ -14370,7 +14391,11 @@ var allowTarget = import_zod.z.union([
|
|
|
14370
14391
|
(value) => typeof value === "string" && /^browserslist:(.+)$/.test(value)
|
|
14371
14392
|
)
|
|
14372
14393
|
]);
|
|
14373
|
-
var target = import_zod.z.union([
|
|
14394
|
+
var target = import_zod.z.union([
|
|
14395
|
+
import_zod.z.literal(false),
|
|
14396
|
+
allowTarget,
|
|
14397
|
+
allowTarget.array()
|
|
14398
|
+
]);
|
|
14374
14399
|
var externalsType = import_zod.z.enum([
|
|
14375
14400
|
"var",
|
|
14376
14401
|
"module",
|
|
@@ -14432,7 +14457,9 @@ var externalsPresets = import_zod.z.strictObject({
|
|
|
14432
14457
|
electronRenderer: import_zod.z.boolean().optional(),
|
|
14433
14458
|
nwjs: import_zod.z.boolean().optional()
|
|
14434
14459
|
});
|
|
14435
|
-
var filterItemTypes = import_zod.z.instanceof(RegExp).or(import_zod.z.string()).or(
|
|
14460
|
+
var filterItemTypes = import_zod.z.instanceof(RegExp).or(import_zod.z.string()).or(
|
|
14461
|
+
import_zod.z.function().args(import_zod.z.string()).returns(import_zod.z.boolean())
|
|
14462
|
+
);
|
|
14436
14463
|
var filterTypes = filterItemTypes.array().or(filterItemTypes);
|
|
14437
14464
|
var infrastructureLogging = import_zod.z.strictObject({
|
|
14438
14465
|
appendOnly: import_zod.z.boolean().optional(),
|
|
@@ -14478,7 +14505,9 @@ var nodeOptions = import_zod.z.strictObject({
|
|
|
14478
14505
|
});
|
|
14479
14506
|
var node = import_zod.z.literal(false).or(nodeOptions);
|
|
14480
14507
|
var loader = import_zod.z.record(import_zod.z.string(), import_zod.z.any());
|
|
14481
|
-
var snapshotOptions = import_zod.z.strictObject(
|
|
14508
|
+
var snapshotOptions = import_zod.z.strictObject(
|
|
14509
|
+
{}
|
|
14510
|
+
);
|
|
14482
14511
|
var cacheOptions = import_zod.z.boolean();
|
|
14483
14512
|
var statsPresets = import_zod.z.enum([
|
|
14484
14513
|
"normal",
|
|
@@ -14690,9 +14719,10 @@ var incremental = import_zod.z.strictObject({
|
|
|
14690
14719
|
emitAssets: import_zod.z.boolean().optional(),
|
|
14691
14720
|
inferAsyncModules: import_zod.z.boolean().optional(),
|
|
14692
14721
|
providedExports: import_zod.z.boolean().optional(),
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
|
|
14722
|
+
dependenciesDiagnostics: import_zod.z.boolean().optional(),
|
|
14723
|
+
modulesHashes: import_zod.z.boolean().optional(),
|
|
14724
|
+
modulesCodegen: import_zod.z.boolean().optional(),
|
|
14725
|
+
modulesRuntimeRequirements: import_zod.z.boolean().optional()
|
|
14696
14726
|
});
|
|
14697
14727
|
var experiments = import_zod.z.strictObject({
|
|
14698
14728
|
lazyCompilation: import_zod.z.boolean().optional().or(lazyCompilationOptions),
|
|
@@ -15462,7 +15492,7 @@ HtmlRspackPlugin.getCompilationOptions = (compilation) => {
|
|
|
15462
15492
|
}
|
|
15463
15493
|
return compilationOptionsMap.get(compilation);
|
|
15464
15494
|
};
|
|
15465
|
-
HtmlRspackPlugin.getCompilationHooks = (compilation) => {
|
|
15495
|
+
HtmlRspackPlugin.getHooks = HtmlRspackPlugin.getCompilationHooks = (compilation) => {
|
|
15466
15496
|
if (!(compilation instanceof Compilation)) {
|
|
15467
15497
|
throw new TypeError(
|
|
15468
15498
|
"The 'compilation' argument must be an instance of Compilation"
|
|
@@ -15486,6 +15516,7 @@ HtmlRspackPlugin.getCompilationHooks = (compilation) => {
|
|
|
15486
15516
|
}
|
|
15487
15517
|
return hooks;
|
|
15488
15518
|
};
|
|
15519
|
+
HtmlRspackPlugin.version = 5;
|
|
15489
15520
|
|
|
15490
15521
|
// src/builtin-plugin/HttpExternalsRspackPlugin.ts
|
|
15491
15522
|
var import_binding39 = require("@rspack/binding");
|
|
@@ -31,7 +31,7 @@ export declare const makeWebpackError: (error: Error, hook: string) => WebpackEr
|
|
|
31
31
|
* @param hook name of hook
|
|
32
32
|
* @returns generic callback
|
|
33
33
|
*/
|
|
34
|
-
export declare const makeWebpackErrorCallback: <T>(callback: (error?: WebpackError | null, result?: T
|
|
34
|
+
export declare const makeWebpackErrorCallback: <T>(callback: (error?: WebpackError | null, result?: T) => void, hook: string) => Callback<Error, T>;
|
|
35
35
|
/**
|
|
36
36
|
* @param fn function which will be wrapping in try catch
|
|
37
37
|
* @param hook name of hook
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
/// <reference types="node" />
|
|
11
10
|
import { inspect } from "node:util";
|
|
12
11
|
import type { Chunk } from "../Chunk";
|
|
13
12
|
import type { Module } from "../Module";
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
/// <reference types="node" />
|
|
11
10
|
import type { LoggerConsole } from "../logging/createConsoleLogger";
|
|
12
11
|
export default function ({ colors, appendOnly, stream }: {
|
|
13
12
|
colors?: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type * as binding from "@rspack/binding";
|
|
3
2
|
import type { JsOriginRecord } from "@rspack/binding";
|
|
4
3
|
import type { Compilation } from "../Compilation";
|
|
@@ -273,7 +272,7 @@ export declare const spaceLimited: (itemsAndGroups: ItemChildren, max: number, f
|
|
|
273
272
|
filteredChildren: any;
|
|
274
273
|
};
|
|
275
274
|
export declare const countWithChildren: (compilation: Compilation, getItems: (compilation: Compilation, key: string) => any[]) => number;
|
|
276
|
-
export declare const sortByField: (field: string) => (a1: Object, a2: Object) => number;
|
|
275
|
+
export declare const sortByField: (field: string) => ((a1: Object, a2: Object) => number);
|
|
277
276
|
export declare const assetGroup: (children: StatsAsset[]) => {
|
|
278
277
|
size: number;
|
|
279
278
|
};
|
package/dist/util/fs.d.ts
CHANGED
|
@@ -7,9 +7,6 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
/// <reference types="node" />
|
|
11
|
-
/// <reference types="node" />
|
|
12
|
-
/// <reference types="node" />
|
|
13
10
|
import type { Abortable } from "node:events";
|
|
14
11
|
import type { WatchOptions } from "../config";
|
|
15
12
|
export interface Watcher {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
/// <reference types="node" />
|
|
11
10
|
export declare const MAX_SHORT_STRING: number;
|
|
12
11
|
type Exports = WebAssembly.Instance["exports"] & {
|
|
13
12
|
init: () => void;
|
|
@@ -11,13 +11,13 @@ export declare const makePathsRelative: {
|
|
|
11
11
|
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
12
12
|
* @returns {function(string, string): string} cached function
|
|
13
13
|
*/
|
|
14
|
-
bindCache(associatedObjectForCache: object | undefined): (arg0: string, arg1: string) => string;
|
|
14
|
+
bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
|
|
15
15
|
/**
|
|
16
16
|
* @param {string} context context used to create relative path
|
|
17
17
|
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
18
18
|
* @returns {function(string): string} cached function
|
|
19
19
|
*/
|
|
20
|
-
bindContextCache(context: string, associatedObjectForCache: object | undefined): (arg0: string) => string;
|
|
20
|
+
bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
|
|
21
21
|
};
|
|
22
22
|
export declare const makePathsAbsolute: {
|
|
23
23
|
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
|
|
@@ -25,13 +25,13 @@ export declare const makePathsAbsolute: {
|
|
|
25
25
|
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
26
26
|
* @returns {function(string, string): string} cached function
|
|
27
27
|
*/
|
|
28
|
-
bindCache(associatedObjectForCache: object | undefined): (arg0: string, arg1: string) => string;
|
|
28
|
+
bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
|
|
29
29
|
/**
|
|
30
30
|
* @param {string} context context used to create relative path
|
|
31
31
|
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
32
32
|
* @returns {function(string): string} cached function
|
|
33
33
|
*/
|
|
34
|
-
bindContextCache(context: string, associatedObjectForCache: object | undefined): (arg0: string) => string;
|
|
34
|
+
bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
|
|
35
35
|
};
|
|
36
36
|
export declare const contextify: {
|
|
37
37
|
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
|
|
@@ -39,13 +39,13 @@ export declare const contextify: {
|
|
|
39
39
|
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
40
40
|
* @returns {function(string, string): string} cached function
|
|
41
41
|
*/
|
|
42
|
-
bindCache(associatedObjectForCache: object | undefined): (arg0: string, arg1: string) => string;
|
|
42
|
+
bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
|
|
43
43
|
/**
|
|
44
44
|
* @param {string} context context used to create relative path
|
|
45
45
|
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
46
46
|
* @returns {function(string): string} cached function
|
|
47
47
|
*/
|
|
48
|
-
bindContextCache(context: string, associatedObjectForCache: object | undefined): (arg0: string) => string;
|
|
48
|
+
bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
|
|
49
49
|
};
|
|
50
50
|
export declare const absolutify: {
|
|
51
51
|
(context: string, identifier: string, associatedObjectForCache: object | undefined): string;
|
|
@@ -53,13 +53,13 @@ export declare const absolutify: {
|
|
|
53
53
|
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
54
54
|
* @returns {function(string, string): string} cached function
|
|
55
55
|
*/
|
|
56
|
-
bindCache(associatedObjectForCache: object | undefined): (arg0: string, arg1: string) => string;
|
|
56
|
+
bindCache(associatedObjectForCache: object | undefined): ((arg0: string, arg1: string) => string);
|
|
57
57
|
/**
|
|
58
58
|
* @param {string} context context used to create relative path
|
|
59
59
|
* @param {Object=} associatedObjectForCache an object to which the cache will be attached
|
|
60
60
|
* @returns {function(string): string} cached function
|
|
61
61
|
*/
|
|
62
|
-
bindContextCache(context: string, associatedObjectForCache: object | undefined): (arg0: string) => string;
|
|
62
|
+
bindContextCache(context: string, associatedObjectForCache: object | undefined): ((arg0: string) => string);
|
|
63
63
|
};
|
|
64
64
|
export declare const parseResource: {
|
|
65
65
|
(str: string, associatedObjectForCache?: object): ParsedResource;
|
package/dist/util/index.d.ts
CHANGED
package/dist/util/memoize.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const memoize: <T>(fn: () => T) => () => T;
|
|
1
|
+
export declare const memoize: <T>(fn: () => T) => (() => T);
|
|
2
2
|
export declare const memoizeFn: <const T extends readonly unknown[], const P>(fn: () => (...args: T) => P) => (...args: T) => P;
|
|
3
3
|
export declare function memoizeValue<T>(fn: () => T): T;
|
package/dist/util/webpack.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
readonly createHash: (algorithm:
|
|
2
|
+
readonly createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./hash").default)) => import("./hash").default;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"prebundle": "^1.1.0",
|
|
51
51
|
"tsc-alias": "^1.8.8",
|
|
52
52
|
"tsup": "^8.3.0",
|
|
53
|
-
"typescript": "5.
|
|
53
|
+
"typescript": "^5.6.3",
|
|
54
54
|
"watchpack": "^2.4.0",
|
|
55
55
|
"webpack-dev-server": "5.0.4",
|
|
56
56
|
"webpack-sources": "3.2.3",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@module-federation/runtime-tools": "0.5.1",
|
|
62
62
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
63
|
"caniuse-lite": "^1.0.30001616",
|
|
64
|
-
"@rspack/binding": "1.0.
|
|
64
|
+
"@rspack/binding": "1.0.14"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@swc/helpers": ">=0.5.1"
|