@rspack/core 0.7.3-canary-a741c8d-20240611125339 → 0.7.3
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/config/adapter.js +6 -7
- package/dist/config/adapterRuleUse.d.ts +3 -39
- package/dist/config/adapterRuleUse.js +14 -7
- package/dist/config/zod.d.ts +302 -302
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- 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/stats/DefaultStatsFactoryPlugin.js +15 -1
- package/dist/stats/DefaultStatsPresetPlugin.js +2 -2
- package/dist/util/index.d.ts +1 -1
- package/module.d.ts +244 -0
- package/package.json +8 -6
|
@@ -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;
|
|
@@ -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>;
|