@rspack-debug/core 2.0.0-beta.1 → 2.0.0-beta.3
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/compiled/@rspack/lite-tapable/dist/index.d.ts +175 -0
- package/compiled/@rspack/lite-tapable/license +22 -0
- package/compiled/@rspack/lite-tapable/package.json +1 -0
- package/compiled/webpack-sources/index.js +188 -131
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +6 -3
- package/dist/Compilation.d.ts +1 -1
- package/dist/Compiler.d.ts +1 -1
- package/dist/ContextModuleFactory.d.ts +1 -1
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/MultiWatching.d.ts +1 -1
- package/dist/NormalModule.d.ts +1 -2
- package/dist/NormalModuleFactory.d.ts +1 -1
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/Watching.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +5 -4
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
- package/dist/config/types.d.ts +6 -0
- package/dist/exports.d.ts +1 -1
- package/dist/index.js +28 -67
- package/dist/lib/Cache.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +1 -1
- package/dist/stats/StatsPrinter.d.ts +1 -1
- package/dist/taps/types.d.ts +1 -1
- package/package.json +9 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"webpack-sources","author":"Tobias Koppers @sokra","version":"3.3.
|
|
1
|
+
{"name":"webpack-sources","author":"Tobias Koppers @sokra","version":"3.3.4","license":"MIT","types":"types.d.ts","type":"commonjs"}
|
|
@@ -371,7 +371,7 @@ declare class SourceMapSource extends Source {
|
|
|
371
371
|
name: string,
|
|
372
372
|
sourceMap?: string | RawSourceMap | Buffer,
|
|
373
373
|
originalSource?: string | Buffer,
|
|
374
|
-
innerSourceMap?: string | RawSourceMap | Buffer,
|
|
374
|
+
innerSourceMap?: null | string | RawSourceMap | Buffer,
|
|
375
375
|
removeOriginalSource?: boolean,
|
|
376
376
|
);
|
|
377
377
|
getArgsAsBuffers(): [
|
|
@@ -407,14 +407,15 @@ declare interface StreamChunksOptions {
|
|
|
407
407
|
finalSource?: boolean;
|
|
408
408
|
columns?: boolean;
|
|
409
409
|
}
|
|
410
|
+
|
|
410
411
|
export namespace util {
|
|
411
412
|
export namespace stringBufferUtils {
|
|
412
413
|
export let disableDualStringBufferCaching: () => void;
|
|
413
414
|
export let enableDualStringBufferCaching: () => void;
|
|
414
|
-
export let internString: (str: string) => string;
|
|
415
|
-
export let isDualStringBufferCachingEnabled: () => boolean;
|
|
416
415
|
export let enterStringInterningRange: () => void;
|
|
417
416
|
export let exitStringInterningRange: () => void;
|
|
417
|
+
export let internString: (str: string) => string;
|
|
418
|
+
export let isDualStringBufferCachingEnabled: () => boolean;
|
|
418
419
|
}
|
|
419
420
|
}
|
|
420
421
|
export type OnChunk = (
|
|
@@ -456,3 +457,5 @@ declare interface StreamChunksOptions {
|
|
|
456
457
|
StreamChunksOptions,
|
|
457
458
|
};
|
|
458
459
|
|
|
460
|
+
|
|
461
|
+
|
package/dist/Compilation.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import type { AssetInfo, ChunkGroup, Dependency, ExternalObject, JsCompilation } from '@rspack/binding';
|
|
11
11
|
import binding from '@rspack/binding';
|
|
12
12
|
export type { AssetInfo } from '@rspack/binding';
|
|
13
|
-
import * as liteTapable from '
|
|
13
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
14
14
|
import type { Source } from '../compiled/webpack-sources';
|
|
15
15
|
import type { EntryOptions, EntryPlugin } from './builtin-plugin/index.js';
|
|
16
16
|
import type { Chunk } from './Chunk.js';
|
package/dist/Compiler.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type binding from '@rspack/binding';
|
|
11
|
-
import * as liteTapable from '
|
|
11
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
12
12
|
import type Watchpack from '../compiled/watchpack';
|
|
13
13
|
import type { Source } from '../compiled/webpack-sources';
|
|
14
14
|
import type { Chunk } from './Chunk.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as liteTapable from '
|
|
1
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
2
2
|
import type { ContextModuleFactoryAfterResolveResult, ContextModuleFactoryBeforeResolveResult } from './Module.js';
|
|
3
3
|
export declare class ContextModuleFactory {
|
|
4
4
|
hooks: {
|
package/dist/MultiCompiler.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 * as liteTapable from '
|
|
10
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
11
11
|
import type { CompilationParams, Compiler, CompilerHooks, RspackOptions } from './index.js';
|
|
12
12
|
import type { WatchOptions } from './config/index.js';
|
|
13
13
|
import MultiStats from './MultiStats.js';
|
package/dist/MultiWatching.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 { Callback } from '
|
|
10
|
+
import type { Callback } from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
11
11
|
import type { MultiCompiler } from './MultiCompiler.js';
|
|
12
12
|
import type { Watching } from './Watching.js';
|
|
13
13
|
declare class MultiWatching {
|
package/dist/NormalModule.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import * as liteTapable from '
|
|
1
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
2
2
|
import type { Compilation } from './Compilation.js';
|
|
3
3
|
import type { LoaderContext } from './config/index.js';
|
|
4
4
|
import type { Module } from './Module.js';
|
|
5
5
|
export interface NormalModuleCompilationHooks {
|
|
6
6
|
loader: liteTapable.SyncHook<[LoaderContext, Module]>;
|
|
7
|
-
readResourceForScheme: any;
|
|
8
7
|
readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
|
|
9
8
|
}
|
|
10
9
|
declare module '@rspack/binding' {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type binding from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '
|
|
2
|
+
import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
3
3
|
import type { ResolveData, ResourceDataWithData } from './Module.js';
|
|
4
4
|
import type { ResolveOptionsWithDependencyType, ResolverFactory } from './ResolverFactory.js';
|
|
5
5
|
export type NormalModuleCreateData = binding.JsNormalModuleFactoryCreateModuleArgs & {
|
package/dist/RuntimeGlobals.d.ts
CHANGED
|
@@ -352,5 +352,5 @@ export declare enum RuntimeVariable {
|
|
|
352
352
|
}
|
|
353
353
|
export declare function renderRuntimeVariables(variable: RuntimeVariable, _compilerOptions?: RspackOptionsNormalized): string;
|
|
354
354
|
export declare function createCompilerRuntimeGlobals(compilerOptions?: RspackOptionsNormalized): Record<keyof typeof RuntimeGlobals, string>;
|
|
355
|
-
declare const DefaultRuntimeGlobals: Record<"publicPath" | "chunkName" | "moduleId" | "module" | "
|
|
355
|
+
declare const DefaultRuntimeGlobals: Record<"publicPath" | "chunkName" | "moduleId" | "module" | "exports" | "require" | "global" | "system" | "requireScope" | "thisAsExports" | "returnExportsFromRuntime" | "moduleLoaded" | "entryModuleId" | "moduleCache" | "moduleFactories" | "moduleFactoriesAddOnly" | "ensureChunk" | "ensureChunkHandlers" | "ensureChunkIncludeEntries" | "prefetchChunk" | "prefetchChunkHandlers" | "preloadChunk" | "preloadChunkHandlers" | "definePropertyGetters" | "makeNamespaceObject" | "createFakeNamespaceObject" | "compatGetDefaultExport" | "harmonyModuleDecorator" | "nodeModuleDecorator" | "getFullHash" | "wasmInstances" | "instantiateWasm" | "uncaughtErrorHandler" | "scriptNonce" | "loadScript" | "createScript" | "createScriptUrl" | "getTrustedTypesPolicy" | "hasFetchPriority" | "runtimeId" | "getChunkScriptFilename" | "getChunkCssFilename" | "rspackVersion" | "hasCssModules" | "rspackUniqueId" | "getChunkUpdateScriptFilename" | "getChunkUpdateCssFilename" | "startup" | "startupNoDefault" | "startupOnlyAfter" | "startupOnlyBefore" | "chunkCallback" | "startupEntrypoint" | "startupChunkDependencies" | "onChunksLoaded" | "externalInstallChunk" | "interceptModuleExecution" | "shareScopeMap" | "initializeSharing" | "currentRemoteGetScope" | "getUpdateManifestFilename" | "hmrDownloadManifest" | "hmrDownloadUpdateHandlers" | "hmrModuleData" | "hmrInvalidateModuleHandlers" | "hmrRuntimeStatePrefix" | "amdDefine" | "amdOptions" | "hasOwnProperty" | "systemContext" | "baseURI" | "relativeUrl" | "asyncModule" | "asyncModuleExportSymbol" | "makeDeferredNamespaceObject" | "makeDeferredNamespaceObjectSymbol", string>;
|
|
356
356
|
export { DefaultRuntimeGlobals as RuntimeGlobals };
|
package/dist/Watching.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 { Callback } from '
|
|
10
|
+
import type { Callback } from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
11
11
|
import type { Compiler } from './index.js';
|
|
12
12
|
import { Stats } from './index.js';
|
|
13
13
|
import type { WatchOptions } from './config/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '
|
|
2
|
+
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
3
3
|
import type { Chunk } from '../Chunk.js';
|
|
4
4
|
import { type Compilation } from '../Compilation.js';
|
|
5
5
|
import type Hash from '../util/hash/index.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { type RawProgressPluginOptions } from '@rspack/binding';
|
|
2
|
-
export type
|
|
1
|
+
import { type RawProgressPluginHandlerInfo, type RawProgressPluginOptions } from '@rspack/binding';
|
|
2
|
+
export type ProgressPluginOptions = Partial<Omit<RawProgressPluginOptions, 'handler'>> | ((percentage: number, msg: string, info: RawProgressPluginHandlerInfo) => void) | undefined;
|
|
3
|
+
export type ProgressPluginHandlerInfo = RawProgressPluginHandlerInfo;
|
|
3
4
|
export declare const ProgressPlugin: {
|
|
4
|
-
new (progress?:
|
|
5
|
+
new (progress?: ProgressPluginOptions): {
|
|
5
6
|
name: string;
|
|
6
|
-
_args: [progress?:
|
|
7
|
+
_args: [progress?: ProgressPluginOptions];
|
|
7
8
|
affectedHooks: keyof import("../index.js").CompilerHooks | undefined;
|
|
8
9
|
raw(compiler: import("../index.js").Compiler): import("@rspack/binding").BuiltinPlugin;
|
|
9
10
|
apply(compiler: import("../index.js").Compiler): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsRsdoctorAsset, type JsRsdoctorAssetPatch, type JsRsdoctorChunk, type JsRsdoctorChunkAssets, type JsRsdoctorChunkGraph, type JsRsdoctorChunkModules, type JsRsdoctorDependency, type JsRsdoctorEntrypoint, type JsRsdoctorEntrypointAssets, type JsRsdoctorExportInfo, type JsRsdoctorModule, type JsRsdoctorModuleGraph, type JsRsdoctorModuleGraphModule, type JsRsdoctorModuleIdsPatch, type JsRsdoctorModuleOriginalSource, type JsRsdoctorModuleSourcesPatch, type JsRsdoctorSideEffect, type JsRsdoctorSourcePosition, type JsRsdoctorSourceRange, type JsRsdoctorStatement, type JsRsdoctorVariable } from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '
|
|
2
|
+
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
3
3
|
import { type Compilation } from '../Compilation.js';
|
|
4
4
|
import type { Compiler } from '../Compiler.js';
|
|
5
5
|
import type { CreatePartialRegisters } from '../taps/types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import binding from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '
|
|
2
|
+
import * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
3
3
|
import type { Chunk } from '../Chunk.js';
|
|
4
4
|
import { type Compilation } from '../Compilation.js';
|
|
5
5
|
import type { CreatePartialRegisters } from '../taps/types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsAfterEmitData, JsAfterTemplateExecutionData, JsAlterAssetTagGroupsData, JsAlterAssetTagsData, JsBeforeAssetTagGenerationData, JsBeforeEmitData } from '@rspack/binding';
|
|
2
|
-
import * as liteTapable from '
|
|
2
|
+
import * as liteTapable from '../../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
3
3
|
import { type Compilation } from '../../Compilation.js';
|
|
4
4
|
import type { HtmlRspackPluginOptions } from './options.js';
|
|
5
5
|
type ExtraPluginHookData = {
|
package/dist/config/types.d.ts
CHANGED
|
@@ -601,6 +601,8 @@ export type ResolveOptions = {
|
|
|
601
601
|
byDependency?: Record<string, ResolveOptions>;
|
|
602
602
|
/** enable Yarn PnP */
|
|
603
603
|
pnp?: boolean;
|
|
604
|
+
/** Path to PnP manifest file */
|
|
605
|
+
pnpManifest?: string | false;
|
|
604
606
|
};
|
|
605
607
|
/** Used to configure the Rspack module resolution */
|
|
606
608
|
export type Resolve = ResolveOptions;
|
|
@@ -2085,6 +2087,10 @@ export type Incremental = {
|
|
|
2085
2087
|
* Enable incremental build chunk graph.
|
|
2086
2088
|
*/
|
|
2087
2089
|
buildChunkGraph?: boolean;
|
|
2090
|
+
/**
|
|
2091
|
+
* Enable incremental optimize chunk modules.
|
|
2092
|
+
*/
|
|
2093
|
+
optimizeChunkModules?: boolean;
|
|
2088
2094
|
/**
|
|
2089
2095
|
* Enable incremental module ids.
|
|
2090
2096
|
*/
|
package/dist/exports.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare const util: {
|
|
|
46
46
|
createHash: (algorithm: "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash/index.js").default)) => import("./util/hash/index.js").default;
|
|
47
47
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
|
48
48
|
};
|
|
49
|
-
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions,
|
|
49
|
+
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginHandlerInfo, ProgressPluginOptions, ProvidePluginOptions, } from './builtin-plugin/index.js';
|
|
50
50
|
export { BannerPlugin, CaseSensitivePlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, } from './builtin-plugin/index.js';
|
|
51
51
|
export { DllPlugin, type DllPluginOptions } from './lib/DllPlugin.js';
|
|
52
52
|
export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType, } from './lib/DllReferencePlugin.js';
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import node_path, { isAbsolute, join, relative, resolve as external_node_path_re
|
|
|
8
8
|
import node_querystring from "node:querystring";
|
|
9
9
|
import node_fs, { readFileSync } from "node:fs";
|
|
10
10
|
__webpack_require__.add({
|
|
11
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.
|
|
11
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.19.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
12
12
|
let { nextTick } = __webpack_require__("process"), dirname = (path)=>{
|
|
13
13
|
let idx = path.length - 1;
|
|
14
14
|
for(; idx >= 0;){
|
|
@@ -812,7 +812,7 @@ let lib_WebpackError = WebpackError, LogType = Object.freeze({
|
|
|
812
812
|
cache: 'cache'
|
|
813
813
|
});
|
|
814
814
|
function getLogTypeBitFlag(type) {
|
|
815
|
-
return 1 << Object.values(LogType).
|
|
815
|
+
return 1 << Object.values(LogType).indexOf(type);
|
|
816
816
|
}
|
|
817
817
|
function getLogTypesBitFlag(types) {
|
|
818
818
|
return types.reduce((acc, cur)=>acc | getLogTypeBitFlag(cur), 0);
|
|
@@ -1789,10 +1789,10 @@ function createDiagnosticArray(adm) {
|
|
|
1789
1789
|
reduce: (callbackfn, initialValue)=>adm.values().reduce(callbackfn, initialValue),
|
|
1790
1790
|
reduceRight: (callbackfn, initialValue)=>adm.values().reduceRight(callbackfn, initialValue)
|
|
1791
1791
|
}, proxy = new Proxy(array, {
|
|
1792
|
-
get: (target, name)=>'length' === name ? adm.length : 'string' != typeof name || Number.isNaN(Number.parseInt(name)) ? Object.prototype.hasOwnProperty.call(arrayExtensions, name) ? arrayExtensions[name] : target[name] : adm.get(Number.parseInt(name)),
|
|
1792
|
+
get: (target, name)=>'length' === name ? adm.length : 'string' != typeof name || Number.isNaN(Number.parseInt(name, 10)) ? Object.prototype.hasOwnProperty.call(arrayExtensions, name) ? arrayExtensions[name] : target[name] : adm.get(Number.parseInt(name, 10)),
|
|
1793
1793
|
set (target, name, value) {
|
|
1794
1794
|
if ('length' === name) throw Error("The 'length' property is read-only and cannot be assigned a new value.");
|
|
1795
|
-
return 'symbol' == typeof name || Number.isNaN(Number.parseInt(name)) ? target[name] = value : adm.set(Number.parseInt(name), value), !0;
|
|
1795
|
+
return 'symbol' == typeof name || Number.isNaN(Number.parseInt(name, 10)) ? target[name] = value : adm.set(Number.parseInt(name, 10), value), !0;
|
|
1796
1796
|
}
|
|
1797
1797
|
});
|
|
1798
1798
|
return adm[$proxy] = proxy, proxy;
|
|
@@ -2713,11 +2713,7 @@ function stringifyLoaderObject(o) {
|
|
|
2713
2713
|
let unsupported = (name, issue)=>{
|
|
2714
2714
|
let s = `${name} is not supported by Rspack.`;
|
|
2715
2715
|
throw issue && (s += ` Refer to issue ${issue} for more information.`), Error(s);
|
|
2716
|
-
}, warnedMessages = new Set()
|
|
2717
|
-
function deprecate(message) {
|
|
2718
|
-
warnedMessages.has(message) || (warnedMessages.add(message), console.warn(`[Rspack Deprecation] ${message}`));
|
|
2719
|
-
}
|
|
2720
|
-
let WINDOWS_ABS_PATH_REGEXP = /^[a-zA-Z]:[\\/]/, SEGMENTS_SPLIT_REGEXP = /([|!])/, WINDOWS_PATH_SEPARATOR_REGEXP = /\\/g, relativePathToRequest = (relativePath)=>'' === relativePath ? './.' : '..' === relativePath ? '../.' : relativePath.startsWith('../') ? relativePath : `./${relativePath}`, absoluteToRequest = (context, maybeAbsolutePath)=>{
|
|
2716
|
+
}, warnedMessages = new Set(), WINDOWS_ABS_PATH_REGEXP = /^[a-zA-Z]:[\\/]/, SEGMENTS_SPLIT_REGEXP = /([|!])/, WINDOWS_PATH_SEPARATOR_REGEXP = /\\/g, relativePathToRequest = (relativePath)=>'' === relativePath ? './.' : '..' === relativePath ? '../.' : relativePath.startsWith('../') ? relativePath : `./${relativePath}`, absoluteToRequest = (context, maybeAbsolutePath)=>{
|
|
2721
2717
|
if ('/' === maybeAbsolutePath[0]) {
|
|
2722
2718
|
if (maybeAbsolutePath.length > 1 && '/' === maybeAbsolutePath[maybeAbsolutePath.length - 1]) return maybeAbsolutePath;
|
|
2723
2719
|
let querySplitPos = maybeAbsolutePath.indexOf('?'), resource = -1 === querySplitPos ? maybeAbsolutePath : maybeAbsolutePath.slice(0, querySplitPos);
|
|
@@ -2906,12 +2902,6 @@ function toFeatures(featureOptions) {
|
|
|
2906
2902
|
}
|
|
2907
2903
|
return feature;
|
|
2908
2904
|
}
|
|
2909
|
-
function resolveCollectTypeScriptInfo(options) {
|
|
2910
|
-
return {
|
|
2911
|
-
typeExports: options.typeExports,
|
|
2912
|
-
exportedEnum: !0 === options.exportedEnum ? 'all' : !1 === options.exportedEnum || void 0 === options.exportedEnum ? 'none' : 'const-only'
|
|
2913
|
-
};
|
|
2914
|
-
}
|
|
2915
2905
|
let $assets = Symbol('assets');
|
|
2916
2906
|
Object.defineProperty(binding_default().KnownBuildInfo.prototype, node_util.inspect.custom, {
|
|
2917
2907
|
enumerable: !0,
|
|
@@ -2995,8 +2985,7 @@ Object.defineProperty(binding_default().NormalModule.prototype, 'identifier', {
|
|
|
2995
2985
|
value (filename, source, assetInfo) {
|
|
2996
2986
|
return this._emitFile(filename, SourceAdapter.toBinding(source), assetInfo);
|
|
2997
2987
|
}
|
|
2998
|
-
})
|
|
2999
|
-
Object.defineProperty(binding_default().NormalModule, 'getCompilationHooks', {
|
|
2988
|
+
}), Object.defineProperty(binding_default().NormalModule, 'getCompilationHooks', {
|
|
3000
2989
|
enumerable: !0,
|
|
3001
2990
|
configurable: !0,
|
|
3002
2991
|
value (compilation) {
|
|
@@ -3007,40 +2996,6 @@ Object.defineProperty(binding_default().NormalModule, 'getCompilationHooks', {
|
|
|
3007
2996
|
'loaderContext',
|
|
3008
2997
|
'module'
|
|
3009
2998
|
]),
|
|
3010
|
-
readResourceForScheme: new HookMap((scheme)=>{
|
|
3011
|
-
let fakeHook, message, code, hook = hooks.readResource.for(scheme);
|
|
3012
|
-
return fakeHook = {
|
|
3013
|
-
tap: (options, fn)=>hook.tap(options, (loaderContext)=>fn(loaderContext.resource)),
|
|
3014
|
-
tapAsync: (options, fn)=>hook.tapAsync(options, (loaderContext, callback)=>fn(loaderContext.resource, callback)),
|
|
3015
|
-
tapPromise: (options, fn)=>hook.tapPromise(options, (loaderContext)=>fn(loaderContext.resource))
|
|
3016
|
-
}, Object.freeze(Object.assign(message && code ? ((obj, message, code)=>{
|
|
3017
|
-
let newObj = {}, descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
3018
|
-
for (let name of Object.keys(descriptors)){
|
|
3019
|
-
let descriptor = descriptors[name];
|
|
3020
|
-
if ('function' == typeof descriptor.value) Object.defineProperty(newObj, name, {
|
|
3021
|
-
...descriptor,
|
|
3022
|
-
value: node_util.deprecate(descriptor.value, message, code)
|
|
3023
|
-
});
|
|
3024
|
-
else if (descriptor.get || descriptor.set) Object.defineProperty(newObj, name, {
|
|
3025
|
-
...descriptor,
|
|
3026
|
-
get: descriptor.get && node_util.deprecate(descriptor.get, message, code),
|
|
3027
|
-
set: descriptor.set && node_util.deprecate(descriptor.set, message, code)
|
|
3028
|
-
});
|
|
3029
|
-
else {
|
|
3030
|
-
let value = descriptor.value;
|
|
3031
|
-
Object.defineProperty(newObj, name, {
|
|
3032
|
-
configurable: descriptor.configurable,
|
|
3033
|
-
enumerable: descriptor.enumerable,
|
|
3034
|
-
get: node_util.deprecate(()=>value, message, code),
|
|
3035
|
-
set: descriptor.writable ? node_util.deprecate((v)=>value = v, message, code) : void 0
|
|
3036
|
-
});
|
|
3037
|
-
}
|
|
3038
|
-
}
|
|
3039
|
-
return newObj;
|
|
3040
|
-
})(fakeHook, message, code) : fakeHook, {
|
|
3041
|
-
_fakeHook: !0
|
|
3042
|
-
}));
|
|
3043
|
-
}),
|
|
3044
2999
|
readResource: new HookMap(()=>new AsyncSeriesBailHook([
|
|
3045
3000
|
'loaderContext'
|
|
3046
3001
|
]))
|
|
@@ -4115,6 +4070,7 @@ function createRawModuleRuleUses(uses, path, options) {
|
|
|
4115
4070
|
if (identifier.startsWith(`${BUILTIN_LOADER_PREFIX}swc-loader`)) return ((o, composeOptions)=>{
|
|
4116
4071
|
let options = o ?? {};
|
|
4117
4072
|
if ('object' == typeof options) {
|
|
4073
|
+
var options1;
|
|
4118
4074
|
if (options.jsc ??= {}, options.jsc.experimental ??= {}, options.jsc.experimental.disableAllLints ??= !0, options.env?.targets === void 0 && options.jsc?.target === void 0) {
|
|
4119
4075
|
if (composeOptions.compiler.target?.targets) options.env ??= {}, options.env.targets ??= function(targets) {
|
|
4120
4076
|
let REMAP = {
|
|
@@ -4141,9 +4097,12 @@ function createRawModuleRuleUses(uses, path, options) {
|
|
|
4141
4097
|
options.jsc.target ??= esVersion >= 2015 ? `es${esVersion}` : 'es5';
|
|
4142
4098
|
}
|
|
4143
4099
|
}
|
|
4144
|
-
options.collectTypeScriptInfo && (options.collectTypeScriptInfo =
|
|
4100
|
+
options.collectTypeScriptInfo && (options.collectTypeScriptInfo = {
|
|
4101
|
+
typeExports: (options1 = options.collectTypeScriptInfo).typeExports,
|
|
4102
|
+
exportedEnum: !0 === options1.exportedEnum ? 'all' : !1 === options1.exportedEnum || void 0 === options1.exportedEnum ? 'none' : 'const-only'
|
|
4103
|
+
});
|
|
4145
4104
|
let { rspackExperiments } = options;
|
|
4146
|
-
rspackExperiments && (
|
|
4105
|
+
rspackExperiments && (rspackExperiments.import || rspackExperiments.pluginImport) && (rspackExperiments.import = function(pluginImport) {
|
|
4147
4106
|
if (pluginImport) return pluginImport.map((config)=>{
|
|
4148
4107
|
let rawConfig = {
|
|
4149
4108
|
...config,
|
|
@@ -4161,7 +4120,7 @@ function createRawModuleRuleUses(uses, path, options) {
|
|
|
4161
4120
|
styleLibraryDirectory: config.styleLibraryDirectory
|
|
4162
4121
|
}), rawConfig;
|
|
4163
4122
|
});
|
|
4164
|
-
}(rspackExperiments.import || rspackExperiments.pluginImport))
|
|
4123
|
+
}(rspackExperiments.import || rspackExperiments.pluginImport));
|
|
4165
4124
|
}
|
|
4166
4125
|
return options;
|
|
4167
4126
|
})(o, options);
|
|
@@ -4942,7 +4901,7 @@ let lazyCompilationMiddlewareInternal = (compiler, activeModules, lazyCompilatio
|
|
|
4942
4901
|
});
|
|
4943
4902
|
}(req);
|
|
4944
4903
|
} catch (err) {
|
|
4945
|
-
logger.error(
|
|
4904
|
+
logger.error(`Failed to parse request body: ${err}`), res.writeHead(400), res.end('Bad Request');
|
|
4946
4905
|
return;
|
|
4947
4906
|
}
|
|
4948
4907
|
let moduleActivated = [];
|
|
@@ -4993,8 +4952,8 @@ let NodeTargetPlugin = base_create(binding_namespaceObject.BuiltinPluginName.Nod
|
|
|
4993
4952
|
})), OccurrenceChunkIdsPlugin = base_create(binding_namespaceObject.BuiltinPluginName.OccurrenceChunkIdsPlugin, (options)=>({
|
|
4994
4953
|
...options
|
|
4995
4954
|
}), 'compilation'), ProgressPlugin = base_create(binding_namespaceObject.BuiltinPluginName.ProgressPlugin, (progress = {})=>'function' == typeof progress ? {
|
|
4996
|
-
handler: (percentage, msg,
|
|
4997
|
-
progress(percentage, msg,
|
|
4955
|
+
handler: (percentage, msg, info)=>{
|
|
4956
|
+
progress(percentage, msg, info);
|
|
4998
4957
|
}
|
|
4999
4958
|
} : progress), ProvidePlugin = base_create(binding_namespaceObject.BuiltinPluginName.ProvidePlugin, (provide)=>Object.fromEntries(Object.entries(provide).map(([key, value])=>('string' == typeof value && (value = [
|
|
5000
4959
|
value
|
|
@@ -5393,7 +5352,7 @@ class ContextModuleFactory {
|
|
|
5393
5352
|
};
|
|
5394
5353
|
}
|
|
5395
5354
|
}
|
|
5396
|
-
let FUNCTION_CONTENT_REGEX = /^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g, INDENT_MULTILINE_REGEX = /^\t/gm, LINE_SEPARATOR_REGEX = /\r?\n/g, IDENTIFIER_NAME_REPLACE_REGEX = /^([^a-zA-Z$_])/, IDENTIFIER_ALPHA_NUMERIC_NAME_REPLACE_REGEX = /[^a-zA-Z0-9$]+/g, COMMENT_END_REGEX = /\*\//g, PATH_NAME_NORMALIZE_REPLACE_REGEX = /[^a-zA-Z0-9_!§$()=\-^°]+/g, MATCH_PADDED_HYPHENS_REPLACE_REGEX = /^-|-$/g;
|
|
5355
|
+
let FUNCTION_CONTENT_REGEX = /^function(?:\s+[\w$]+)?\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g, INDENT_MULTILINE_REGEX = /^\t/gm, LINE_SEPARATOR_REGEX = /\r?\n/g, IDENTIFIER_NAME_REPLACE_REGEX = /^([^a-zA-Z$_])/, IDENTIFIER_ALPHA_NUMERIC_NAME_REPLACE_REGEX = /[^a-zA-Z0-9$]+/g, COMMENT_END_REGEX = /\*\//g, PATH_NAME_NORMALIZE_REPLACE_REGEX = /[^a-zA-Z0-9_!§$()=\-^°]+/g, MATCH_PADDED_HYPHENS_REPLACE_REGEX = /^-|-$/g;
|
|
5397
5356
|
class Template {
|
|
5398
5357
|
static getFunctionContent(fn) {
|
|
5399
5358
|
return fn.toString().replace(FUNCTION_CONTENT_REGEX, '').replace(INDENT_MULTILINE_REGEX, '').replace(LINE_SEPARATOR_REGEX, '\n');
|
|
@@ -6548,7 +6507,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6548
6507
|
}, applyExperimentsDefaults = (experiments)=>{
|
|
6549
6508
|
D(experiments, 'futureDefaults', !1), D(experiments, 'asyncWebAssembly', !0), D(experiments, 'deferImport', !1), D(experiments, 'buildHttp', void 0), experiments.buildHttp && 'object' == typeof experiments.buildHttp && D(experiments.buildHttp, 'upgrade', !1), D(experiments, 'useInputFileSystem', !1);
|
|
6550
6509
|
}, applyIncrementalDefaults = (options)=>{
|
|
6551
|
-
D(options, 'incremental', {}), 'object' == typeof options.incremental && (D(options.incremental, 'silent', !0), D(options.incremental, 'buildModuleGraph', !0), D(options.incremental, 'finishModules', !0), D(options.incremental, 'optimizeDependencies', !0), D(options.incremental, 'buildChunkGraph', !0), D(options.incremental, 'moduleIds', !0), D(options.incremental, 'chunkIds', !0), D(options.incremental, 'modulesHashes', !0), D(options.incremental, 'modulesCodegen', !0), D(options.incremental, 'modulesRuntimeRequirements', !0), D(options.incremental, 'chunksRuntimeRequirements', !0), D(options.incremental, 'chunksHashes', !0), D(options.incremental, 'chunkAsset', !0), D(options.incremental, 'emitAssets', !0));
|
|
6510
|
+
D(options, 'incremental', {}), 'object' == typeof options.incremental && (D(options.incremental, 'silent', !0), D(options.incremental, 'buildModuleGraph', !0), D(options.incremental, 'finishModules', !0), D(options.incremental, 'optimizeDependencies', !0), D(options.incremental, 'buildChunkGraph', !0), D(options.incremental, 'optimizeChunkModules', !0), D(options.incremental, 'moduleIds', !0), D(options.incremental, 'chunkIds', !0), D(options.incremental, 'modulesHashes', !0), D(options.incremental, 'modulesCodegen', !0), D(options.incremental, 'modulesRuntimeRequirements', !0), D(options.incremental, 'chunksRuntimeRequirements', !0), D(options.incremental, 'chunksHashes', !0), D(options.incremental, 'chunkAsset', !0), D(options.incremental, 'emitAssets', !0));
|
|
6552
6511
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyCssGeneratorOptionsDefaults = (generatorOptions, { targetProperties })=>{
|
|
6553
6512
|
D(generatorOptions, 'exportsOnly', !targetProperties || !1 === targetProperties.document), D(generatorOptions, 'esModule', !0);
|
|
6554
6513
|
}, applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode, uniqueName, deferImport })=>{
|
|
@@ -6825,7 +6784,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6825
6784
|
return output.wasmLoading && enabledWasmLoadingTypes.add(output.wasmLoading), output.workerWasmLoading && enabledWasmLoadingTypes.add(output.workerWasmLoading), forEachEntry((desc)=>{
|
|
6826
6785
|
desc.wasmLoading && enabledWasmLoadingTypes.add(desc.wasmLoading);
|
|
6827
6786
|
}), Array.from(enabledWasmLoadingTypes);
|
|
6828
|
-
}), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
6787
|
+
}), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.0.0-beta.3"), D(output.bundlerInfo, 'bundler', 'rspack'), D(output.bundlerInfo, 'force', !output.library));
|
|
6829
6788
|
}, applyExternalsPresetsDefaults = (externalsPresets, { targetProperties, buildHttp, outputModule })=>{
|
|
6830
6789
|
let isUniversal = (key)=>!!(outputModule && targetProperties && null === targetProperties[key]);
|
|
6831
6790
|
D(externalsPresets, 'web', !buildHttp && targetProperties && (targetProperties.web || isUniversal('node'))), D(externalsPresets, 'node', targetProperties && (targetProperties.node || isUniversal('node'))), D(externalsPresets, 'electron', targetProperties && targetProperties.electron || isUniversal('electron')), D(externalsPresets, 'electronMain', targetProperties && !!targetProperties.electron && (targetProperties.electronMain || isUniversal('electronMain'))), D(externalsPresets, 'electronPreload', targetProperties && !!targetProperties.electron && (targetProperties.electronPreload || isUniversal('electronPreload'))), D(externalsPresets, 'electronRenderer', targetProperties && !!targetProperties.electron && (targetProperties.electronRenderer || isUniversal('electronRenderer'))), D(externalsPresets, 'nwjs', targetProperties && (targetProperties.nwjs || isUniversal('nwjs')));
|
|
@@ -7245,6 +7204,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7245
7204
|
finishModules: !1,
|
|
7246
7205
|
optimizeDependencies: !1,
|
|
7247
7206
|
buildChunkGraph: !0,
|
|
7207
|
+
optimizeChunkModules: !1,
|
|
7248
7208
|
moduleIds: !1,
|
|
7249
7209
|
chunkIds: !1,
|
|
7250
7210
|
modulesHashes: !1,
|
|
@@ -8078,7 +8038,7 @@ class MultiStats {
|
|
|
8078
8038
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8079
8039
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8080
8040
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8081
|
-
}), childOptions.version && (obj.rspackVersion = "2.0.0-beta.
|
|
8041
|
+
}), childOptions.version && (obj.rspackVersion = "2.0.0-beta.3", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
|
|
8082
8042
|
let mapError = (j, obj)=>({
|
|
8083
8043
|
...obj,
|
|
8084
8044
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -8575,7 +8535,7 @@ let arraySum = (array)=>{
|
|
|
8575
8535
|
let str = `${a}`, length = lengths[i];
|
|
8576
8536
|
return str.length === length ? str : length > 5 ? `...${str.slice(-length + 3)}` : length > 0 ? str.slice(-length) : '';
|
|
8577
8537
|
});
|
|
8578
|
-
}, CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.
|
|
8538
|
+
}, CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.19.0/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
8579
8539
|
var CachedInputFileSystem_default = __webpack_require__.n(CachedInputFileSystem);
|
|
8580
8540
|
class NodeEnvironmentPlugin {
|
|
8581
8541
|
options;
|
|
@@ -9337,7 +9297,7 @@ let iterateConfig = (config, options, fn)=>{
|
|
|
9337
9297
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9338
9298
|
},
|
|
9339
9299
|
version: (object)=>{
|
|
9340
|
-
object.version = "5.75.0", object.rspackVersion = "2.0.0-beta.
|
|
9300
|
+
object.version = "5.75.0", object.rspackVersion = "2.0.0-beta.3";
|
|
9341
9301
|
},
|
|
9342
9302
|
env: (object, _compilation, _context, { _env })=>{
|
|
9343
9303
|
object.env = _env;
|
|
@@ -10741,8 +10701,9 @@ function rspack_rspack(options, callback) {
|
|
|
10741
10701
|
return process.nextTick(()=>callback(err)), null;
|
|
10742
10702
|
}
|
|
10743
10703
|
{
|
|
10704
|
+
var message;
|
|
10744
10705
|
let { compiler, watch } = create();
|
|
10745
|
-
return watch &&
|
|
10706
|
+
return watch && (message = "A 'callback' argument needs to be provided to the 'rspack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback.", warnedMessages.has(message) || (warnedMessages.add(message), console.warn(`[Rspack Deprecation] ${message}`))), compiler;
|
|
10746
10707
|
}
|
|
10747
10708
|
}
|
|
10748
10709
|
class CodeGenerationResult {
|
|
@@ -10998,7 +10959,7 @@ class TraceHookPlugin {
|
|
|
10998
10959
|
});
|
|
10999
10960
|
}
|
|
11000
10961
|
}
|
|
11001
|
-
let CORE_VERSION = "2.0.0-beta.
|
|
10962
|
+
let CORE_VERSION = "2.0.0-beta.3", VFILES_BY_COMPILER = new WeakMap();
|
|
11002
10963
|
class VirtualModulesPlugin {
|
|
11003
10964
|
#staticModules;
|
|
11004
10965
|
#compiler;
|
|
@@ -13185,7 +13146,7 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
|
|
|
13185
13146
|
`const __module_federation_library_type__ = ${JSON.stringify(libraryType)}`,
|
|
13186
13147
|
compiler.webpack.Template.getFunctionContent(ModuleFederationPlugin_require('./moduleFederationDefaultRuntime.js').default)
|
|
13187
13148
|
].join(';');
|
|
13188
|
-
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${content}`;
|
|
13149
|
+
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
|
|
13189
13150
|
}
|
|
13190
13151
|
class ContainerPlugin extends RspackBuiltinPlugin {
|
|
13191
13152
|
name = binding_namespaceObject.BuiltinPluginName.ContainerPlugin;
|
|
@@ -13282,7 +13243,7 @@ async function transform(source, options) {
|
|
|
13282
13243
|
let _options = JSON.stringify(options || {});
|
|
13283
13244
|
return binding_default().transform(source, _options);
|
|
13284
13245
|
}
|
|
13285
|
-
let exports_rspackVersion = "2.0.0-beta.
|
|
13246
|
+
let exports_rspackVersion = "2.0.0-beta.3", exports_version = "5.75.0", exports_WebpackError = Error, exports_config = {
|
|
13286
13247
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
13287
13248
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
13288
13249
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/dist/lib/Cache.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 { AsyncParallelHook, AsyncSeriesBailHook, SyncHook } from '
|
|
10
|
+
import { AsyncParallelHook, AsyncSeriesBailHook, SyncHook } from '../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
11
11
|
import type { WebpackError } from './WebpackError.js';
|
|
12
12
|
export interface Etag {
|
|
13
13
|
toString(): 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 { Callback } from '
|
|
10
|
+
import type { Callback } from '../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
11
11
|
import WebpackError from './WebpackError.js';
|
|
12
12
|
export declare class HookWebpackError extends WebpackError {
|
|
13
13
|
hook: string;
|
package/dist/rspack.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 { Callback } from '
|
|
10
|
+
import type { Callback } from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
11
11
|
import { Compiler } from './Compiler.js';
|
|
12
12
|
import { type RspackOptions } from './config/index.js';
|
|
13
13
|
import { MultiCompiler, type MultiRspackOptions } from './MultiCompiler.js';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import type { JsStats, JsStatsCompilation, JsStatsError } from '@rspack/binding';
|
|
11
|
-
import { HookMap, SyncBailHook, SyncWaterfallHook } from '
|
|
11
|
+
import { HookMap, SyncBailHook, SyncWaterfallHook } from '../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
12
12
|
import type { Compilation } from '../Compilation.js';
|
|
13
13
|
import { type GroupConfig } from '../util/smartGrouping.js';
|
|
14
14
|
export type KnownStatsFactoryContext = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HookMap, SyncBailHook, SyncWaterfallHook } from '
|
|
1
|
+
import { HookMap, SyncBailHook, SyncWaterfallHook } from '../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
2
2
|
import type { StatsAsset, StatsChunk, StatsChunkGroup, StatsCompilation, StatsModule, StatsModuleReason } from './statsFactoryUtils.js';
|
|
3
3
|
type PrintedElement = {
|
|
4
4
|
element: string;
|
package/dist/taps/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type binding from '@rspack/binding';
|
|
2
|
-
import type * as liteTapable from '
|
|
2
|
+
import type * as liteTapable from '../../compiled/@rspack/lite-tapable/dist/index.d.ts';
|
|
3
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[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-debug/core",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@ast-grep/napi": "^0.40.5",
|
|
41
41
|
"@napi-rs/wasm-runtime": "1.0.7",
|
|
42
|
-
"@rsbuild/plugin-node-polyfill": "^1.4.
|
|
42
|
+
"@rsbuild/plugin-node-polyfill": "^1.4.4",
|
|
43
43
|
"@rspack/lite-tapable": "1.1.0",
|
|
44
|
-
"@rslib/core": "0.19.
|
|
44
|
+
"@rslib/core": "0.19.6",
|
|
45
45
|
"@swc/types": "0.1.25",
|
|
46
|
-
"@types/node": "^20.19.
|
|
46
|
+
"@types/node": "^20.19.33",
|
|
47
47
|
"@types/watchpack": "^2.4.5",
|
|
48
48
|
"browserslist-load-config": "^1.0.1",
|
|
49
49
|
"browserslist-to-es-version": "^1.4.1",
|
|
50
|
-
"enhanced-resolve": "5.
|
|
50
|
+
"enhanced-resolve": "5.19.0",
|
|
51
51
|
"glob-to-regexp": "^0.4.1",
|
|
52
52
|
"memfs": "4.53.0",
|
|
53
53
|
"prebundle": "^1.6.2",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"tsx": "^4.21.0",
|
|
56
56
|
"typescript": "^5.9.3",
|
|
57
57
|
"watchpack": "^2.4.4",
|
|
58
|
-
"webpack-sources": "3.3.
|
|
58
|
+
"webpack-sources": "3.3.4"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@rspack/binding": "npm:@rspack-debug/binding@2.0.0-beta.
|
|
61
|
+
"@rspack/binding": "npm:@rspack-debug/binding@2.0.0-beta.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@module-federation/runtime-tools": "0.24.1",
|
|
64
|
+
"@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",
|
|
65
65
|
"@swc/helpers": ">=0.5.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
@@ -75,9 +75,6 @@
|
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "rslib build",
|
|
77
77
|
"build:browser": "rslib build -c rslib.browser.config.ts",
|
|
78
|
-
"dev": "rslib build --watch"
|
|
79
|
-
"doc-coverage": "tsx ./scripts/check-documentation-coverage.ts",
|
|
80
|
-
"api-extractor": "api-extractor run --verbose",
|
|
81
|
-
"api-extractor:ci": "api-extractor run --verbose || diff temp/core.api.md etc/core.api.md"
|
|
78
|
+
"dev": "rslib build --watch"
|
|
82
79
|
}
|
|
83
80
|
}
|