@rspack-canary/core 1.7.0-canary-a2d4dc73-20251231074311 → 1.7.0-canary-b303a917-20251231130755
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BuildInfo.d.ts +4 -4
- package/dist/Chunk.d.ts +3 -3
- package/dist/ChunkGraph.d.ts +3 -3
- package/dist/Chunks.d.ts +2 -2
- package/dist/Compilation.d.ts +40 -40
- package/dist/Compiler.d.ts +23 -25
- package/dist/ConcatenatedModule.d.ts +1 -1
- package/dist/ContextModule.d.ts +1 -1
- package/dist/ContextModuleFactory.d.ts +2 -2
- package/dist/Diagnostics.d.ts +2 -2
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/ExecuteModulePlugin.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +2 -2
- package/dist/ExternalModule.d.ts +1 -1
- package/dist/FileSystem.d.ts +3 -3
- package/dist/Module.d.ts +6 -6
- package/dist/ModuleGraph.d.ts +3 -3
- package/dist/MultiCompiler.d.ts +8 -8
- package/dist/MultiStats.d.ts +3 -3
- package/dist/MultiWatching.d.ts +3 -3
- package/dist/NativeWatchFileSystem.d.ts +5 -5
- package/dist/NormalModule.d.ts +6 -6
- package/dist/NormalModuleFactory.d.ts +4 -4
- package/dist/Resolver.d.ts +2 -2
- package/dist/ResolverFactory.d.ts +3 -3
- package/dist/RspackError.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +2 -2
- package/dist/RuntimeModule.d.ts +4 -4
- package/dist/Stats.d.ts +4 -4
- package/dist/VirtualModulesPlugin.d.ts +1 -1
- package/dist/Watching.d.ts +5 -5
- package/dist/builtin-loader/index.d.ts +1 -1
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +1 -1
- package/dist/builtin-loader/swc/index.d.ts +5 -5
- package/dist/builtin-loader/swc/types.d.ts +8 -10
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +10 -5
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +4 -4
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EntryPlugin.d.ts +3 -3
- package/dist/builtin-plugin/EsmLibraryPlugin.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/ExternalsPlugin.d.ts +3 -3
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +2 -2
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +3 -3
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +4 -4
- package/dist/builtin-plugin/IgnorePlugin.d.ts +4 -4
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +6 -6
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +8 -8
- package/dist/builtin-plugin/RslibPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +5 -5
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +4 -4
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +5 -5
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +3 -3
- package/dist/builtin-plugin/{CaseSensitivePlugin.d.ts → WarnCaseSensitiveModulesPlugin.d.ts} +1 -1
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +3 -3
- package/dist/builtin-plugin/WorkerPlugin.d.ts +4 -4
- package/dist/builtin-plugin/base.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/index.d.ts +7 -7
- package/dist/builtin-plugin/css-extract/loader.d.ts +2 -2
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +4 -4
- package/dist/builtin-plugin/html-plugin/index.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +6 -6
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +5 -5
- package/dist/builtin-plugin/html-plugin/taps.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +88 -84
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/builtin-plugin/rsc/Coordinator.d.ts +8 -0
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +10 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +10 -0
- package/dist/builtin-plugin/rsc/index.d.ts +15 -0
- package/dist/config/adapter.d.ts +7 -7
- package/dist/config/adapterRuleUse.d.ts +16 -16
- package/dist/config/browserslistTargetHandler.d.ts +1 -1
- package/dist/config/defaults.d.ts +2 -11
- package/dist/config/devServer.d.ts +32 -32
- package/dist/config/index.d.ts +5 -5
- package/dist/config/normalization.d.ts +9 -9
- package/dist/config/target.d.ts +7 -7
- package/dist/config/types.d.ts +74 -75
- package/dist/container/ContainerPlugin.d.ts +4 -4
- package/dist/container/ContainerReferencePlugin.d.ts +4 -4
- package/dist/container/ModuleFederationManifestPlugin.d.ts +3 -3
- package/dist/container/ModuleFederationPlugin.d.ts +6 -6
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -5
- package/dist/container/index.d.ts +4 -4
- package/dist/cssExtractHmr.js +19 -19
- package/dist/cssExtractLoader.js +16 -16
- package/dist/exports.d.ts +74 -76
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1943 -1892
- package/dist/lib/AbstractMethodError.d.ts +1 -1
- package/dist/lib/Cache.d.ts +2 -2
- package/dist/lib/CacheFacade.d.ts +3 -3
- package/dist/lib/DllPlugin.d.ts +1 -1
- package/dist/lib/DllReferencePlugin.d.ts +5 -5
- package/dist/lib/EntryOptionPlugin.d.ts +2 -2
- package/dist/lib/EnvironmentPlugin.d.ts +1 -1
- package/dist/lib/HookWebpackError.d.ts +2 -2
- package/dist/lib/IgnoreWarningsPlugin.d.ts +1 -1
- package/dist/lib/LoaderOptionsPlugin.d.ts +2 -2
- package/dist/lib/LoaderTargetPlugin.d.ts +2 -2
- package/dist/lib/WebpackError.d.ts +3 -3
- package/dist/lib/cache/MemoryCachePlugin.d.ts +1 -1
- package/dist/lib/cache/getLazyHashedEtag.d.ts +1 -1
- package/dist/lib/cache/mergeEtags.d.ts +1 -1
- package/dist/loader-runner/ModuleError.d.ts +1 -1
- package/dist/loader-runner/index.d.ts +3 -3
- package/dist/loader-runner/loadLoader.d.ts +2 -2
- package/dist/loader-runner/service.d.ts +8 -8
- package/dist/loader-runner/utils.d.ts +3 -3
- package/dist/loader-runner/worker.d.ts +3 -3
- package/dist/logging/createConsoleLogger.d.ts +4 -4
- package/dist/moduleFederationDefaultRuntime.js +1 -1
- package/dist/node/NodeEnvironmentPlugin.d.ts +2 -2
- package/dist/node/NodeTemplatePlugin.d.ts +1 -1
- package/dist/node/NodeWatchFileSystem.d.ts +3 -3
- package/dist/node/nodeConsole.d.ts +2 -2
- package/dist/rspack.d.ts +6 -15
- package/dist/rspackOptionsApply.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +3 -3
- package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
- package/dist/sharing/SharePlugin.d.ts +1 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +3 -3
- package/dist/stats/DefaultStatsFactoryPlugin.d.ts +15 -15
- package/dist/stats/DefaultStatsPresetPlugin.d.ts +1 -1
- package/dist/stats/DefaultStatsPrinterPlugin.d.ts +1 -1
- package/dist/stats/StatsFactory.d.ts +5 -5
- package/dist/stats/StatsPrinter.d.ts +3 -3
- package/dist/stats/statsFactoryUtils.d.ts +5 -5
- package/dist/swc.d.ts +2 -2
- package/dist/taps/compilation.d.ts +2 -2
- package/dist/taps/compiler.d.ts +1 -1
- package/dist/taps/contextModuleFactory.d.ts +1 -1
- package/dist/taps/index.d.ts +6 -6
- package/dist/taps/javascriptModules.d.ts +1 -1
- package/dist/taps/normalModuleFactory.d.ts +1 -1
- package/dist/taps/types.d.ts +3 -3
- package/dist/trace/index.d.ts +4 -4
- package/dist/trace/traceHookPlugin.d.ts +1 -1
- package/dist/util/SplitChunkSize.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/createReadonlyMap.d.ts +1 -1
- package/dist/util/fs.d.ts +14 -14
- package/dist/util/hash/wasm-hash.d.ts +1 -1
- package/dist/util/identifier.d.ts +1 -1
- package/dist/util/index.d.ts +1 -2
- package/dist/util/source.d.ts +2 -2
- package/dist/util/validateConfig.d.ts +1 -1
- package/dist/worker.js +111 -111
- package/hot/dev-server.js +64 -64
- package/hot/emitter.js +11 -11
- package/hot/lazy-compilation-node.js +41 -41
- package/hot/lazy-compilation-web.js +52 -52
- package/hot/log-apply-result.js +36 -36
- package/hot/log.js +30 -30
- package/hot/only-dev-server.js +92 -92
- package/hot/poll.js +31 -31
- package/hot/signal.js +53 -53
- package/module.d.ts +215 -215
- package/package.json +4 -4
package/dist/cssExtractHmr.js
CHANGED
|
@@ -16,19 +16,19 @@ var __webpack_exports__ = {};
|
|
|
16
16
|
function normalizeUrl(url) {
|
|
17
17
|
let urlString = url.trim();
|
|
18
18
|
if (/^data:/i.test(urlString)) return urlString;
|
|
19
|
-
let protocol = -1 !== urlString.indexOf(
|
|
20
|
-
return components[0] =
|
|
19
|
+
let protocol = -1 !== urlString.indexOf("//") ? `${urlString.split("//")[0]}//` : "", components = urlString.replace(RegExp(protocol, "i"), "").split("/"), host = components[0].toLowerCase().replace(/\.$/, "");
|
|
20
|
+
return components[0] = "", protocol + host + components.reduce((accumulator, item)=>{
|
|
21
21
|
switch(item){
|
|
22
|
-
case
|
|
22
|
+
case "..":
|
|
23
23
|
accumulator.pop();
|
|
24
24
|
break;
|
|
25
|
-
case
|
|
25
|
+
case ".":
|
|
26
26
|
break;
|
|
27
27
|
default:
|
|
28
28
|
accumulator.push(item);
|
|
29
29
|
}
|
|
30
30
|
return accumulator;
|
|
31
|
-
}, []).join(
|
|
31
|
+
}, []).join("/");
|
|
32
32
|
}
|
|
33
33
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
34
34
|
cssReload: ()=>cssReload,
|
|
@@ -40,23 +40,23 @@ function updateCss(el, url) {
|
|
|
40
40
|
let normalizedUrl;
|
|
41
41
|
if (url) normalizedUrl = url;
|
|
42
42
|
else {
|
|
43
|
-
let href = el.getAttribute(
|
|
43
|
+
let href = el.getAttribute("href");
|
|
44
44
|
if (!href) return;
|
|
45
|
-
normalizedUrl = href.split(
|
|
45
|
+
normalizedUrl = href.split("?")[0];
|
|
46
46
|
}
|
|
47
|
-
if (!isUrlRequest(el.href) || !1 === el.isLoaded || !normalizedUrl || !(normalizedUrl.indexOf(
|
|
47
|
+
if (!isUrlRequest(el.href) || !1 === el.isLoaded || !normalizedUrl || !(normalizedUrl.indexOf(".css") > -1)) return;
|
|
48
48
|
el.visited = !0;
|
|
49
49
|
let newEl = el.cloneNode();
|
|
50
|
-
newEl.isLoaded = !1, newEl.addEventListener(
|
|
50
|
+
newEl.isLoaded = !1, newEl.addEventListener("load", ()=>{
|
|
51
51
|
!newEl.isLoaded && (newEl.isLoaded = !0, el.parentNode && el.parentNode.removeChild(el));
|
|
52
|
-
}), newEl.addEventListener(
|
|
52
|
+
}), newEl.addEventListener("error", ()=>{
|
|
53
53
|
!newEl.isLoaded && (newEl.isLoaded = !0, el.parentNode && el.parentNode.removeChild(el));
|
|
54
54
|
}), newEl.href = `${normalizedUrl}?${Date.now()}`;
|
|
55
55
|
let parent = el.parentNode;
|
|
56
56
|
parent && (el.nextSibling ? parent.insertBefore(newEl, el.nextSibling) : parent.appendChild(newEl));
|
|
57
57
|
}
|
|
58
58
|
function reloadAll() {
|
|
59
|
-
let elements = document.querySelectorAll(
|
|
59
|
+
let elements = document.querySelectorAll("link");
|
|
60
60
|
forEach.call(elements, (el)=>{
|
|
61
61
|
!0 !== el.visited && updateCss(el);
|
|
62
62
|
});
|
|
@@ -67,7 +67,7 @@ function isUrlRequest(url) {
|
|
|
67
67
|
function cssReload(moduleId, options) {
|
|
68
68
|
var fn;
|
|
69
69
|
let timeout;
|
|
70
|
-
if (noDocument) return console.log(
|
|
70
|
+
if (noDocument) return console.log("[HMR] No `window.document` found, CSS HMR disabled"), noop;
|
|
71
71
|
let getScriptSrc = function(moduleId) {
|
|
72
72
|
let src = srcByModuleId[moduleId];
|
|
73
73
|
if (!src) {
|
|
@@ -81,33 +81,33 @@ function cssReload(moduleId, options) {
|
|
|
81
81
|
return (fileMap)=>{
|
|
82
82
|
if (!src) return null;
|
|
83
83
|
let splitResult = src.match(/([^\\/]+)\.js$/), filename = splitResult && splitResult[1];
|
|
84
|
-
return filename && fileMap ? fileMap.split(
|
|
85
|
-
let reg = RegExp(`${filename}\\.js$`,
|
|
84
|
+
return filename && fileMap ? fileMap.split(",").map((mapRule)=>{
|
|
85
|
+
let reg = RegExp(`${filename}\\.js$`, "g");
|
|
86
86
|
return normalizeUrl(src.replace(reg, `${mapRule.replace(/{fileName}/g, filename)}.css`));
|
|
87
87
|
}) : [
|
|
88
|
-
src.replace(
|
|
88
|
+
src.replace(".js", ".css")
|
|
89
89
|
];
|
|
90
90
|
};
|
|
91
91
|
}(moduleId);
|
|
92
92
|
return fn = function() {
|
|
93
93
|
let src = getScriptSrc(options.filename), reloaded = function(src) {
|
|
94
94
|
if (!src) return !1;
|
|
95
|
-
let elements = document.querySelectorAll(
|
|
95
|
+
let elements = document.querySelectorAll("link"), loaded = !1;
|
|
96
96
|
return forEach.call(elements, (el)=>{
|
|
97
97
|
var href;
|
|
98
98
|
let ret, normalizedHref;
|
|
99
99
|
if (!el.href) return;
|
|
100
|
-
let url = (href = el.href, ret =
|
|
100
|
+
let url = (href = el.href, ret = "", normalizedHref = normalizeUrl(href), src.some((url)=>{
|
|
101
101
|
normalizedHref.indexOf(src) > -1 && (ret = url);
|
|
102
102
|
}), ret);
|
|
103
103
|
!isUrlRequest(url) || !0 !== el.visited && url && (updateCss(el, url), loaded = !0);
|
|
104
104
|
}), loaded;
|
|
105
105
|
}(src);
|
|
106
106
|
if (options.locals) {
|
|
107
|
-
console.log(
|
|
107
|
+
console.log("[HMR] Detected local CSS Modules. Reload all CSS"), reloadAll();
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
reloaded ? console.log(
|
|
110
|
+
reloaded ? console.log("[HMR] CSS reload %s", src && src.join(" ")) : (console.log("[HMR] Reload all CSS"), reloadAll());
|
|
111
111
|
}, timeout = 0, function(...args) {
|
|
112
112
|
let self = this;
|
|
113
113
|
clearTimeout(timeout), timeout = setTimeout(function() {
|
package/dist/cssExtractLoader.js
CHANGED
|
@@ -33,7 +33,7 @@ var external_node_path_default = __webpack_require__.n(external_node_path_namesp
|
|
|
33
33
|
function isAbsolutePath(str) {
|
|
34
34
|
return external_node_path_default().posix.isAbsolute(str) || external_node_path_default().win32.isAbsolute(str);
|
|
35
35
|
}
|
|
36
|
-
const PLUGIN_NAME =
|
|
36
|
+
const PLUGIN_NAME = "css-extract-rspack-plugin", RELATIVE_PATH_REGEXP = /^\.\.?[/\\]/, BASE_URI = "rspack-css-extract://", MODULE_TYPE = "css/mini-extract", AUTO_PUBLIC_PATH = "__css_extract_public_path_auto__", ABSOLUTE_PUBLIC_PATH = `${BASE_URI}/css-extract-plugin/`, SINGLE_DOT_PATH_SEGMENT = "__css_extract_single_dot_path_segment__";
|
|
37
37
|
function hotLoader(content, context) {
|
|
38
38
|
let localsJsonString = JSON.stringify(JSON.stringify(context.locals));
|
|
39
39
|
return `${content}
|
|
@@ -42,18 +42,18 @@ function hotLoader(content, context) {
|
|
|
42
42
|
var localsJsonString = ${localsJsonString};
|
|
43
43
|
// ${Date.now()}
|
|
44
44
|
var cssReload = require(${function(loaderContext, request) {
|
|
45
|
-
if (void 0 !== loaderContext.utils &&
|
|
46
|
-
let splitted = request.split(
|
|
45
|
+
if (void 0 !== loaderContext.utils && "function" == typeof loaderContext.utils.contextify) return JSON.stringify(loaderContext.utils.contextify(loaderContext.context || loaderContext.rootContext, request));
|
|
46
|
+
let splitted = request.split("!"), { context } = loaderContext;
|
|
47
47
|
return JSON.stringify(splitted.map((part)=>{
|
|
48
|
-
let splittedPart = part.match(/^(.*?)(\?.*)/), query = splittedPart ? splittedPart[2] :
|
|
48
|
+
let splittedPart = part.match(/^(.*?)(\?.*)/), query = splittedPart ? splittedPart[2] : "", singlePath = splittedPart ? splittedPart[1] : part;
|
|
49
49
|
if (isAbsolutePath(singlePath) && context) {
|
|
50
50
|
var str;
|
|
51
51
|
if (isAbsolutePath(singlePath = external_node_path_default().relative(context, singlePath))) return singlePath + query;
|
|
52
52
|
str = singlePath, RELATIVE_PATH_REGEXP.test(str) || (singlePath = `./${singlePath}`);
|
|
53
53
|
}
|
|
54
|
-
return singlePath.replace(/\\/g,
|
|
55
|
-
}).join(
|
|
56
|
-
}(context.loaderContext, external_node_path_default().join(__dirname,
|
|
54
|
+
return singlePath.replace(/\\/g, "/") + query;
|
|
55
|
+
}).join("!"));
|
|
56
|
+
}(context.loaderContext, external_node_path_default().join(__dirname, "cssExtractHmr.js"))}).cssReload(module.id, ${JSON.stringify(context.options ?? {})});
|
|
57
57
|
// only invalidate when locals change
|
|
58
58
|
if (
|
|
59
59
|
module.hot.data &&
|
|
@@ -74,7 +74,7 @@ function hotLoader(content, context) {
|
|
|
74
74
|
}
|
|
75
75
|
const pitch = function(request, _, data) {
|
|
76
76
|
let publicPathForExtract;
|
|
77
|
-
if (this._compiler?.options?.experiments?.css && this._module && (
|
|
77
|
+
if (this._compiler?.options?.experiments?.css && this._module && ("css" === this._module.type || "css/auto" === this._module.type || "css/global" === this._module.type || "css/module" === this._module.type)) {
|
|
78
78
|
let e = Error("use type 'css' and `CssExtractRspackPlugin` together, please set `experiments.css` to `false` or set `{ type: \"javascript/auto\" }` for rules with `CssExtractRspackPlugin` in your rspack config (now `CssExtractRspackPlugin` does nothing).");
|
|
79
79
|
e.stack = void 0, this.emitWarning(e);
|
|
80
80
|
return;
|
|
@@ -82,12 +82,12 @@ const pitch = function(request, _, data) {
|
|
|
82
82
|
let options = this.getOptions(), emit = void 0 === options.emit || options.emit, callback = this.async(), filepath = this.resourcePath;
|
|
83
83
|
this.addDependency(filepath);
|
|
84
84
|
let { publicPath } = this._compilation.outputOptions;
|
|
85
|
-
|
|
85
|
+
"string" == typeof options.publicPath ? publicPath = options.publicPath : "function" == typeof options.publicPath && (publicPath = options.publicPath(this.resourcePath, this.rootContext)), "auto" === publicPath && (publicPath = AUTO_PUBLIC_PATH), publicPathForExtract = "string" == typeof publicPath ? /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(publicPath) ? publicPath : `${ABSOLUTE_PUBLIC_PATH}${publicPath.replace(/\./g, SINGLE_DOT_PATH_SEGMENT)}` : publicPath;
|
|
86
86
|
let handleExports = (originalExports)=>{
|
|
87
87
|
let locals, namedExport, esModule = void 0 === options.esModule || options.esModule, dependencies = [];
|
|
88
88
|
try {
|
|
89
89
|
let exports1 = originalExports.__esModule ? originalExports.default : originalExports;
|
|
90
|
-
if (namedExport = originalExports.__esModule && (!originalExports.default || !(
|
|
90
|
+
if (namedExport = originalExports.__esModule && (!originalExports.default || !("locals" in originalExports.default))) for (let key of Object.keys(originalExports))"default" !== key && (locals || (locals = {}), locals[key] = originalExports[key]);
|
|
91
91
|
else locals = exports1?.locals;
|
|
92
92
|
if (Array.isArray(exports1) && emit) {
|
|
93
93
|
let identifierCountMap = new Map();
|
|
@@ -121,13 +121,13 @@ const pitch = function(request, _, data) {
|
|
|
121
121
|
];
|
|
122
122
|
}()), localsString = identifiers.map(([id, key])=>{
|
|
123
123
|
var value;
|
|
124
|
-
return `\nvar ${id} = ${
|
|
125
|
-
}).join(
|
|
126
|
-
return void 0 !== options.defaultExport && options.defaultExport ? `${localsString}\n${exportsString}\nexport default { ${identifiers.map(([id, key])=>`${JSON.stringify(key)}: ${id}`).join(
|
|
124
|
+
return `\nvar ${id} = ${"function" == typeof (value = locals[key]) ? value.toString() : JSON.stringify(value)};`;
|
|
125
|
+
}).join(""), exportsString = `export { ${identifiers.map(([id, key])=>`${id} as ${JSON.stringify(key)}`).join(", ")} }`;
|
|
126
|
+
return void 0 !== options.defaultExport && options.defaultExport ? `${localsString}\n${exportsString}\nexport default { ${identifiers.map(([id, key])=>`${JSON.stringify(key)}: ${id}`).join(", ")} }\n` : `${localsString}\n${exportsString}\n`;
|
|
127
127
|
}
|
|
128
|
-
return `\n${esModule ?
|
|
128
|
+
return `\n${esModule ? "export default" : "module.exports = "} ${JSON.stringify(locals)};`;
|
|
129
129
|
}
|
|
130
|
-
return esModule ?
|
|
130
|
+
return esModule ? "\nexport {};" : "";
|
|
131
131
|
}(), resultSource = `// extracted by ${PLUGIN_NAME}`;
|
|
132
132
|
resultSource += this.hot && emit ? hotLoader(result, {
|
|
133
133
|
loaderContext: this,
|
|
@@ -143,7 +143,7 @@ const pitch = function(request, _, data) {
|
|
|
143
143
|
error ? callback(error) : handleExports(exports1);
|
|
144
144
|
});
|
|
145
145
|
}, css_extract_loader = function(content) {
|
|
146
|
-
if (this._compiler?.options?.experiments?.css && this._module && (
|
|
146
|
+
if (this._compiler?.options?.experiments?.css && this._module && ("css" === this._module.type || "css/auto" === this._module.type || "css/global" === this._module.type || "css/module" === this._module.type)) return content;
|
|
147
147
|
};
|
|
148
148
|
for(var __rspack_i in exports.ABSOLUTE_PUBLIC_PATH = __webpack_exports__.ABSOLUTE_PUBLIC_PATH, exports.AUTO_PUBLIC_PATH = __webpack_exports__.AUTO_PUBLIC_PATH, exports.BASE_URI = __webpack_exports__.BASE_URI, exports.MODULE_TYPE = __webpack_exports__.MODULE_TYPE, exports.SINGLE_DOT_PATH_SEGMENT = __webpack_exports__.SINGLE_DOT_PATH_SEGMENT, exports.default = __webpack_exports__.default, exports.hotLoader = __webpack_exports__.hotLoader, exports.pitch = __webpack_exports__.pitch, __webpack_exports__)-1 === [
|
|
149
149
|
"ABSOLUTE_PUBLIC_PATH",
|
package/dist/exports.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
declare const rspackVersion: string;
|
|
2
2
|
declare const version: string;
|
|
3
3
|
export { rspackVersion, version };
|
|
4
|
-
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData
|
|
5
|
-
export { Compilation } from
|
|
6
|
-
export { Compiler, type CompilerHooks } from
|
|
7
|
-
export type { MultiCompilerOptions, MultiRspackOptions } from
|
|
8
|
-
export { MultiCompiler } from
|
|
9
|
-
import { RspackOptionsApply } from
|
|
4
|
+
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData } from "./Compilation";
|
|
5
|
+
export { Compilation } from "./Compilation";
|
|
6
|
+
export { Compiler, type CompilerHooks } from "./Compiler";
|
|
7
|
+
export type { MultiCompilerOptions, MultiRspackOptions } from "./MultiCompiler";
|
|
8
|
+
export { MultiCompiler } from "./MultiCompiler";
|
|
9
|
+
import { RspackOptionsApply } from "./rspackOptionsApply";
|
|
10
10
|
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
11
|
-
export type { ChunkGroup } from
|
|
12
|
-
export { AsyncDependenciesBlock, Dependency, EntryDependency
|
|
13
|
-
export type { Chunk } from
|
|
14
|
-
export { ConcatenatedModule } from
|
|
15
|
-
export { ContextModule } from
|
|
16
|
-
export { ExternalModule } from
|
|
17
|
-
export type { ResolveData, ResourceDataWithData } from
|
|
18
|
-
export { Module } from
|
|
19
|
-
export type { default as ModuleGraph } from
|
|
20
|
-
export { MultiStats } from
|
|
21
|
-
export { NormalModule } from
|
|
22
|
-
export type { NormalModuleFactory } from
|
|
23
|
-
export { type RspackError, type RspackSeverity, ValidationError
|
|
24
|
-
export { RuntimeGlobals } from
|
|
25
|
-
export { RuntimeModule } from
|
|
26
|
-
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule
|
|
27
|
-
export { Stats } from
|
|
28
|
-
export { StatsErrorCode } from
|
|
29
|
-
import * as ModuleFilenameHelpers from
|
|
11
|
+
export type { ChunkGroup } from "@rspack/binding";
|
|
12
|
+
export { AsyncDependenciesBlock, Dependency, EntryDependency } from "@rspack/binding";
|
|
13
|
+
export type { Chunk } from "./Chunk";
|
|
14
|
+
export { ConcatenatedModule } from "./ConcatenatedModule";
|
|
15
|
+
export { ContextModule } from "./ContextModule";
|
|
16
|
+
export { ExternalModule } from "./ExternalModule";
|
|
17
|
+
export type { ResolveData, ResourceDataWithData } from "./Module";
|
|
18
|
+
export { Module } from "./Module";
|
|
19
|
+
export type { default as ModuleGraph } from "./ModuleGraph";
|
|
20
|
+
export { MultiStats } from "./MultiStats";
|
|
21
|
+
export { NormalModule } from "./NormalModule";
|
|
22
|
+
export type { NormalModuleFactory } from "./NormalModuleFactory";
|
|
23
|
+
export { type RspackError, type RspackSeverity, ValidationError } from "./RspackError";
|
|
24
|
+
export { RuntimeGlobals } from "./RuntimeGlobals";
|
|
25
|
+
export { RuntimeModule } from "./RuntimeModule";
|
|
26
|
+
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule } from "./Stats";
|
|
27
|
+
export { Stats } from "./Stats";
|
|
28
|
+
export { StatsErrorCode } from "./stats/statsFactoryUtils";
|
|
29
|
+
import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
|
|
30
30
|
export { ModuleFilenameHelpers };
|
|
31
|
-
export { Template } from
|
|
31
|
+
export { Template } from "./Template";
|
|
32
32
|
export declare const WebpackError: ErrorConstructor;
|
|
33
|
-
export type { Watching } from
|
|
34
|
-
import sources = require(
|
|
33
|
+
export type { Watching } from "./Watching";
|
|
34
|
+
import sources = require("../compiled/webpack-sources");
|
|
35
35
|
export { sources };
|
|
36
|
-
import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from
|
|
36
|
+
import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from "./config";
|
|
37
37
|
type Config = {
|
|
38
38
|
getNormalizedRspackOptions: typeof getNormalizedRspackOptions;
|
|
39
39
|
applyRspackOptionsDefaults: typeof applyRspackOptionsDefaults;
|
|
@@ -41,33 +41,29 @@ type Config = {
|
|
|
41
41
|
applyWebpackOptionsDefaults: typeof applyRspackOptionsDefaults;
|
|
42
42
|
};
|
|
43
43
|
export declare const config: Config;
|
|
44
|
-
export type * from
|
|
44
|
+
export type * from "./config";
|
|
45
45
|
export declare const util: {
|
|
46
46
|
createHash: (algorithm: "debug" | "xxhash64" | "md4" | "native-md4" | (string & {}) | (new () => import("./util/hash").default)) => import("./util/hash").default;
|
|
47
47
|
cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
|
|
48
48
|
};
|
|
49
|
-
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions
|
|
50
|
-
export { BannerPlugin,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
|
|
59
|
-
export { LoaderOptionsPlugin } from './lib/LoaderOptionsPlugin';
|
|
60
|
-
export { LoaderTargetPlugin } from './lib/LoaderTargetPlugin';
|
|
61
|
-
export type { OutputFileSystem, WatchFileSystem } from './util/fs';
|
|
62
|
-
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from './builtin-plugin';
|
|
49
|
+
export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions } from "./builtin-plugin";
|
|
50
|
+
export { BannerPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, WarnCaseSensitiveModulesPlugin } from "./builtin-plugin";
|
|
51
|
+
export { DllPlugin, type DllPluginOptions } from "./lib/DllPlugin";
|
|
52
|
+
export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType } from "./lib/DllReferencePlugin";
|
|
53
|
+
export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
|
|
54
|
+
export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
55
|
+
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
|
56
|
+
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
|
57
|
+
export type { OutputFileSystem, WatchFileSystem } from "./util/fs";
|
|
58
|
+
import { createRscPlugins, EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, RSC_LAYERS_NAMES, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
63
59
|
export { SubresourceIntegrityPlugin };
|
|
64
60
|
interface Web {
|
|
65
61
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
66
62
|
}
|
|
67
63
|
export declare const web: Web;
|
|
68
|
-
import { NodeTargetPlugin } from
|
|
69
|
-
import NodeEnvironmentPlugin from
|
|
70
|
-
import NodeTemplatePlugin from
|
|
64
|
+
import { NodeTargetPlugin } from "./builtin-plugin";
|
|
65
|
+
import NodeEnvironmentPlugin from "./node/NodeEnvironmentPlugin";
|
|
66
|
+
import NodeTemplatePlugin from "./node/NodeTemplatePlugin";
|
|
71
67
|
interface Node {
|
|
72
68
|
NodeTargetPlugin: typeof NodeTargetPlugin;
|
|
73
69
|
NodeTemplatePlugin: typeof NodeTemplatePlugin;
|
|
@@ -75,75 +71,75 @@ interface Node {
|
|
|
75
71
|
}
|
|
76
72
|
export { lazyCompilationMiddleware };
|
|
77
73
|
export declare const node: Node;
|
|
78
|
-
import { ElectronTargetPlugin } from
|
|
74
|
+
import { ElectronTargetPlugin } from "./builtin-plugin";
|
|
79
75
|
interface Electron {
|
|
80
76
|
ElectronTargetPlugin: typeof ElectronTargetPlugin;
|
|
81
77
|
}
|
|
82
78
|
export declare const electron: Electron;
|
|
83
|
-
import { EnableLibraryPlugin } from
|
|
79
|
+
import { EnableLibraryPlugin } from "./builtin-plugin";
|
|
84
80
|
interface Library {
|
|
85
81
|
EnableLibraryPlugin: typeof EnableLibraryPlugin;
|
|
86
82
|
}
|
|
87
83
|
export declare const library: Library;
|
|
88
|
-
import { EnableWasmLoadingPlugin } from
|
|
84
|
+
import { EnableWasmLoadingPlugin } from "./builtin-plugin";
|
|
89
85
|
interface Wasm {
|
|
90
86
|
EnableWasmLoadingPlugin: typeof EnableWasmLoadingPlugin;
|
|
91
87
|
}
|
|
92
88
|
export declare const wasm: Wasm;
|
|
93
|
-
import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from
|
|
89
|
+
import { EnableChunkLoadingPlugin, JavascriptModulesPlugin } from "./builtin-plugin";
|
|
94
90
|
interface JavaScript {
|
|
95
91
|
EnableChunkLoadingPlugin: typeof EnableChunkLoadingPlugin;
|
|
96
92
|
JavascriptModulesPlugin: typeof JavascriptModulesPlugin;
|
|
97
93
|
}
|
|
98
94
|
export declare const javascript: JavaScript;
|
|
99
|
-
import { WebWorkerTemplatePlugin } from
|
|
95
|
+
import { WebWorkerTemplatePlugin } from "./builtin-plugin";
|
|
100
96
|
interface Webworker {
|
|
101
97
|
WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin;
|
|
102
98
|
}
|
|
103
99
|
export declare const webworker: Webworker;
|
|
104
|
-
import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from
|
|
100
|
+
import { CssChunkingPlugin, LimitChunkCountPlugin, RemoveDuplicateModulesPlugin, RsdoctorPlugin, RslibPlugin, RstestPlugin, RuntimeChunkPlugin, SplitChunksPlugin } from "./builtin-plugin";
|
|
105
101
|
interface Optimize {
|
|
106
102
|
LimitChunkCountPlugin: typeof LimitChunkCountPlugin;
|
|
107
103
|
RuntimeChunkPlugin: typeof RuntimeChunkPlugin;
|
|
108
104
|
SplitChunksPlugin: typeof SplitChunksPlugin;
|
|
109
105
|
}
|
|
110
106
|
export declare const optimize: Optimize;
|
|
111
|
-
import { ModuleFederationPlugin } from
|
|
112
|
-
export type { ModuleFederationPluginOptions } from
|
|
113
|
-
import { ModuleFederationPluginV1 } from
|
|
114
|
-
export type { ModuleFederationPluginV1Options } from
|
|
115
|
-
import { ContainerPlugin } from
|
|
116
|
-
import { ContainerReferencePlugin } from
|
|
117
|
-
export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject
|
|
118
|
-
export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject
|
|
107
|
+
import { ModuleFederationPlugin } from "./container/ModuleFederationPlugin";
|
|
108
|
+
export type { ModuleFederationPluginOptions } from "./container/ModuleFederationPlugin";
|
|
109
|
+
import { ModuleFederationPluginV1 } from "./container/ModuleFederationPluginV1";
|
|
110
|
+
export type { ModuleFederationPluginV1Options } from "./container/ModuleFederationPluginV1";
|
|
111
|
+
import { ContainerPlugin } from "./container/ContainerPlugin";
|
|
112
|
+
import { ContainerReferencePlugin } from "./container/ContainerReferencePlugin";
|
|
113
|
+
export type { ContainerPluginOptions, Exposes, ExposesConfig, ExposesItem, ExposesItems, ExposesObject } from "./container/ContainerPlugin";
|
|
114
|
+
export type { ContainerReferencePluginOptions, Remotes, RemotesConfig, RemotesItem, RemotesItems, RemotesObject } from "./container/ContainerReferencePlugin";
|
|
119
115
|
export declare const container: {
|
|
120
116
|
ContainerPlugin: typeof ContainerPlugin;
|
|
121
117
|
ContainerReferencePlugin: typeof ContainerReferencePlugin;
|
|
122
118
|
ModuleFederationPlugin: typeof ModuleFederationPlugin;
|
|
123
119
|
ModuleFederationPluginV1: typeof ModuleFederationPluginV1;
|
|
124
120
|
};
|
|
125
|
-
import { ConsumeSharedPlugin } from
|
|
126
|
-
import { ProvideSharedPlugin } from
|
|
127
|
-
import { SharePlugin } from
|
|
128
|
-
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject
|
|
129
|
-
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject
|
|
130
|
-
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions
|
|
121
|
+
import { ConsumeSharedPlugin } from "./sharing/ConsumeSharedPlugin";
|
|
122
|
+
import { ProvideSharedPlugin } from "./sharing/ProvideSharedPlugin";
|
|
123
|
+
import { SharePlugin } from "./sharing/SharePlugin";
|
|
124
|
+
export type { ConsumeSharedPluginOptions, Consumes, ConsumesConfig, ConsumesItem, ConsumesObject } from "./sharing/ConsumeSharedPlugin";
|
|
125
|
+
export type { ProvideSharedPluginOptions, Provides, ProvidesConfig, ProvidesItem, ProvidesObject } from "./sharing/ProvideSharedPlugin";
|
|
126
|
+
export type { Shared, SharedConfig, SharedItem, SharedObject, SharePluginOptions } from "./sharing/SharePlugin";
|
|
131
127
|
export declare const sharing: {
|
|
132
128
|
ProvideSharedPlugin: typeof ProvideSharedPlugin;
|
|
133
129
|
ConsumeSharedPlugin: typeof ConsumeSharedPlugin;
|
|
134
130
|
SharePlugin: typeof SharePlugin;
|
|
135
131
|
};
|
|
136
|
-
export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions
|
|
137
|
-
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig
|
|
138
|
-
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions
|
|
139
|
-
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin
|
|
140
|
-
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from
|
|
141
|
-
import { createNativePlugin } from
|
|
142
|
-
import { minify, minifySync, transform, transformSync } from
|
|
143
|
-
import { VirtualModulesPlugin } from
|
|
132
|
+
export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions } from "./builtin-loader/lightningcss/index";
|
|
133
|
+
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
|
|
134
|
+
export type { CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
|
135
|
+
export { CircularDependencyRspackPlugin, ContextReplacementPlugin, Coordinator, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, RscClientPlugin, RscServerPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
|
|
136
|
+
import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from "@rspack/binding";
|
|
137
|
+
import { createNativePlugin } from "./builtin-plugin";
|
|
138
|
+
import { minify, minifySync, transform, transformSync } from "./swc";
|
|
139
|
+
import { VirtualModulesPlugin } from "./VirtualModulesPlugin";
|
|
144
140
|
interface Experiments {
|
|
145
141
|
globalTrace: {
|
|
146
|
-
register: (filter: string, layer:
|
|
142
|
+
register: (filter: string, layer: "logger" | "perfetto", output: string) => Promise<void>;
|
|
147
143
|
cleanup: () => Promise<void>;
|
|
148
144
|
};
|
|
149
145
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
|
@@ -174,5 +170,7 @@ interface Experiments {
|
|
|
174
170
|
CssChunkingPlugin: typeof CssChunkingPlugin;
|
|
175
171
|
createNativePlugin: typeof createNativePlugin;
|
|
176
172
|
VirtualModulesPlugin: typeof VirtualModulesPlugin;
|
|
173
|
+
createRscPlugins: typeof createRscPlugins;
|
|
174
|
+
RSC_LAYERS_NAMES: typeof RSC_LAYERS_NAMES;
|
|
177
175
|
}
|
|
178
176
|
export declare const experiments: Experiments;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as rspackExports from
|
|
2
|
-
import { rspack as rspackFn } from
|
|
1
|
+
import * as rspackExports from "./exports";
|
|
2
|
+
import { rspack as rspackFn } from "./rspack";
|
|
3
3
|
type Rspack = typeof rspackFn & typeof rspackExports & {
|
|
4
4
|
rspack: Rspack;
|
|
5
5
|
webpack: Rspack;
|
|
6
6
|
};
|
|
7
7
|
declare const rspack: Rspack;
|
|
8
|
-
export * from
|
|
8
|
+
export * from "./exports";
|
|
9
9
|
export default rspack;
|
|
10
10
|
export { rspack };
|