@rspack/core 0.7.3-canary-a741c8d-20240611125339 → 0.7.3-canary-a17997a-20240614063055
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/Compiler.js +1 -0
- package/dist/RuleSetCompiler.d.ts +1 -0
- package/dist/RuleSetCompiler.js +1 -0
- package/dist/builtin-loader/swc/index.d.ts +3 -1
- package/dist/builtin-loader/swc/index.js +3 -1
- package/dist/builtin-loader/swc/preact.d.ts +7 -0
- package/dist/builtin-loader/swc/preact.js +15 -0
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.js +5 -1
- package/dist/builtin-plugin/RSCClientEntryRspackPlugin.d.ts +10 -0
- package/dist/builtin-plugin/RSCClientEntryRspackPlugin.js +6 -0
- package/dist/builtin-plugin/RSCClientReferenceManifestRspackPlugin.d.ts +21 -0
- package/dist/builtin-plugin/RSCClientReferenceManifestRspackPlugin.js +60 -0
- package/dist/builtin-plugin/RSCProxyRspackPlugin.d.ts +12 -0
- package/dist/builtin-plugin/RSCProxyRspackPlugin.js +28 -0
- package/dist/builtin-plugin/index.d.ts +6 -0
- package/dist/builtin-plugin/index.js +6 -0
- package/dist/config/adapter.js +9 -9
- package/dist/config/adapterRuleUse.d.ts +3 -39
- package/dist/config/adapterRuleUse.js +14 -7
- package/dist/config/normalization.d.ts +1 -0
- package/dist/config/zod.d.ts +310 -302
- package/dist/config/zod.js +2 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/exports.d.ts +3 -0
- package/dist/exports.js +7 -0
- package/dist/loader-runner/index.d.ts +25 -2
- package/dist/loader-runner/index.js +333 -345
- package/dist/loader-runner/loadLoader.js +1 -53
- package/dist/util/index.d.ts +1 -1
- package/package.json +4 -4
package/dist/config/zod.js
CHANGED
|
@@ -832,7 +832,8 @@ const experiments = zod_1.z.strictObject({
|
|
|
832
832
|
topLevelAwait: zod_1.z.boolean().optional(),
|
|
833
833
|
css: zod_1.z.boolean().optional(),
|
|
834
834
|
futureDefaults: zod_1.z.boolean().optional(),
|
|
835
|
-
rspackFuture: rspackFutureOptions.optional()
|
|
835
|
+
rspackFuture: rspackFutureOptions.optional(),
|
|
836
|
+
rsc: zod_1.z.boolean().optional()
|
|
836
837
|
});
|
|
837
838
|
//#endregion
|
|
838
839
|
//#region Watch
|
|
@@ -21,7 +21,7 @@ export type RemotesConfig = {
|
|
|
21
21
|
export declare class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
22
22
|
name: BuiltinPluginName;
|
|
23
23
|
_options: {
|
|
24
|
-
remoteType: "
|
|
24
|
+
remoteType: "commonjs" | "umd" | "amd" | "promise" | "global" | "jsonp" | "import" | "commonjs2" | "var" | "module" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "script" | "node-commonjs";
|
|
25
25
|
remotes: [string, {
|
|
26
26
|
external: string[];
|
|
27
27
|
shareScope: string;
|
package/dist/exports.d.ts
CHANGED
|
@@ -141,3 +141,6 @@ export { EvalSourceMapDevToolPlugin } from "./builtin-plugin";
|
|
|
141
141
|
export { EvalDevToolModulePlugin } from "./builtin-plugin";
|
|
142
142
|
export { CssExtractRspackPlugin } from "./builtin-plugin";
|
|
143
143
|
export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig } from "./builtin-loader/swc/index";
|
|
144
|
+
export { RSCClientEntryRspackPlugin } from "./builtin-plugin";
|
|
145
|
+
export { RSCProxyRspackPlugin } from "./builtin-plugin";
|
|
146
|
+
export { RSCClientReferenceManifestRspackPlugin } from "./builtin-plugin";
|
package/dist/exports.js
CHANGED
|
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CssExtractRspackPlugin = exports.EvalDevToolModulePlugin = exports.EvalSourceMapDevToolPlugin = exports.SourceMapDevToolPlugin = exports.CopyRspackPlugin = exports.SwcCssMinimizerRspackPlugin = exports.SwcJsMinimizerRspackPlugin = exports.HtmlRspackPlugin = exports.sharing = exports.container = exports.optimize = exports.webworker = exports.javascript = exports.wasm = exports.library = exports.electron = exports.node = exports.NormalModuleReplacementPlugin = exports.LoaderTargetPlugin = exports.LoaderOptionsPlugin = exports.EnvironmentPlugin = exports.HotModuleReplacementPlugin = exports.ExternalsPlugin = exports.DynamicEntryPlugin = exports.EntryPlugin = exports.ProgressPlugin = exports.DefinePlugin = exports.ProvidePlugin = exports.IgnorePlugin = exports.BannerPlugin = exports.experimental_registerGlobalTrace = exports.experimental_cleanupGlobalTrace = exports.EntryOptionPlugin = exports.util = exports.config = exports.sources = exports.WebpackError = exports.Template = exports.ModuleFilenameHelpers = exports.Stats = exports.RuntimeGlobals = exports.NormalModule = exports.MultiStats = exports.WebpackOptionsApply = exports.RspackOptionsApply = exports.MultiCompiler = exports.Compiler = exports.Compilation = exports.version = exports.rspackVersion = void 0;
|
|
30
|
+
exports.RSCClientReferenceManifestRspackPlugin = exports.RSCProxyRspackPlugin = exports.RSCClientEntryRspackPlugin = void 0;
|
|
30
31
|
const { version: rspackVersion, webpackVersion } = require("../package.json");
|
|
31
32
|
exports.rspackVersion = rspackVersion;
|
|
32
33
|
exports.version = webpackVersion;
|
|
@@ -157,3 +158,9 @@ var builtin_plugin_25 = require("./builtin-plugin");
|
|
|
157
158
|
Object.defineProperty(exports, "EvalDevToolModulePlugin", { enumerable: true, get: function () { return builtin_plugin_25.EvalDevToolModulePlugin; } });
|
|
158
159
|
var builtin_plugin_26 = require("./builtin-plugin");
|
|
159
160
|
Object.defineProperty(exports, "CssExtractRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_26.CssExtractRspackPlugin; } });
|
|
161
|
+
var builtin_plugin_27 = require("./builtin-plugin");
|
|
162
|
+
Object.defineProperty(exports, "RSCClientEntryRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_27.RSCClientEntryRspackPlugin; } });
|
|
163
|
+
var builtin_plugin_28 = require("./builtin-plugin");
|
|
164
|
+
Object.defineProperty(exports, "RSCProxyRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_28.RSCProxyRspackPlugin; } });
|
|
165
|
+
var builtin_plugin_29 = require("./builtin-plugin");
|
|
166
|
+
Object.defineProperty(exports, "RSCClientReferenceManifestRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_29.RSCClientReferenceManifestRspackPlugin; } });
|
|
@@ -7,11 +7,34 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/loader-runner/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import
|
|
10
|
+
import { JsLoaderContext, JsLoaderItem } from "@rspack/binding";
|
|
11
11
|
import { Compiler } from "../Compiler";
|
|
12
|
+
export declare class LoaderObject {
|
|
13
|
+
#private;
|
|
14
|
+
request: string;
|
|
15
|
+
path: string;
|
|
16
|
+
query: string;
|
|
17
|
+
fragment: string;
|
|
18
|
+
options?: string | object;
|
|
19
|
+
ident: string;
|
|
20
|
+
normal?: Function;
|
|
21
|
+
pitch?: Function;
|
|
22
|
+
raw?: boolean;
|
|
23
|
+
type?: "module" | "commonjs";
|
|
24
|
+
constructor(loaderItem: JsLoaderItem, compiler: Compiler);
|
|
25
|
+
get pitchExecuted(): boolean;
|
|
26
|
+
set pitchExecuted(value: boolean);
|
|
27
|
+
get normalExecuted(): boolean;
|
|
28
|
+
set normalExecuted(value: boolean);
|
|
29
|
+
get data(): any;
|
|
30
|
+
set data(data: any);
|
|
31
|
+
shouldYield(): boolean;
|
|
32
|
+
static __from_binding(loaderItem: JsLoaderItem, compiler: Compiler): LoaderObject;
|
|
33
|
+
static __to_binding(loader: LoaderObject): JsLoaderItem["inner"];
|
|
34
|
+
}
|
|
35
|
+
export declare function runLoaders(compiler: Compiler, context: JsLoaderContext): Promise<JsLoaderContext>;
|
|
12
36
|
export declare function parsePathQueryFragment(str: string): {
|
|
13
37
|
path: string;
|
|
14
38
|
query: string;
|
|
15
39
|
fragment: string;
|
|
16
40
|
};
|
|
17
|
-
export declare function runLoaders(compiler: Compiler, rawContext: JsLoaderContext): Promise<JsLoaderResult>;
|