@rspack/core 1.4.7-alpha.1 → 1.4.8
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/glob-to-regexp/index.d.ts +11 -0
- package/compiled/glob-to-regexp/index.js +187 -0
- package/compiled/glob-to-regexp/package.json +1 -0
- package/compiled/watchpack/index.js +9 -149
- package/dist/Compilation.d.ts +13 -7
- package/dist/Compiler.d.ts +10 -10
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/NativeWatchFileSystem.d.ts +17 -0
- package/dist/NormalModule.d.ts +1 -1
- package/dist/ResolverFactory.d.ts +1 -1
- package/dist/Watching.d.ts +10 -1
- package/dist/builtin-loader/swc/index.d.ts +3 -3
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/index.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +20 -20
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/adapterRuleUse.d.ts +2 -2
- package/dist/config/devServer.d.ts +1 -1
- package/dist/config/normalization.d.ts +3 -2
- package/dist/config/types.d.ts +8 -3
- package/dist/container/ContainerPlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +22 -62
- package/dist/index.js +6762 -6666
- package/dist/lib/Cache.d.ts +1 -1
- package/dist/lib/CacheFacade.d.ts +1 -1
- package/dist/loader-runner/utils.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/schema/config.d.ts +50 -49
- package/dist/schema/plugins.d.ts +7 -7
- package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/sharing/ProvideSharedPlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
- package/dist/util/fs.d.ts +10 -1
- package/hot/lazy-compilation-node.js +0 -2
- package/hot/lazy-compilation-web.js +0 -2
- package/package.json +4 -2
package/dist/lib/Cache.d.ts
CHANGED
@@ -13,7 +13,7 @@ export interface Etag {
|
|
13
13
|
toString(): string;
|
14
14
|
}
|
15
15
|
export type CallbackCache<T> = (err?: WebpackError | null, result?: T) => void;
|
16
|
-
type GotHandler
|
16
|
+
type GotHandler = (result: any | null, callback: (error: Error | null) => void) => void;
|
17
17
|
export declare class Cache {
|
18
18
|
static STAGE_DISK: number;
|
19
19
|
static STAGE_MEMORY: number;
|
@@ -8,8 +8,8 @@
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
10
|
import type { Cache, CallbackCache, Etag } from "./Cache";
|
11
|
+
import type { HashableObject, HashConstructor } from "./cache/getLazyHashedEtag";
|
11
12
|
import type WebpackError from "./WebpackError";
|
12
|
-
import type { HashConstructor, HashableObject } from "./cache/getLazyHashedEtag";
|
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;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { LoaderObject } from ".";
|
2
1
|
import type { LoaderContext } from "../config/adapterRuleUse";
|
2
|
+
import type { LoaderObject } from ".";
|
3
3
|
export declare function convertArgs(args: any[], raw: boolean): void;
|
4
4
|
export declare const loadLoader: (loaderObject: LoaderObject) => Promise<void>;
|
5
5
|
export declare const runSyncOrAsync: (arg1: Function, arg2: LoaderContext<{}>, arg3: any[]) => Promise<any[]>;
|
@@ -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,
|
11
|
+
import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from "../util/fs";
|
12
12
|
export default class NodeWatchFileSystem implements WatchFileSystem {
|
13
13
|
inputFileSystem: InputFileSystem;
|
14
14
|
watcherOptions: Watchpack.WatchOptions;
|
package/dist/rspack.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { Callback } from "@rspack/lite-tapable";
|
2
2
|
import { Compiler } from "./Compiler";
|
3
|
+
import { type RspackOptions } from "./config";
|
3
4
|
import { MultiCompiler, type MultiRspackOptions } from "./MultiCompiler";
|
4
5
|
import MultiStats from "./MultiStats";
|
5
6
|
import { Stats } from "./Stats";
|
6
|
-
import { type RspackOptions } from "./config";
|
7
7
|
declare function createMultiCompiler(options: MultiRspackOptions): MultiCompiler;
|
8
8
|
declare function createCompiler(userOptions: RspackOptions): Compiler;
|
9
9
|
declare function rspack(options: MultiRspackOptions): MultiCompiler;
|
package/dist/schema/config.d.ts
CHANGED
@@ -3,6 +3,9 @@ import * as z from "zod/v4";
|
|
3
3
|
import type * as t from "../config/types";
|
4
4
|
export declare const getExternalsTypeSchema: () => z.ZodEnum<{
|
5
5
|
module: "module";
|
6
|
+
global: "global";
|
7
|
+
system: "system";
|
8
|
+
promise: "promise";
|
6
9
|
import: "import";
|
7
10
|
jsonp: "jsonp";
|
8
11
|
var: "var";
|
@@ -10,7 +13,6 @@ export declare const getExternalsTypeSchema: () => z.ZodEnum<{
|
|
10
13
|
this: "this";
|
11
14
|
window: "window";
|
12
15
|
self: "self";
|
13
|
-
global: "global";
|
14
16
|
commonjs: "commonjs";
|
15
17
|
commonjs2: "commonjs2";
|
16
18
|
"commonjs-module": "commonjs-module";
|
@@ -19,8 +21,6 @@ export declare const getExternalsTypeSchema: () => z.ZodEnum<{
|
|
19
21
|
"amd-require": "amd-require";
|
20
22
|
umd: "umd";
|
21
23
|
umd2: "umd2";
|
22
|
-
system: "system";
|
23
|
-
promise: "promise";
|
24
24
|
"module-import": "module-import";
|
25
25
|
script: "script";
|
26
26
|
"node-commonjs": "node-commonjs";
|
@@ -36,10 +36,10 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
36
36
|
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>]>>;
|
37
37
|
baseUri: z.ZodOptional<z.ZodString>;
|
38
38
|
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<{
|
39
|
+
require: "require";
|
39
40
|
import: "import";
|
40
41
|
jsonp: "jsonp";
|
41
42
|
"import-scripts": "import-scripts";
|
42
|
-
require: "require";
|
43
43
|
"async-node": "async-node";
|
44
44
|
}>, z.ZodString]>]>>;
|
45
45
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
@@ -65,6 +65,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
65
65
|
}, z.core.$strict>]>>;
|
66
66
|
type: z.ZodUnion<[z.ZodEnum<{
|
67
67
|
module: "module";
|
68
|
+
global: "global";
|
69
|
+
system: "system";
|
68
70
|
jsonp: "jsonp";
|
69
71
|
var: "var";
|
70
72
|
assign: "assign";
|
@@ -72,7 +74,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
72
74
|
this: "this";
|
73
75
|
window: "window";
|
74
76
|
self: "self";
|
75
|
-
global: "global";
|
76
77
|
commonjs: "commonjs";
|
77
78
|
commonjs2: "commonjs2";
|
78
79
|
"commonjs-module": "commonjs-module";
|
@@ -81,7 +82,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
81
82
|
"amd-require": "amd-require";
|
82
83
|
umd: "umd";
|
83
84
|
umd2: "umd2";
|
84
|
-
system: "system";
|
85
85
|
}>, z.ZodString]>;
|
86
86
|
umdNamedDefine: z.ZodOptional<z.ZodBoolean>;
|
87
87
|
}, z.core.$strict>>;
|
@@ -112,6 +112,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
112
112
|
chunkLoadingGlobal: z.ZodOptional<z.ZodString>;
|
113
113
|
enabledLibraryTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<{
|
114
114
|
module: "module";
|
115
|
+
global: "global";
|
116
|
+
system: "system";
|
115
117
|
jsonp: "jsonp";
|
116
118
|
var: "var";
|
117
119
|
assign: "assign";
|
@@ -119,7 +121,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
119
121
|
this: "this";
|
120
122
|
window: "window";
|
121
123
|
self: "self";
|
122
|
-
global: "global";
|
123
124
|
commonjs: "commonjs";
|
124
125
|
commonjs2: "commonjs2";
|
125
126
|
"commonjs-module": "commonjs-module";
|
@@ -128,7 +129,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
128
129
|
"amd-require": "amd-require";
|
129
130
|
umd: "umd";
|
130
131
|
umd2: "umd2";
|
131
|
-
system: "system";
|
132
132
|
}>, z.ZodString]>>>;
|
133
133
|
library: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
134
134
|
amd: z.ZodOptional<z.ZodString>;
|
@@ -150,6 +150,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
150
150
|
}, z.core.$strict>]>>;
|
151
151
|
type: z.ZodUnion<[z.ZodEnum<{
|
152
152
|
module: "module";
|
153
|
+
global: "global";
|
154
|
+
system: "system";
|
153
155
|
jsonp: "jsonp";
|
154
156
|
var: "var";
|
155
157
|
assign: "assign";
|
@@ -157,7 +159,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
157
159
|
this: "this";
|
158
160
|
window: "window";
|
159
161
|
self: "self";
|
160
|
-
global: "global";
|
161
162
|
commonjs: "commonjs";
|
162
163
|
commonjs2: "commonjs2";
|
163
164
|
"commonjs-module": "commonjs-module";
|
@@ -166,13 +167,14 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
166
167
|
"amd-require": "amd-require";
|
167
168
|
umd: "umd";
|
168
169
|
umd2: "umd2";
|
169
|
-
system: "system";
|
170
170
|
}>, z.ZodString]>;
|
171
171
|
umdNamedDefine: z.ZodOptional<z.ZodBoolean>;
|
172
172
|
}, z.core.$strict>]>>>;
|
173
173
|
libraryExport: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>;
|
174
174
|
libraryTarget: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
175
175
|
module: "module";
|
176
|
+
global: "global";
|
177
|
+
system: "system";
|
176
178
|
jsonp: "jsonp";
|
177
179
|
var: "var";
|
178
180
|
assign: "assign";
|
@@ -180,7 +182,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
180
182
|
this: "this";
|
181
183
|
window: "window";
|
182
184
|
self: "self";
|
183
|
-
global: "global";
|
184
185
|
commonjs: "commonjs";
|
185
186
|
commonjs2: "commonjs2";
|
186
187
|
"commonjs-module": "commonjs-module";
|
@@ -189,7 +190,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
189
190
|
"amd-require": "amd-require";
|
190
191
|
umd: "umd";
|
191
192
|
umd2: "umd2";
|
192
|
-
system: "system";
|
193
193
|
}>, z.ZodString]>>;
|
194
194
|
umdNamedDefine: z.ZodOptional<z.ZodBoolean>;
|
195
195
|
auxiliaryComment: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -218,17 +218,17 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
218
218
|
webassemblyModuleFilename: z.ZodOptional<z.ZodString>;
|
219
219
|
chunkFormat: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
220
220
|
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<{
|
221
|
+
require: "require";
|
221
222
|
import: "import";
|
222
223
|
jsonp: "jsonp";
|
223
224
|
"import-scripts": "import-scripts";
|
224
|
-
require: "require";
|
225
225
|
"async-node": "async-node";
|
226
226
|
}>, z.ZodString]>]>>;
|
227
227
|
enabledChunkLoadingTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<{
|
228
|
+
require: "require";
|
228
229
|
import: "import";
|
229
230
|
jsonp: "jsonp";
|
230
231
|
"import-scripts": "import-scripts";
|
231
|
-
require: "require";
|
232
232
|
"async-node": "async-node";
|
233
233
|
}>, z.ZodString]>>>;
|
234
234
|
trustedTypes: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<true>, z.ZodString]>, z.ZodObject<{
|
@@ -249,10 +249,10 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
249
249
|
hashSalt: z.ZodOptional<z.ZodString>;
|
250
250
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
251
251
|
workerChunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<{
|
252
|
+
require: "require";
|
252
253
|
import: "import";
|
253
254
|
jsonp: "jsonp";
|
254
255
|
"import-scripts": "import-scripts";
|
255
|
-
require: "require";
|
256
256
|
"async-node": "async-node";
|
257
257
|
}>, z.ZodString]>]>>;
|
258
258
|
workerWasmLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<{
|
@@ -403,10 +403,14 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
403
403
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
404
404
|
inlineEnum: z.ZodOptional<z.ZodBoolean>;
|
405
405
|
typeReexportsPresence: z.ZodOptional<z.ZodBoolean>;
|
406
|
+
nativeWatcher: z.ZodOptional<z.ZodBoolean>;
|
406
407
|
}, z.core.$strict>>;
|
407
408
|
externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>]>>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>]>>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>]>>;
|
408
409
|
externalsType: z.ZodOptional<z.ZodEnum<{
|
409
410
|
module: "module";
|
411
|
+
global: "global";
|
412
|
+
system: "system";
|
413
|
+
promise: "promise";
|
410
414
|
import: "import";
|
411
415
|
jsonp: "jsonp";
|
412
416
|
var: "var";
|
@@ -414,7 +418,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
414
418
|
this: "this";
|
415
419
|
window: "window";
|
416
420
|
self: "self";
|
417
|
-
global: "global";
|
418
421
|
commonjs: "commonjs";
|
419
422
|
commonjs2: "commonjs2";
|
420
423
|
"commonjs-module": "commonjs-module";
|
@@ -423,8 +426,6 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
423
426
|
"amd-require": "amd-require";
|
424
427
|
umd: "umd";
|
425
428
|
umd2: "umd2";
|
426
|
-
system: "system";
|
427
|
-
promise: "promise";
|
428
429
|
"module-import": "module-import";
|
429
430
|
script: "script";
|
430
431
|
"node-commonjs": "node-commonjs";
|
@@ -446,12 +447,12 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
446
447
|
console: z.ZodOptional<z.ZodCustom<Console, Console>>;
|
447
448
|
debug: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodCustom<RegExp, RegExp>, z.ZodString]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodCustom<RegExp, RegExp>, z.ZodString]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>]>]>>;
|
448
449
|
level: z.ZodOptional<z.ZodEnum<{
|
449
|
-
none: "none";
|
450
|
-
verbose: "verbose";
|
451
450
|
error: "error";
|
452
451
|
warn: "warn";
|
453
452
|
info: "info";
|
454
453
|
log: "log";
|
454
|
+
none: "none";
|
455
|
+
verbose: "verbose";
|
455
456
|
}>>;
|
456
457
|
stream: z.ZodOptional<z.ZodCustom<NodeJS.WritableStream, NodeJS.WritableStream>>;
|
457
458
|
}, z.core.$strict>>;
|
@@ -532,12 +533,12 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
532
533
|
nestedModules: z.ZodOptional<z.ZodBoolean>;
|
533
534
|
source: z.ZodOptional<z.ZodBoolean>;
|
534
535
|
logging: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
535
|
-
none: "none";
|
536
|
-
verbose: "verbose";
|
537
536
|
error: "error";
|
538
537
|
warn: "warn";
|
539
538
|
info: "info";
|
540
539
|
log: "log";
|
540
|
+
none: "none";
|
541
|
+
verbose: "verbose";
|
541
542
|
}>, z.ZodBoolean]>>;
|
542
543
|
loggingDebug: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodCustom<RegExp, RegExp>, z.ZodString]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodUnion<[z.ZodUnion<[z.ZodCustom<RegExp, RegExp>, z.ZodString]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>]>]>>;
|
543
544
|
loggingTrace: z.ZodOptional<z.ZodBoolean>;
|
@@ -598,20 +599,20 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
598
599
|
deterministic: "deterministic";
|
599
600
|
}>>;
|
600
601
|
chunkIds: z.ZodOptional<z.ZodEnum<{
|
602
|
+
size: "size";
|
601
603
|
named: "named";
|
602
604
|
natural: "natural";
|
603
605
|
deterministic: "deterministic";
|
604
|
-
size: "size";
|
605
606
|
"total-size": "total-size";
|
606
607
|
}>>;
|
607
608
|
minimize: z.ZodOptional<z.ZodBoolean>;
|
608
|
-
minimizer: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"...">, z.ZodUnion<readonly [z.ZodCustom<t.RspackPluginInstance | t.
|
609
|
+
minimizer: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"...">, z.ZodUnion<readonly [z.ZodCustom<t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction, t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction>, z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>]>>>;
|
609
610
|
mergeDuplicateChunks: z.ZodOptional<z.ZodBoolean>;
|
610
611
|
splitChunks: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
611
612
|
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<{
|
612
613
|
all: "all";
|
613
|
-
initial: "initial";
|
614
614
|
async: "async";
|
615
|
+
initial: "initial";
|
615
616
|
}>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>;
|
616
617
|
defaultSizeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
617
618
|
minChunks: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>>;
|
@@ -629,8 +630,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
629
630
|
cacheGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
630
631
|
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<{
|
631
632
|
all: "all";
|
632
|
-
initial: "initial";
|
633
633
|
async: "async";
|
634
|
+
initial: "initial";
|
634
635
|
}>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>;
|
635
636
|
defaultSizeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
636
637
|
minChunks: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>>;
|
@@ -656,8 +657,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
656
657
|
fallbackCacheGroup: z.ZodOptional<z.ZodObject<{
|
657
658
|
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<{
|
658
659
|
all: "all";
|
659
|
-
initial: "initial";
|
660
660
|
async: "async";
|
661
|
+
initial: "initial";
|
661
662
|
}>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>;
|
662
663
|
minSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>>;
|
663
664
|
maxSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>>;
|
@@ -686,8 +687,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
686
687
|
global: "global";
|
687
688
|
}>, z.ZodBoolean]>>;
|
688
689
|
mangleExports: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
689
|
-
deterministic: "deterministic";
|
690
690
|
size: "size";
|
691
|
+
deterministic: "deterministic";
|
691
692
|
}>, z.ZodBoolean]>>;
|
692
693
|
nodeEnv: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
693
694
|
emitOnErrors: z.ZodOptional<z.ZodBoolean>;
|
@@ -695,7 +696,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
695
696
|
}, z.core.$strict>>;
|
696
697
|
resolve: z.ZodOptional<z.ZodType<t.ResolveOptions, unknown, z.core.$ZodTypeInternals<t.ResolveOptions, unknown>>>;
|
697
698
|
resolveLoader: z.ZodOptional<z.ZodType<t.ResolveOptions, unknown, z.core.$ZodTypeInternals<t.ResolveOptions, unknown>>>;
|
698
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodCustom<t.RspackPluginInstance | t.
|
699
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodCustom<t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction, t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction>, z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>>>;
|
699
700
|
devServer: z.ZodOptional<z.ZodCustom<t.DevServer, t.DevServer>>;
|
700
701
|
module: z.ZodOptional<z.ZodObject<{
|
701
702
|
defaultRules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"...">, z.ZodType<t.RuleSetRule, unknown, z.core.$ZodTypeInternals<t.RuleSetRule, unknown>>]>, z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>>>;
|
@@ -720,9 +721,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
720
721
|
}, z.core.$strict>>;
|
721
722
|
javascript: z.ZodOptional<z.ZodObject<{
|
722
723
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
723
|
-
lazy: "lazy";
|
724
|
-
eager: "eager";
|
725
724
|
weak: "weak";
|
725
|
+
eager: "eager";
|
726
|
+
lazy: "lazy";
|
726
727
|
"lazy-once": "lazy-once";
|
727
728
|
}>>;
|
728
729
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>]>>;
|
@@ -738,19 +739,19 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
738
739
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
739
740
|
wrappedContextRegExp: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
|
740
741
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
741
|
-
auto: "auto";
|
742
742
|
error: "error";
|
743
743
|
warn: "warn";
|
744
|
+
auto: "auto";
|
744
745
|
}>, z.ZodLiteral<false>]>>;
|
745
746
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
746
|
-
auto: "auto";
|
747
747
|
error: "error";
|
748
748
|
warn: "warn";
|
749
|
+
auto: "auto";
|
749
750
|
}>, z.ZodLiteral<false>]>>;
|
750
751
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
751
|
-
auto: "auto";
|
752
752
|
error: "error";
|
753
753
|
warn: "warn";
|
754
|
+
auto: "auto";
|
754
755
|
}>, z.ZodLiteral<false>]>>;
|
755
756
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
756
757
|
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodBoolean]>>;
|
@@ -771,9 +772,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
771
772
|
}, z.core.$strict>>;
|
772
773
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
773
774
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
774
|
-
lazy: "lazy";
|
775
|
-
eager: "eager";
|
776
775
|
weak: "weak";
|
776
|
+
eager: "eager";
|
777
|
+
lazy: "lazy";
|
777
778
|
"lazy-once": "lazy-once";
|
778
779
|
}>>;
|
779
780
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>]>>;
|
@@ -789,19 +790,19 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
789
790
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
790
791
|
wrappedContextRegExp: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
|
791
792
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
792
|
-
auto: "auto";
|
793
793
|
error: "error";
|
794
794
|
warn: "warn";
|
795
|
+
auto: "auto";
|
795
796
|
}>, z.ZodLiteral<false>]>>;
|
796
797
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
797
|
-
auto: "auto";
|
798
798
|
error: "error";
|
799
799
|
warn: "warn";
|
800
|
+
auto: "auto";
|
800
801
|
}>, z.ZodLiteral<false>]>>;
|
801
802
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
802
|
-
auto: "auto";
|
803
803
|
error: "error";
|
804
804
|
warn: "warn";
|
805
|
+
auto: "auto";
|
805
806
|
}>, z.ZodLiteral<false>]>>;
|
806
807
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
807
808
|
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodBoolean]>>;
|
@@ -822,9 +823,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
822
823
|
}, z.core.$strict>>;
|
823
824
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
824
825
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
825
|
-
lazy: "lazy";
|
826
|
-
eager: "eager";
|
827
826
|
weak: "weak";
|
827
|
+
eager: "eager";
|
828
|
+
lazy: "lazy";
|
828
829
|
"lazy-once": "lazy-once";
|
829
830
|
}>>;
|
830
831
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>]>>;
|
@@ -840,19 +841,19 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
840
841
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
841
842
|
wrappedContextRegExp: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
|
842
843
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
843
|
-
auto: "auto";
|
844
844
|
error: "error";
|
845
845
|
warn: "warn";
|
846
|
+
auto: "auto";
|
846
847
|
}>, z.ZodLiteral<false>]>>;
|
847
848
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
848
|
-
auto: "auto";
|
849
849
|
error: "error";
|
850
850
|
warn: "warn";
|
851
|
+
auto: "auto";
|
851
852
|
}>, z.ZodLiteral<false>]>>;
|
852
853
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
853
|
-
auto: "auto";
|
854
854
|
error: "error";
|
855
855
|
warn: "warn";
|
856
|
+
auto: "auto";
|
856
857
|
}>, z.ZodLiteral<false>]>>;
|
857
858
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
858
859
|
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodBoolean]>>;
|
@@ -873,9 +874,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
873
874
|
}, z.core.$strict>>;
|
874
875
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
875
876
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
876
|
-
lazy: "lazy";
|
877
|
-
eager: "eager";
|
878
877
|
weak: "weak";
|
878
|
+
eager: "eager";
|
879
|
+
lazy: "lazy";
|
879
880
|
"lazy-once": "lazy-once";
|
880
881
|
}>>;
|
881
882
|
dynamicImportPreload: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>]>>;
|
@@ -891,19 +892,19 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
891
892
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
892
893
|
wrappedContextRegExp: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
|
893
894
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
894
|
-
auto: "auto";
|
895
895
|
error: "error";
|
896
896
|
warn: "warn";
|
897
|
+
auto: "auto";
|
897
898
|
}>, z.ZodLiteral<false>]>>;
|
898
899
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
899
|
-
auto: "auto";
|
900
900
|
error: "error";
|
901
901
|
warn: "warn";
|
902
|
+
auto: "auto";
|
902
903
|
}>, z.ZodLiteral<false>]>>;
|
903
904
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
904
|
-
auto: "auto";
|
905
905
|
error: "error";
|
906
906
|
warn: "warn";
|
907
|
+
auto: "auto";
|
907
908
|
}>, z.ZodLiteral<false>]>>;
|
908
909
|
strictExportPresence: z.ZodOptional<z.ZodBoolean>;
|
909
910
|
worker: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodBoolean]>>;
|
package/dist/schema/plugins.d.ts
CHANGED
@@ -50,12 +50,13 @@ export declare const getDllReferencePluginOptionsSchema: () => z.ZodUnion<readon
|
|
50
50
|
}, z.core.$strip>>;
|
51
51
|
name: z.ZodOptional<z.ZodString>;
|
52
52
|
type: z.ZodOptional<z.ZodEnum<{
|
53
|
+
global: "global";
|
54
|
+
system: "system";
|
53
55
|
jsonp: "jsonp";
|
54
56
|
var: "var";
|
55
57
|
assign: "assign";
|
56
58
|
this: "this";
|
57
59
|
window: "window";
|
58
|
-
global: "global";
|
59
60
|
commonjs: "commonjs";
|
60
61
|
commonjs2: "commonjs2";
|
61
62
|
"commonjs-module": "commonjs-module";
|
@@ -63,18 +64,18 @@ export declare const getDllReferencePluginOptionsSchema: () => z.ZodUnion<readon
|
|
63
64
|
"amd-require": "amd-require";
|
64
65
|
umd: "umd";
|
65
66
|
umd2: "umd2";
|
66
|
-
system: "system";
|
67
67
|
}>>;
|
68
68
|
}, z.core.$strip>]>;
|
69
69
|
name: z.ZodOptional<z.ZodString>;
|
70
70
|
scope: z.ZodOptional<z.ZodString>;
|
71
71
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
72
|
+
global: "global";
|
73
|
+
system: "system";
|
72
74
|
jsonp: "jsonp";
|
73
75
|
var: "var";
|
74
76
|
assign: "assign";
|
75
77
|
this: "this";
|
76
78
|
window: "window";
|
77
|
-
global: "global";
|
78
79
|
commonjs: "commonjs";
|
79
80
|
commonjs2: "commonjs2";
|
80
81
|
"commonjs-module": "commonjs-module";
|
@@ -82,7 +83,6 @@ export declare const getDllReferencePluginOptionsSchema: () => z.ZodUnion<readon
|
|
82
83
|
"amd-require": "amd-require";
|
83
84
|
umd: "umd";
|
84
85
|
umd2: "umd2";
|
85
|
-
system: "system";
|
86
86
|
}>>;
|
87
87
|
type: z.ZodOptional<z.ZodEnum<{
|
88
88
|
object: "object";
|
@@ -99,12 +99,13 @@ export declare const getDllReferencePluginOptionsSchema: () => z.ZodUnion<readon
|
|
99
99
|
name: z.ZodString;
|
100
100
|
scope: z.ZodOptional<z.ZodString>;
|
101
101
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
102
|
+
global: "global";
|
103
|
+
system: "system";
|
102
104
|
jsonp: "jsonp";
|
103
105
|
var: "var";
|
104
106
|
assign: "assign";
|
105
107
|
this: "this";
|
106
108
|
window: "window";
|
107
|
-
global: "global";
|
108
109
|
commonjs: "commonjs";
|
109
110
|
commonjs2: "commonjs2";
|
110
111
|
"commonjs-module": "commonjs-module";
|
@@ -112,7 +113,6 @@ export declare const getDllReferencePluginOptionsSchema: () => z.ZodUnion<readon
|
|
112
113
|
"amd-require": "amd-require";
|
113
114
|
umd: "umd";
|
114
115
|
umd2: "umd2";
|
115
|
-
system: "system";
|
116
116
|
}>>;
|
117
117
|
type: z.ZodOptional<z.ZodEnum<{
|
118
118
|
object: "object";
|
@@ -132,9 +132,9 @@ export declare const getHtmlPluginOptionsSchema: () => z.ZodObject<{
|
|
132
132
|
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
133
133
|
href: z.ZodOptional<z.ZodString>;
|
134
134
|
target: z.ZodOptional<z.ZodEnum<{
|
135
|
+
_parent: "_parent";
|
135
136
|
_self: "_self";
|
136
137
|
_blank: "_blank";
|
137
|
-
_parent: "_parent";
|
138
138
|
_top: "_top";
|
139
139
|
}>>;
|
140
140
|
}, z.core.$strict>]>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type BuiltinPlugin, BuiltinPluginName } from "@rspack/binding";
|
2
|
-
import type { Compiler } from "../Compiler";
|
3
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
3
|
+
import type { Compiler } from "../Compiler";
|
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 type { Compiler } from "../Compiler";
|
3
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
3
|
+
import type { Compiler } from "../Compiler";
|
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 type { Compiler } from "../Compiler";
|
3
2
|
import { RspackBuiltinPlugin } from "../builtin-plugin/base";
|
3
|
+
import type { Compiler } from "../Compiler";
|
4
4
|
export declare class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
5
5
|
private enhanced;
|
6
6
|
name: BuiltinPluginName;
|
package/dist/util/fs.d.ts
CHANGED
@@ -338,6 +338,15 @@ export interface FileSystemInfoEntry {
|
|
338
338
|
timestamp?: number;
|
339
339
|
}
|
340
340
|
export interface WatchFileSystem {
|
341
|
-
watch(files: Iterable<string
|
341
|
+
watch(files: Iterable<string> & {
|
342
|
+
added?: Iterable<String>;
|
343
|
+
removed?: Iterable<String>;
|
344
|
+
}, directories: Iterable<string> & {
|
345
|
+
added?: Iterable<String>;
|
346
|
+
removed?: Iterable<String>;
|
347
|
+
}, missing: Iterable<string> & {
|
348
|
+
added?: Iterable<String>;
|
349
|
+
removed?: Iterable<String>;
|
350
|
+
}, startTime: number, options: WatchOptions, callback: (error: Error | null, fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, changedFiles: Set<string>, removedFiles: Set<string>) => void, callbackUndelayed: (fileName: string, changeTime: number) => void): Watcher;
|
342
351
|
}
|
343
352
|
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspack/core",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.8",
|
4
4
|
"webpackVersion": "5.75.0",
|
5
5
|
"license": "MIT",
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
@@ -52,13 +52,15 @@
|
|
52
52
|
"typescript": "^5.8.3",
|
53
53
|
"watchpack": "^2.4.4",
|
54
54
|
"webpack-sources": "3.3.3",
|
55
|
+
"glob-to-regexp": "^0.4.1",
|
55
56
|
"zod": "^3.25.76",
|
57
|
+
"@types/glob-to-regexp": "^0.4.4",
|
56
58
|
"zod-validation-error": "3.5.3"
|
57
59
|
},
|
58
60
|
"dependencies": {
|
59
61
|
"@module-federation/runtime-tools": "0.16.0",
|
60
62
|
"@rspack/lite-tapable": "1.0.1",
|
61
|
-
"@rspack/binding": "1.4.
|
63
|
+
"@rspack/binding": "1.4.8"
|
62
64
|
},
|
63
65
|
"peerDependencies": {
|
64
66
|
"@swc/helpers": ">=0.5.1"
|