@rspack/core 1.4.10 → 1.5.0-beta.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/compiled/watchpack/index.js +149 -9
- package/dist/Compilation.d.ts +2 -2
- package/dist/Compiler.d.ts +5 -0
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/NativeWatchFileSystem.d.ts +3 -1
- package/dist/NormalModuleFactory.d.ts +2 -2
- package/dist/Resolver.d.ts +0 -6
- package/dist/ResolverFactory.d.ts +8 -5
- package/dist/VirtualModulesPlugin.d.ts +12 -0
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +13 -0
- package/dist/builtin-loader/swc/types.d.ts +4 -0
- 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 +5 -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/plugin.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/normalization.d.ts +7 -0
- package/dist/config/types.d.ts +19 -5
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/cssExtractLoader.js +55 -53
- package/dist/exports.d.ts +9 -1
- package/dist/index.js +313 -234
- package/dist/loader-runner/loadLoader.d.ts +2 -1
- package/dist/loader-runner/service.d.ts +1 -1
- package/dist/loader-runner/utils.d.ts +2 -1
- package/dist/schema/config.d.ts +56 -47
- package/dist/schema/loaders.d.ts +5 -5
- package/dist/schema/plugins.d.ts +14 -10
- package/dist/util/bindingVersionCheck.d.ts +1 -1
- package/dist/util/require.d.ts +3 -0
- package/dist/worker.js +44 -9
- package/module.d.ts +9 -10
- package/package.json +11 -9
- package/compiled/glob-to-regexp/index.d.ts +0 -11
- package/compiled/glob-to-regexp/index.js +0 -187
- package/compiled/glob-to-regexp/package.json +0 -1
@@ -1,10 +1,147 @@
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
2
|
-
/******/ "use strict";
|
3
2
|
/******/ var __webpack_modules__ = ({
|
4
3
|
|
4
|
+
/***/ 137:
|
5
|
+
/***/ ((module) => {
|
6
|
+
|
7
|
+
module.exports = function (glob, opts) {
|
8
|
+
if (typeof glob !== 'string') {
|
9
|
+
throw new TypeError('Expected a string');
|
10
|
+
}
|
11
|
+
|
12
|
+
var str = String(glob);
|
13
|
+
|
14
|
+
// The regexp we are building, as a string.
|
15
|
+
var reStr = "";
|
16
|
+
|
17
|
+
// Whether we are matching so called "extended" globs (like bash) and should
|
18
|
+
// support single character matching, matching ranges of characters, group
|
19
|
+
// matching, etc.
|
20
|
+
var extended = opts ? !!opts.extended : false;
|
21
|
+
|
22
|
+
// When globstar is _false_ (default), '/foo/*' is translated a regexp like
|
23
|
+
// '^\/foo\/.*$' which will match any string beginning with '/foo/'
|
24
|
+
// When globstar is _true_, '/foo/*' is translated to regexp like
|
25
|
+
// '^\/foo\/[^/]*$' which will match any string beginning with '/foo/' BUT
|
26
|
+
// which does not have a '/' to the right of it.
|
27
|
+
// E.g. with '/foo/*' these will match: '/foo/bar', '/foo/bar.txt' but
|
28
|
+
// these will not '/foo/bar/baz', '/foo/bar/baz.txt'
|
29
|
+
// Lastely, when globstar is _true_, '/foo/**' is equivelant to '/foo/*' when
|
30
|
+
// globstar is _false_
|
31
|
+
var globstar = opts ? !!opts.globstar : false;
|
32
|
+
|
33
|
+
// If we are doing extended matching, this boolean is true when we are inside
|
34
|
+
// a group (eg {*.html,*.js}), and false otherwise.
|
35
|
+
var inGroup = false;
|
36
|
+
|
37
|
+
// RegExp flags (eg "i" ) to pass in to RegExp constructor.
|
38
|
+
var flags = opts && typeof( opts.flags ) === "string" ? opts.flags : "";
|
39
|
+
|
40
|
+
var c;
|
41
|
+
for (var i = 0, len = str.length; i < len; i++) {
|
42
|
+
c = str[i];
|
43
|
+
|
44
|
+
switch (c) {
|
45
|
+
case "/":
|
46
|
+
case "$":
|
47
|
+
case "^":
|
48
|
+
case "+":
|
49
|
+
case ".":
|
50
|
+
case "(":
|
51
|
+
case ")":
|
52
|
+
case "=":
|
53
|
+
case "!":
|
54
|
+
case "|":
|
55
|
+
reStr += "\\" + c;
|
56
|
+
break;
|
57
|
+
|
58
|
+
case "?":
|
59
|
+
if (extended) {
|
60
|
+
reStr += ".";
|
61
|
+
break;
|
62
|
+
}
|
63
|
+
|
64
|
+
case "[":
|
65
|
+
case "]":
|
66
|
+
if (extended) {
|
67
|
+
reStr += c;
|
68
|
+
break;
|
69
|
+
}
|
70
|
+
|
71
|
+
case "{":
|
72
|
+
if (extended) {
|
73
|
+
inGroup = true;
|
74
|
+
reStr += "(";
|
75
|
+
break;
|
76
|
+
}
|
77
|
+
|
78
|
+
case "}":
|
79
|
+
if (extended) {
|
80
|
+
inGroup = false;
|
81
|
+
reStr += ")";
|
82
|
+
break;
|
83
|
+
}
|
84
|
+
|
85
|
+
case ",":
|
86
|
+
if (inGroup) {
|
87
|
+
reStr += "|";
|
88
|
+
break;
|
89
|
+
}
|
90
|
+
reStr += "\\" + c;
|
91
|
+
break;
|
92
|
+
|
93
|
+
case "*":
|
94
|
+
// Move over all consecutive "*"'s.
|
95
|
+
// Also store the previous and next characters
|
96
|
+
var prevChar = str[i - 1];
|
97
|
+
var starCount = 1;
|
98
|
+
while(str[i + 1] === "*") {
|
99
|
+
starCount++;
|
100
|
+
i++;
|
101
|
+
}
|
102
|
+
var nextChar = str[i + 1];
|
103
|
+
|
104
|
+
if (!globstar) {
|
105
|
+
// globstar is disabled, so treat any number of "*" as one
|
106
|
+
reStr += ".*";
|
107
|
+
} else {
|
108
|
+
// globstar is enabled, so determine if this is a globstar segment
|
109
|
+
var isGlobstar = starCount > 1 // multiple "*"'s
|
110
|
+
&& (prevChar === "/" || prevChar === undefined) // from the start of the segment
|
111
|
+
&& (nextChar === "/" || nextChar === undefined) // to the end of the segment
|
112
|
+
|
113
|
+
if (isGlobstar) {
|
114
|
+
// it's a globstar, so match zero or more path segments
|
115
|
+
reStr += "((?:[^/]*(?:\/|$))*)";
|
116
|
+
i++; // move over the "/"
|
117
|
+
} else {
|
118
|
+
// it's not a globstar, so only match one path segment
|
119
|
+
reStr += "([^/]*)";
|
120
|
+
}
|
121
|
+
}
|
122
|
+
break;
|
123
|
+
|
124
|
+
default:
|
125
|
+
reStr += c;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
// When regexp 'g' flag is specified don't
|
130
|
+
// constrain the regular expression with ^ & $
|
131
|
+
if (!flags || !~flags.indexOf('g')) {
|
132
|
+
reStr = "^" + reStr + "$";
|
133
|
+
}
|
134
|
+
|
135
|
+
return new RegExp(reStr, flags);
|
136
|
+
};
|
137
|
+
|
138
|
+
|
139
|
+
/***/ }),
|
140
|
+
|
5
141
|
/***/ 799:
|
6
142
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
7
143
|
|
144
|
+
"use strict";
|
8
145
|
/*
|
9
146
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
10
147
|
Author Tobias Koppers @sokra
|
@@ -803,6 +940,7 @@ function ensureFsAccuracy(mtime) {
|
|
803
940
|
/***/ 308:
|
804
941
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
805
942
|
|
943
|
+
"use strict";
|
806
944
|
/*
|
807
945
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
808
946
|
Author Tobias Koppers @sokra
|
@@ -917,6 +1055,7 @@ module.exports = LinkResolver;
|
|
917
1055
|
/***/ 847:
|
918
1056
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
919
1057
|
|
1058
|
+
"use strict";
|
920
1059
|
/*
|
921
1060
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
922
1061
|
Author Tobias Koppers @sokra
|
@@ -976,6 +1115,7 @@ module.exports.WatcherManager = WatcherManager;
|
|
976
1115
|
/***/ 935:
|
977
1116
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
978
1117
|
|
1118
|
+
"use strict";
|
979
1119
|
/*
|
980
1120
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
981
1121
|
Author Tobias Koppers @sokra
|
@@ -1121,6 +1261,7 @@ module.exports = (plan, limit) => {
|
|
1121
1261
|
/***/ 214:
|
1122
1262
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
1123
1263
|
|
1264
|
+
"use strict";
|
1124
1265
|
/*
|
1125
1266
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
1126
1267
|
Author Tobias Koppers @sokra
|
@@ -1499,6 +1640,7 @@ exports.watcherLimit = watcherLimit;
|
|
1499
1640
|
/***/ 882:
|
1500
1641
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
1501
1642
|
|
1643
|
+
"use strict";
|
1502
1644
|
/*
|
1503
1645
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
1504
1646
|
Author Tobias Koppers @sokra
|
@@ -1508,7 +1650,7 @@ exports.watcherLimit = watcherLimit;
|
|
1508
1650
|
const getWatcherManager = __nccwpck_require__(847);
|
1509
1651
|
const LinkResolver = __nccwpck_require__(308);
|
1510
1652
|
const EventEmitter = (__nccwpck_require__(434).EventEmitter);
|
1511
|
-
const globToRegExp = __nccwpck_require__(
|
1653
|
+
const globToRegExp = __nccwpck_require__(137);
|
1512
1654
|
const watchEventSource = __nccwpck_require__(214);
|
1513
1655
|
|
1514
1656
|
const EMPTY_ARRAY = [];
|
@@ -1894,18 +2036,12 @@ class Watchpack extends EventEmitter {
|
|
1894
2036
|
module.exports = Watchpack;
|
1895
2037
|
|
1896
2038
|
|
1897
|
-
/***/ }),
|
1898
|
-
|
1899
|
-
/***/ 686:
|
1900
|
-
/***/ ((module) => {
|
1901
|
-
|
1902
|
-
module.exports = require("../glob-to-regexp/index.js");
|
1903
|
-
|
1904
2039
|
/***/ }),
|
1905
2040
|
|
1906
2041
|
/***/ 923:
|
1907
2042
|
/***/ ((module) => {
|
1908
2043
|
|
2044
|
+
"use strict";
|
1909
2045
|
module.exports = require("../graceful-fs/index.js");
|
1910
2046
|
|
1911
2047
|
/***/ }),
|
@@ -1913,6 +2049,7 @@ module.exports = require("../graceful-fs/index.js");
|
|
1913
2049
|
/***/ 434:
|
1914
2050
|
/***/ ((module) => {
|
1915
2051
|
|
2052
|
+
"use strict";
|
1916
2053
|
module.exports = require("events");
|
1917
2054
|
|
1918
2055
|
/***/ }),
|
@@ -1920,6 +2057,7 @@ module.exports = require("events");
|
|
1920
2057
|
/***/ 896:
|
1921
2058
|
/***/ ((module) => {
|
1922
2059
|
|
2060
|
+
"use strict";
|
1923
2061
|
module.exports = require("fs");
|
1924
2062
|
|
1925
2063
|
/***/ }),
|
@@ -1927,6 +2065,7 @@ module.exports = require("fs");
|
|
1927
2065
|
/***/ 857:
|
1928
2066
|
/***/ ((module) => {
|
1929
2067
|
|
2068
|
+
"use strict";
|
1930
2069
|
module.exports = require("os");
|
1931
2070
|
|
1932
2071
|
/***/ }),
|
@@ -1934,6 +2073,7 @@ module.exports = require("os");
|
|
1934
2073
|
/***/ 928:
|
1935
2074
|
/***/ ((module) => {
|
1936
2075
|
|
2076
|
+
"use strict";
|
1937
2077
|
module.exports = require("path");
|
1938
2078
|
|
1939
2079
|
/***/ })
|
package/dist/Compilation.d.ts
CHANGED
@@ -44,7 +44,7 @@ export interface Asset {
|
|
44
44
|
source: Source;
|
45
45
|
info: AssetInfo;
|
46
46
|
}
|
47
|
-
export type
|
47
|
+
export type ChunkPathData = {
|
48
48
|
id?: string;
|
49
49
|
name?: string;
|
50
50
|
hash?: string;
|
@@ -57,7 +57,7 @@ export type PathData = {
|
|
57
57
|
runtime?: string;
|
58
58
|
url?: string;
|
59
59
|
id?: string;
|
60
|
-
chunk?: Chunk |
|
60
|
+
chunk?: Chunk | ChunkPathData;
|
61
61
|
contentHashType?: string;
|
62
62
|
};
|
63
63
|
export interface LogEntry {
|
package/dist/Compiler.d.ts
CHANGED
@@ -163,6 +163,11 @@ declare class Compiler {
|
|
163
163
|
* @internal
|
164
164
|
*/
|
165
165
|
__internal__create_compilation(native: binding.JsCompilation): Compilation;
|
166
|
+
/**
|
167
|
+
* Note: This is not a webpack public API, maybe removed in future.
|
168
|
+
* @internal
|
169
|
+
*/
|
170
|
+
__internal__get_virtual_file_store(): binding.VirtualFileStore | null | undefined;
|
166
171
|
/**
|
167
172
|
* Note: This is not a webpack public API, maybe removed in future.
|
168
173
|
* @internal
|
package/dist/MultiCompiler.d.ts
CHANGED
@@ -64,7 +64,7 @@ export declare class MultiCompiler {
|
|
64
64
|
* @param handler - signals when the call finishes
|
65
65
|
* @returns a compiler watcher
|
66
66
|
*/
|
67
|
-
watch(watchOptions: WatchOptions, handler: liteTapable.Callback<Error, MultiStats>): MultiWatching;
|
67
|
+
watch(watchOptions: WatchOptions | WatchOptions[], handler: liteTapable.Callback<Error, MultiStats>): MultiWatching;
|
68
68
|
/**
|
69
69
|
* @param callback - signals when the call finishes
|
70
70
|
* @param options - additional data like modifiedFiles, removedFiles
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import binding from "@rspack/binding";
|
2
2
|
import type Watchpack from "../compiled/watchpack";
|
3
|
-
import type { FileSystemInfoEntry, Watcher, WatchFileSystem } from "./util/fs";
|
3
|
+
import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from "./util/fs";
|
4
4
|
export default class NativeWatchFileSystem implements WatchFileSystem {
|
5
5
|
#private;
|
6
|
+
constructor(inputFileSystem: InputFileSystem);
|
6
7
|
watch(files: Iterable<string> & {
|
7
8
|
added?: Iterable<string>;
|
8
9
|
removed?: Iterable<string>;
|
@@ -14,4 +15,5 @@ export default class NativeWatchFileSystem implements WatchFileSystem {
|
|
14
15
|
removed?: Iterable<string>;
|
15
16
|
}, _startTime: number, options: Watchpack.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;
|
16
17
|
getNativeWatcher(options: Watchpack.WatchOptions): binding.NativeWatcher;
|
18
|
+
triggerEvent(kind: "change" | "remove" | "create", path: string): void;
|
17
19
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type binding from "@rspack/binding";
|
2
2
|
import * as liteTapable from "@rspack/lite-tapable";
|
3
3
|
import type { ResolveData, ResourceDataWithData } from "./Module";
|
4
|
-
import type { ResolverFactory } from "./ResolverFactory";
|
4
|
+
import type { ResolveOptionsWithDependencyType, ResolverFactory } from "./ResolverFactory";
|
5
5
|
export type NormalModuleCreateData = binding.JsNormalModuleFactoryCreateModuleArgs & {
|
6
6
|
settings: {};
|
7
7
|
};
|
@@ -19,5 +19,5 @@ export declare class NormalModuleFactory {
|
|
19
19
|
};
|
20
20
|
resolverFactory: ResolverFactory;
|
21
21
|
constructor(resolverFactory: ResolverFactory);
|
22
|
-
getResolver(type: string, resolveOptions:
|
22
|
+
getResolver(type: string, resolveOptions: ResolveOptionsWithDependencyType): import("./ResolverFactory").ResolverWithOptions;
|
23
23
|
}
|
package/dist/Resolver.d.ts
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
import type binding from "@rspack/binding";
|
2
|
-
import { type Resolve } from "./config";
|
3
2
|
import type { ResolveCallback } from "./config/adapterRuleUse";
|
4
3
|
type ResolveContext = {};
|
5
|
-
type ResolveOptionsWithDependencyType = Resolve & {
|
6
|
-
dependencyCategory?: string;
|
7
|
-
resolveToContext?: boolean;
|
8
|
-
};
|
9
4
|
export type ResourceData = binding.JsResourceData;
|
10
5
|
export interface ResolveRequest {
|
11
6
|
path: string;
|
@@ -19,6 +14,5 @@ export declare class Resolver {
|
|
19
14
|
constructor(binding: binding.JsResolver);
|
20
15
|
resolveSync(context: object, path: string, request: string): string | false;
|
21
16
|
resolve(context: object, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void;
|
22
|
-
withOptions(options: ResolveOptionsWithDependencyType): Resolver;
|
23
17
|
}
|
24
18
|
export {};
|
@@ -1,14 +1,17 @@
|
|
1
1
|
import binding from "@rspack/binding";
|
2
2
|
import { type Resolve } from "./config";
|
3
3
|
import { Resolver } from "./Resolver";
|
4
|
-
type ResolveOptionsWithDependencyType = Resolve & {
|
5
|
-
|
4
|
+
export type ResolveOptionsWithDependencyType = Resolve & {
|
5
|
+
dependencyType?: string;
|
6
6
|
resolveToContext?: boolean;
|
7
7
|
};
|
8
|
+
export type WithOptions = {
|
9
|
+
withOptions: (options: ResolveOptionsWithDependencyType) => ResolverWithOptions;
|
10
|
+
};
|
11
|
+
export type ResolverWithOptions = Resolver & WithOptions;
|
8
12
|
export declare class ResolverFactory {
|
9
13
|
#private;
|
10
14
|
static __to_binding(resolver_factory: ResolverFactory): binding.JsResolverFactory;
|
11
|
-
constructor(pnp: boolean);
|
12
|
-
get(type: string, resolveOptions?: ResolveOptionsWithDependencyType):
|
15
|
+
constructor(pnp: boolean, resolveOptions: Resolve, loaderResolveOptions: Resolve);
|
16
|
+
get(type: string, resolveOptions?: ResolveOptionsWithDependencyType): ResolverWithOptions;
|
13
17
|
}
|
14
|
-
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Compiler } from "./Compiler";
|
2
|
+
export declare class VirtualModulesPlugin {
|
3
|
+
#private;
|
4
|
+
constructor(modules?: Record<string, string>);
|
5
|
+
apply(compiler: Compiler): void;
|
6
|
+
writeModule(filePath: string, contents: string): void;
|
7
|
+
private getVirtualFileStore;
|
8
|
+
static __internal__take_virtual_files(compiler: Compiler): {
|
9
|
+
path: string;
|
10
|
+
content: string;
|
11
|
+
}[] | undefined;
|
12
|
+
}
|
@@ -1,5 +1,18 @@
|
|
1
1
|
export type CollectTypeScriptInfoOptions = {
|
2
|
+
/**
|
3
|
+
* Whether to collect type exports information for `typeReexportsPresence`.
|
4
|
+
* This is used to check type exports of submodules when running in `'tolerant'` mode.
|
5
|
+
* @default false
|
6
|
+
*/
|
2
7
|
typeExports?: boolean;
|
8
|
+
/**
|
9
|
+
* Whether to collect information about exported `enum`s.
|
10
|
+
* - `true` will collect all `enum` information, including `const enum`s and regular `enum`s.
|
11
|
+
* - `false` will not collect any `enum` information.
|
12
|
+
* - `'const-only'` will gather only `const enum`s, enabling Rspack to perform cross-module
|
13
|
+
* inlining optimizations for them.
|
14
|
+
* @default false
|
15
|
+
*/
|
3
16
|
exportedEnum?: boolean | "const-only";
|
4
17
|
};
|
5
18
|
export declare function resolveCollectTypeScriptInfo(options: CollectTypeScriptInfoOptions): {
|
@@ -16,6 +16,10 @@ export type SwcLoaderOptions = Config & {
|
|
16
16
|
*/
|
17
17
|
rspackExperiments?: {
|
18
18
|
import?: PluginImportOptions;
|
19
|
+
/**
|
20
|
+
* Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
|
21
|
+
* providing better TypeScript development experience and smaller output bundle size.
|
22
|
+
*/
|
19
23
|
collectTypeScriptInfo?: CollectTypeScriptInfoOptions;
|
20
24
|
};
|
21
25
|
};
|
@@ -2,7 +2,7 @@ export declare const APIPlugin: {
|
|
2
2
|
new (): {
|
3
3
|
name: string;
|
4
4
|
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -2,7 +2,7 @@ export declare const ArrayPushCallbackChunkFormatPlugin: {
|
|
2
2
|
new (): {
|
3
3
|
name: string;
|
4
4
|
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -2,7 +2,7 @@ export declare const AssetModulesPlugin: {
|
|
2
2
|
new (): {
|
3
3
|
name: string;
|
4
4
|
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -2,7 +2,7 @@ export declare const AsyncWebAssemblyModulesPlugin: {
|
|
2
2
|
new (): {
|
3
3
|
name: string;
|
4
4
|
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -33,7 +33,7 @@ export declare const BannerPlugin: {
|
|
33
33
|
new (args: BannerPluginArgument): {
|
34
34
|
name: string;
|
35
35
|
_args: [args: BannerPluginArgument];
|
36
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
36
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
37
37
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
38
38
|
apply(compiler: import("..").Compiler): void;
|
39
39
|
};
|
@@ -7,7 +7,7 @@ export declare const BundlerInfoRspackPlugin: {
|
|
7
7
|
new (options: BundleInfoOptions): {
|
8
8
|
name: string;
|
9
9
|
_args: [options: BundleInfoOptions];
|
10
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
10
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
11
11
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
13
13
|
};
|
@@ -2,7 +2,7 @@ export declare const ChunkPrefetchPreloadPlugin: {
|
|
2
2
|
new (): {
|
3
3
|
name: string;
|
4
4
|
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -2,7 +2,7 @@ export declare const CommonJsChunkFormatPlugin: {
|
|
2
2
|
new (): {
|
3
3
|
name: string;
|
4
4
|
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -2,7 +2,7 @@ export declare const ContextReplacementPlugin: {
|
|
2
2
|
new (resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any): {
|
3
3
|
name: string;
|
4
4
|
_args: [resourceRegExp: RegExp, newContentResource?: any, newContentRecursive?: any, newContentRegExp?: any];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -7,7 +7,7 @@ export declare const CopyRspackPlugin: {
|
|
7
7
|
new (copy: CopyRspackPluginOptions): {
|
8
8
|
name: string;
|
9
9
|
_args: [copy: CopyRspackPluginOptions];
|
10
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
10
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
11
11
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
12
12
|
apply(compiler: import("..").Compiler): void;
|
13
13
|
};
|
@@ -14,7 +14,7 @@ export declare const CssChunkingPlugin: {
|
|
14
14
|
new (options?: CssChunkingPluginOptions | undefined): {
|
15
15
|
name: string;
|
16
16
|
_args: [options?: CssChunkingPluginOptions | undefined];
|
17
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
17
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
18
18
|
raw(compiler: import("..").Compiler): binding.BuiltinPlugin;
|
19
19
|
apply(compiler: import("..").Compiler): void;
|
20
20
|
};
|
@@ -2,7 +2,7 @@ export declare const CssModulesPlugin: {
|
|
2
2
|
new (): {
|
3
3
|
name: string;
|
4
4
|
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -2,7 +2,7 @@ export declare const DataUriPlugin: {
|
|
2
2
|
new (): {
|
3
3
|
name: string;
|
4
4
|
_args: [];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -3,7 +3,7 @@ export declare const DefinePlugin: {
|
|
3
3
|
new (define: DefinePluginOptions): {
|
4
4
|
name: string;
|
5
5
|
_args: [define: DefinePluginOptions];
|
6
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
6
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
7
7
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
8
8
|
apply(compiler: import("..").Compiler): void;
|
9
9
|
};
|
@@ -5,7 +5,7 @@ export declare const DllEntryPlugin: {
|
|
5
5
|
new (context: string, entries: string[], options: DllEntryPluginOptions): {
|
6
6
|
name: string;
|
7
7
|
_args: [context: string, entries: string[], options: DllEntryPluginOptions];
|
8
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
8
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
9
9
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
10
10
|
apply(compiler: import("..").Compiler): void;
|
11
11
|
};
|
@@ -4,7 +4,7 @@ export declare const DllReferenceAgencyPlugin: {
|
|
4
4
|
new (options: RawDllReferenceAgencyPluginOptions): {
|
5
5
|
name: string;
|
6
6
|
_args: [options: RawDllReferenceAgencyPluginOptions];
|
7
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
7
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
8
8
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
9
9
|
apply(compiler: import("..").Compiler): void;
|
10
10
|
};
|
@@ -2,7 +2,7 @@ export declare const ElectronTargetPlugin: {
|
|
2
2
|
new (context?: string | undefined): {
|
3
3
|
name: string;
|
4
4
|
_args: [context?: string | undefined];
|
5
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
5
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
6
6
|
raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin;
|
7
7
|
apply(compiler: import("..").Compiler): void;
|
8
8
|
};
|
@@ -12,7 +12,7 @@ declare const EnableChunkLoadingPluginInner: {
|
|
12
12
|
new (type: string): {
|
13
13
|
name: string;
|
14
14
|
_args: [type: string];
|
15
|
-
affectedHooks: "done" | "compilation" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "
|
15
|
+
affectedHooks: "done" | "compilation" | "run" | "afterDone" | "thisCompilation" | "invalid" | "compile" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "emit" | "assetEmitted" | "afterEmit" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "make" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined;
|
16
16
|
raw(compiler: Compiler): import("@rspack/binding").BuiltinPlugin;
|
17
17
|
apply(compiler: Compiler): void;
|
18
18
|
};
|