@rspack-debug/core 1.3.14 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/compiled/@swc/types/index.d.ts +18 -2
- package/compiled/@swc/types/package.json +1 -1
- package/compiled/tinypool/README.md +4 -196
- package/compiled/tinypool/dist/common-Qw-RoVFD.js +28 -0
- package/compiled/tinypool/dist/entry/process.d.ts +1 -2
- package/compiled/tinypool/dist/entry/process.js +63 -83
- package/compiled/tinypool/dist/entry/utils.d.ts +3 -1
- package/compiled/tinypool/dist/entry/utils.js +3 -9
- package/compiled/tinypool/dist/entry/worker.d.ts +1 -2
- package/compiled/tinypool/dist/entry/worker.js +66 -94
- package/compiled/tinypool/dist/index.d.ts +132 -125
- package/compiled/tinypool/dist/index.js +771 -1035
- package/compiled/tinypool/dist/utils-B--2TaWv.js +38 -0
- package/compiled/tinypool/dist/utils-De75vAgL.js +10 -0
- package/compiled/tinypool/package.json +6 -22
- package/compiled/webpack-sources/index.js +112 -132
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +8 -6
- package/dist/BuildInfo.d.ts +17 -0
- package/dist/FileSystem.d.ts +26 -3
- package/dist/Module.d.ts +1 -14
- package/dist/MultiCompiler.d.ts +4 -1
- package/dist/MultiWatching.d.ts +1 -0
- package/dist/Resolver.d.ts +2 -1
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +8 -0
- package/dist/builtin-loader/swc/index.d.ts +2 -0
- package/dist/builtin-loader/swc/pluginImport.d.ts +1 -36
- package/dist/builtin-loader/swc/types.d.ts +163 -2000
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +4 -2
- package/dist/builtin-plugin/RslibPlugin.d.ts +11 -0
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -1
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +3 -3
- package/dist/config/devServer.d.ts +10 -10
- package/dist/config/normalization.d.ts +4 -1
- package/dist/config/types.d.ts +31 -4
- package/dist/config/utils.d.ts +3 -16
- package/dist/config/zod.d.ts +689 -3924
- package/dist/cssExtractLoader.js +5 -5
- package/dist/exports.d.ts +9 -3
- package/dist/index.js +4751 -2034
- package/dist/loader-runner/index.d.ts +0 -9
- package/dist/swc.d.ts +2 -0
- package/dist/trace/index.d.ts +16 -18
- package/dist/util/validate.d.ts +3 -3
- package/dist/worker.js +2 -2
- package/module.d.ts +1 -1
- package/package.json +11 -11
- package/compiled/enhanced-resolve/CachedInputFileSystem.d.ts +0 -0
- package/compiled/enhanced-resolve/CachedInputFileSystem.js +0 -664
- package/compiled/enhanced-resolve/index.d.ts +0 -1124
- package/compiled/enhanced-resolve/license +0 -20
- package/compiled/enhanced-resolve/package.json +0 -1
- package/compiled/tinypool/dist/chunk-6LX4VMOV.js +0 -31
- package/compiled/tinypool/dist/chunk-ACQHDOFQ.js +0 -12
- package/compiled/tinypool/dist/chunk-E2J7JLFN.js +0 -53
- package/compiled/tinypool/dist/chunk-UBWFVGJX.js +0 -38
- package/compiled/zod/dist/types/index.d.ts +0 -3
- package/compiled/zod/dist/types/v3/ZodError.d.ts +0 -164
- package/compiled/zod/dist/types/v3/benchmarks/datetime.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/index.d.ts +0 -1
- package/compiled/zod/dist/types/v3/benchmarks/ipv4.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/object.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/primitives.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/realworld.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/string.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/union.d.ts +0 -5
- package/compiled/zod/dist/types/v3/errors.d.ts +0 -5
- package/compiled/zod/dist/types/v3/external.d.ts +0 -6
- package/compiled/zod/dist/types/v3/helpers/enumUtil.d.ts +0 -8
- package/compiled/zod/dist/types/v3/helpers/errorUtil.d.ts +0 -9
- package/compiled/zod/dist/types/v3/helpers/parseUtil.d.ts +0 -78
- package/compiled/zod/dist/types/v3/helpers/partialUtil.d.ts +0 -8
- package/compiled/zod/dist/types/v3/helpers/typeAliases.d.ts +0 -2
- package/compiled/zod/dist/types/v3/helpers/util.d.ts +0 -85
- package/compiled/zod/dist/types/v3/index.d.ts +0 -4
- package/compiled/zod/dist/types/v3/locales/en.d.ts +0 -3
- package/compiled/zod/dist/types/v3/standard-schema.d.ts +0 -102
- package/compiled/zod/dist/types/v3/tests/Mocker.d.ts +0 -17
- package/compiled/zod/dist/types/v3/types.d.ts +0 -1031
- package/compiled/zod/dist/types/v4/classic/checks.d.ts +0 -1
- package/compiled/zod/dist/types/v4/classic/coerce.d.ts +0 -17
- package/compiled/zod/dist/types/v4/classic/compat.d.ts +0 -48
- package/compiled/zod/dist/types/v4/classic/errors.d.ts +0 -30
- package/compiled/zod/dist/types/v4/classic/external.d.ts +0 -13
- package/compiled/zod/dist/types/v4/classic/index.d.ts +0 -4
- package/compiled/zod/dist/types/v4/classic/iso.d.ts +0 -22
- package/compiled/zod/dist/types/v4/classic/parse.d.ts +0 -23
- package/compiled/zod/dist/types/v4/classic/schemas.d.ts +0 -619
- package/compiled/zod/dist/types/v4/core/api.d.ts +0 -273
- package/compiled/zod/dist/types/v4/core/checks.d.ts +0 -277
- package/compiled/zod/dist/types/v4/core/config.d.ts +0 -9
- package/compiled/zod/dist/types/v4/core/core.d.ts +0 -47
- package/compiled/zod/dist/types/v4/core/doc.d.ts +0 -14
- package/compiled/zod/dist/types/v4/core/errors.d.ts +0 -204
- package/compiled/zod/dist/types/v4/core/function.d.ts +0 -52
- package/compiled/zod/dist/types/v4/core/index.d.ts +0 -15
- package/compiled/zod/dist/types/v4/core/json-schema.d.ts +0 -100
- package/compiled/zod/dist/types/v4/core/parse.d.ts +0 -25
- package/compiled/zod/dist/types/v4/core/regexes.d.ts +0 -62
- package/compiled/zod/dist/types/v4/core/registries.d.ts +0 -37
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +0 -1011
- package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +0 -55
- package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +0 -84
- package/compiled/zod/dist/types/v4/core/util.d.ts +0 -182
- package/compiled/zod/dist/types/v4/core/versions.d.ts +0 -5
- package/compiled/zod/dist/types/v4/core/zsf.d.ts +0 -91
- package/compiled/zod/dist/types/v4/index.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/ar.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/az.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/be.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ca.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/cs.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/de.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/en.d.ts +0 -5
- package/compiled/zod/dist/types/v4/locales/es.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/fa.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/fi.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/fr-CA.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/fr.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/he.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/hu.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/id.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/index.d.ts +0 -37
- package/compiled/zod/dist/types/v4/locales/it.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ja.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/kh.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ko.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/mk.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ms.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/nl.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/no.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ota.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/pl.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/pt.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ru.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/sl.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/sv.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ta.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/th.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/tr.d.ts +0 -5
- package/compiled/zod/dist/types/v4/locales/ua.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ur.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/vi.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/zh-TW.d.ts +0 -4
- package/compiled/zod/dist/types/v4/mini/checks.d.ts +0 -1
- package/compiled/zod/dist/types/v4/mini/coerce.d.ts +0 -7
- package/compiled/zod/dist/types/v4/mini/external.d.ts +0 -11
- package/compiled/zod/dist/types/v4/mini/index.d.ts +0 -3
- package/compiled/zod/dist/types/v4/mini/iso.d.ts +0 -22
- package/compiled/zod/dist/types/v4/mini/parse.d.ts +0 -1
- package/compiled/zod/dist/types/v4/mini/schemas.d.ts +0 -398
- package/compiled/zod/index.js +0 -4513
- package/compiled/zod/license +0 -21
- package/compiled/zod/package.json +0 -1
- package/compiled/zod/v3/index.d.ts +0 -3
- package/compiled/zod/v4/core/index.d.ts +0 -1
- package/compiled/zod/v4/index.d.ts +0 -3
- package/compiled/zod/v4/locales/en.d.ts +0 -2
- package/compiled/zod/v4/locales/index.d.ts +0 -1
- package/compiled/zod/v4-mini/index.d.ts +0 -1
|
@@ -84,8 +84,8 @@ declare interface GeneratedSourceInfo {
|
|
|
84
84
|
generatedColumn?: number;
|
|
85
85
|
source?: string;
|
|
86
86
|
}
|
|
87
|
-
declare interface
|
|
88
|
-
update: (data: string | Buffer, inputEncoding?: string) =>
|
|
87
|
+
declare interface HashLike {
|
|
88
|
+
update: (data: string | Buffer, inputEncoding?: string) => HashLike;
|
|
89
89
|
digest: (encoding?: string) => string | Buffer;
|
|
90
90
|
}
|
|
91
91
|
declare interface MapOptions {
|
|
@@ -167,6 +167,8 @@ declare interface RawSourceMap {
|
|
|
167
167
|
sourcesContent?: string[];
|
|
168
168
|
mappings: string;
|
|
169
169
|
file: string;
|
|
170
|
+
debugId?: string;
|
|
171
|
+
ignoreList?: number[];
|
|
170
172
|
}
|
|
171
173
|
declare class ReplaceSource extends Source {
|
|
172
174
|
constructor(source: Source, name?: string);
|
|
@@ -213,7 +215,7 @@ declare class Source {
|
|
|
213
215
|
size(): number;
|
|
214
216
|
map(options?: MapOptions): null | RawSourceMap;
|
|
215
217
|
sourceAndMap(options?: MapOptions): SourceAndMap;
|
|
216
|
-
updateHash(hash:
|
|
218
|
+
updateHash(hash: HashLike): void;
|
|
217
219
|
}
|
|
218
220
|
declare interface SourceAndMap {
|
|
219
221
|
source: SourceValue;
|
|
@@ -225,7 +227,7 @@ declare interface SourceLike {
|
|
|
225
227
|
size?: () => number;
|
|
226
228
|
map?: (options?: MapOptions) => null | RawSourceMap;
|
|
227
229
|
sourceAndMap?: (options?: MapOptions) => SourceAndMap;
|
|
228
|
-
updateHash?: (hash:
|
|
230
|
+
updateHash?: (hash: HashLike) => void;
|
|
229
231
|
}
|
|
230
232
|
declare class SourceMapSource extends Source {
|
|
231
233
|
constructor(
|
|
@@ -269,7 +271,6 @@ declare interface StreamChunksOptions {
|
|
|
269
271
|
finalSource?: boolean;
|
|
270
272
|
columns?: boolean;
|
|
271
273
|
}
|
|
272
|
-
|
|
273
274
|
export namespace util {
|
|
274
275
|
export namespace stringBufferUtils {
|
|
275
276
|
export let disableDualStringBufferCaching: () => void;
|
|
@@ -310,7 +311,7 @@ declare interface StreamChunksOptions {
|
|
|
310
311
|
SourceLike,
|
|
311
312
|
ConcatSourceChild,
|
|
312
313
|
Replacement,
|
|
313
|
-
|
|
314
|
+
HashLike,
|
|
314
315
|
MapOptions,
|
|
315
316
|
RawSourceMap,
|
|
316
317
|
SourceAndMap,
|
|
@@ -318,3 +319,4 @@ declare interface StreamChunksOptions {
|
|
|
318
319
|
GeneratedSourceInfo,
|
|
319
320
|
StreamChunksOptions
|
|
320
321
|
};
|
|
322
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as binding from "@rspack/binding";
|
|
2
|
+
import type { Source } from "../compiled/webpack-sources";
|
|
3
|
+
declare const $assets: unique symbol;
|
|
4
|
+
declare module "@rspack/binding" {
|
|
5
|
+
interface Assets {
|
|
6
|
+
[$assets]: Record<string, Source>;
|
|
7
|
+
}
|
|
8
|
+
interface KnownBuildInfo {
|
|
9
|
+
assets: Record<string, Source>;
|
|
10
|
+
fileDependencies: Set<string>;
|
|
11
|
+
contextDependencies: Set<string>;
|
|
12
|
+
missingDependencies: Set<string>;
|
|
13
|
+
buildDependencies: Set<string>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export type { BuildInfo } from "@rspack/binding";
|
|
17
|
+
export declare const commitCustomFieldsToRust: (buildInfo: binding.BuildInfo) => void;
|
package/dist/FileSystem.d.ts
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
import type { NodeFsStats, ThreadsafeNodeFS } from "@rspack/binding";
|
|
2
|
-
import { type
|
|
2
|
+
import { type InputFileSystem, type IntermediateFileSystem, type OutputFileSystem } from "./util/fs";
|
|
3
|
+
declare class ThreadsafeInputNodeFS implements ThreadsafeNodeFS {
|
|
4
|
+
writeFile: (name: string, content: Buffer) => Promise<void>;
|
|
5
|
+
removeFile: (name: string) => Promise<void>;
|
|
6
|
+
mkdir: (name: string) => Promise<void>;
|
|
7
|
+
mkdirp: (name: string) => Promise<string | void>;
|
|
8
|
+
removeDirAll: (name: string) => Promise<string | void>;
|
|
9
|
+
readDir: (name: string) => Promise<string[] | void>;
|
|
10
|
+
readFile: (name: string) => Promise<Buffer | string | void>;
|
|
11
|
+
stat: (name: string) => Promise<NodeFsStats | void>;
|
|
12
|
+
lstat: (name: string) => Promise<NodeFsStats | void>;
|
|
13
|
+
realpath: (name: string) => Promise<string | void>;
|
|
14
|
+
open: (name: string, flags: string) => Promise<number | void>;
|
|
15
|
+
rename: (from: string, to: string) => Promise<void>;
|
|
16
|
+
close: (fd: number) => Promise<void>;
|
|
17
|
+
write: (fd: number, content: Buffer, position: number) => Promise<number | void>;
|
|
18
|
+
writeAll: (fd: number, content: Buffer) => Promise<number | void>;
|
|
19
|
+
read: (fd: number, length: number, position: number) => Promise<Buffer | void>;
|
|
20
|
+
readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void>;
|
|
21
|
+
readToEnd: (fd: number, position: number) => Promise<Buffer | void>;
|
|
22
|
+
constructor(fs?: InputFileSystem);
|
|
23
|
+
static __to_binding(fs?: InputFileSystem): ThreadsafeInputNodeFS;
|
|
24
|
+
static needsBinding(ifs?: false | RegExp[]): boolean;
|
|
25
|
+
}
|
|
3
26
|
declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS {
|
|
4
27
|
writeFile: (name: string, content: Buffer) => Promise<void>;
|
|
5
28
|
removeFile: (name: string) => Promise<void>;
|
|
@@ -10,6 +33,7 @@ declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS {
|
|
|
10
33
|
readFile: (name: string) => Promise<Buffer | string | void>;
|
|
11
34
|
stat: (name: string) => Promise<NodeFsStats | void>;
|
|
12
35
|
lstat: (name: string) => Promise<NodeFsStats | void>;
|
|
36
|
+
realpath: (name: string) => Promise<string | void>;
|
|
13
37
|
open: (name: string, flags: string) => Promise<number | void>;
|
|
14
38
|
rename: (from: string, to: string) => Promise<void>;
|
|
15
39
|
close: (fd: number) => Promise<void>;
|
|
@@ -20,10 +44,9 @@ declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS {
|
|
|
20
44
|
readToEnd: (fd: number, position: number) => Promise<Buffer | void>;
|
|
21
45
|
constructor(fs?: OutputFileSystem);
|
|
22
46
|
static __to_binding(fs?: OutputFileSystem): ThreadsafeOutputNodeFS;
|
|
23
|
-
static __to_binding_stat(stat: IStats): NodeFsStats;
|
|
24
47
|
}
|
|
25
48
|
declare class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
|
|
26
49
|
constructor(fs?: IntermediateFileSystem);
|
|
27
50
|
static __to_binding(fs?: IntermediateFileSystem): ThreadsafeIntermediateNodeFS;
|
|
28
51
|
}
|
|
29
|
-
export { ThreadsafeOutputNodeFS, ThreadsafeIntermediateNodeFS };
|
|
52
|
+
export { ThreadsafeInputNodeFS, ThreadsafeOutputNodeFS, ThreadsafeIntermediateNodeFS };
|
package/dist/Module.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as binding from "@rspack/binding";
|
|
2
2
|
import type { Source } from "../compiled/webpack-sources";
|
|
3
3
|
import type { ResourceData } from "./Resolver";
|
|
4
|
+
import "./BuildInfo";
|
|
4
5
|
export type ResourceDataWithData = ResourceData & {
|
|
5
6
|
data?: Record<string, any>;
|
|
6
7
|
};
|
|
@@ -42,23 +43,9 @@ export declare class ContextModuleFactoryAfterResolveData {
|
|
|
42
43
|
private constructor();
|
|
43
44
|
}
|
|
44
45
|
export type ContextModuleFactoryAfterResolveResult = false | ContextModuleFactoryAfterResolveData;
|
|
45
|
-
declare const $assets: unique symbol;
|
|
46
|
-
declare module "@rspack/binding" {
|
|
47
|
-
interface Assets {
|
|
48
|
-
[$assets]: Record<string, Source>;
|
|
49
|
-
}
|
|
50
|
-
interface KnownBuildInfo {
|
|
51
|
-
assets: Record<string, Source>;
|
|
52
|
-
fileDependencies: Set<string>;
|
|
53
|
-
contextDependencies: Set<string>;
|
|
54
|
-
missingDependencies: Set<string>;
|
|
55
|
-
buildDependencies: Set<string>;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
46
|
declare module "@rspack/binding" {
|
|
59
47
|
interface Module {
|
|
60
48
|
identifier(): string;
|
|
61
|
-
readableIdentifier(): string;
|
|
62
49
|
originalSource(): Source | null;
|
|
63
50
|
emitFile(filename: string, source: Source, assetInfo?: AssetInfo): void;
|
|
64
51
|
}
|
package/dist/MultiCompiler.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
import * as liteTapable from "@rspack/lite-tapable";
|
|
11
|
-
import type { Compiler, RspackOptions } from ".";
|
|
11
|
+
import type { CompilationParams, Compiler, RspackOptions } from ".";
|
|
12
12
|
import MultiStats from "./MultiStats";
|
|
13
13
|
import MultiWatching from "./MultiWatching";
|
|
14
14
|
import type { WatchOptions } from "./config";
|
|
@@ -27,6 +27,8 @@ export declare class MultiCompiler {
|
|
|
27
27
|
hooks: {
|
|
28
28
|
done: liteTapable.SyncHook<MultiStats>;
|
|
29
29
|
invalid: liteTapable.MultiHook<liteTapable.SyncHook<[string | null, number]>>;
|
|
30
|
+
beforeCompile: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[CompilationParams]>>;
|
|
31
|
+
shutdown: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[]>>;
|
|
30
32
|
run: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
|
|
31
33
|
watchClose: liteTapable.SyncHook<[]>;
|
|
32
34
|
watchRun: liteTapable.MultiHook<liteTapable.AsyncSeriesHook<[Compiler]>>;
|
|
@@ -34,6 +36,7 @@ export declare class MultiCompiler {
|
|
|
34
36
|
};
|
|
35
37
|
_options: MultiCompilerOptions;
|
|
36
38
|
running: boolean;
|
|
39
|
+
watching?: MultiWatching;
|
|
37
40
|
constructor(compilers: Compiler[] | Record<string, Compiler>, options?: MultiCompilerOptions);
|
|
38
41
|
get options(): import(".").RspackOptionsNormalized[] & MultiCompilerOptions;
|
|
39
42
|
get outputPath(): string;
|
package/dist/MultiWatching.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare class MultiWatching {
|
|
|
19
19
|
*/
|
|
20
20
|
constructor(watchings: Watching[], compiler: MultiCompiler);
|
|
21
21
|
invalidate(callback: Callback<Error, void>): void;
|
|
22
|
+
invalidateWithChangesAndRemovals(changedFiles?: Set<string>, removedFiles?: Set<string>, callback?: Callback<Error, void>): void;
|
|
22
23
|
close(callback: Callback<Error, void>): void;
|
|
23
24
|
suspend(): void;
|
|
24
25
|
resume(): void;
|
package/dist/Resolver.d.ts
CHANGED
|
@@ -9,10 +9,11 @@ type ResolveOptionsWithDependencyType = Resolve & {
|
|
|
9
9
|
export type ResourceData = binding.JsResourceData;
|
|
10
10
|
export type ResolveRequest = ResourceData;
|
|
11
11
|
export declare class Resolver {
|
|
12
|
+
#private;
|
|
12
13
|
binding: binding.JsResolver;
|
|
13
14
|
constructor(binding: binding.JsResolver);
|
|
14
15
|
resolveSync(context: object, path: string, request: string): string | false;
|
|
15
16
|
resolve(context: object, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void;
|
|
16
|
-
withOptions(
|
|
17
|
+
withOptions(options: ResolveOptionsWithDependencyType): Resolver;
|
|
17
18
|
}
|
|
18
19
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type CollectTypeScriptInfoOptions = {
|
|
2
|
+
typeExports?: boolean;
|
|
3
|
+
exportedEnum?: boolean | "const-only";
|
|
4
|
+
};
|
|
5
|
+
export declare function resolveCollectTypeScriptInfo(options: CollectTypeScriptInfoOptions): {
|
|
6
|
+
typeExports: boolean | undefined;
|
|
7
|
+
exportedEnum: string;
|
|
8
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { resolvePluginImport } from "./pluginImport";
|
|
2
2
|
export type { PluginImportOptions } from "./pluginImport";
|
|
3
|
+
export { resolveCollectTypeScriptInfo } from "./collectTypeScriptInfo";
|
|
4
|
+
export type { CollectTypeScriptInfoOptions } from "./collectTypeScriptInfo";
|
|
3
5
|
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./types";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { z } from "../../../compiled/zod";
|
|
2
1
|
type RawStyleConfig = {
|
|
3
2
|
styleLibraryDirectory?: string;
|
|
4
3
|
custom?: string;
|
|
@@ -28,41 +27,7 @@ type PluginImportConfig = {
|
|
|
28
27
|
ignoreEsComponent?: string[];
|
|
29
28
|
ignoreStyleComponent?: string[];
|
|
30
29
|
};
|
|
31
|
-
type PluginImportOptions = PluginImportConfig[]
|
|
32
|
-
export declare const ZodSwcPluginImportConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
-
libraryName: z.ZodString;
|
|
34
|
-
libraryDirectory: z.ZodOptional<z.ZodString>;
|
|
35
|
-
customName: z.ZodOptional<z.ZodString>;
|
|
36
|
-
customStyleName: z.ZodOptional<z.ZodString>;
|
|
37
|
-
style: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
38
|
-
styleLibraryDirectory: z.ZodOptional<z.ZodString>;
|
|
39
|
-
camelToDashComponentName: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
-
transformToDefaultImport: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
-
ignoreEsComponent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
-
ignoreStyleComponent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
-
}, "strict", z.ZodTypeAny, {
|
|
44
|
-
libraryName: string;
|
|
45
|
-
libraryDirectory?: string | undefined;
|
|
46
|
-
customName?: string | undefined;
|
|
47
|
-
customStyleName?: string | undefined;
|
|
48
|
-
style?: string | boolean | undefined;
|
|
49
|
-
styleLibraryDirectory?: string | undefined;
|
|
50
|
-
camelToDashComponentName?: boolean | undefined;
|
|
51
|
-
transformToDefaultImport?: boolean | undefined;
|
|
52
|
-
ignoreEsComponent?: string[] | undefined;
|
|
53
|
-
ignoreStyleComponent?: string[] | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
libraryName: string;
|
|
56
|
-
libraryDirectory?: string | undefined;
|
|
57
|
-
customName?: string | undefined;
|
|
58
|
-
customStyleName?: string | undefined;
|
|
59
|
-
style?: string | boolean | undefined;
|
|
60
|
-
styleLibraryDirectory?: string | undefined;
|
|
61
|
-
camelToDashComponentName?: boolean | undefined;
|
|
62
|
-
transformToDefaultImport?: boolean | undefined;
|
|
63
|
-
ignoreEsComponent?: string[] | undefined;
|
|
64
|
-
ignoreStyleComponent?: string[] | undefined;
|
|
65
|
-
}>, "many">>;
|
|
30
|
+
type PluginImportOptions = PluginImportConfig[];
|
|
66
31
|
declare function resolvePluginImport(pluginImport: PluginImportOptions): RawPluginImportConfig[] | undefined;
|
|
67
32
|
export { resolvePluginImport };
|
|
68
33
|
export type { PluginImportOptions };
|