@rspack-canary/browser 1.6.4-canary-0853cbf5-20251117173648 → 1.6.5-canary-aa49744b-20251119174225
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.
|
@@ -14,6 +14,7 @@ export declare const RuntimePluginImpl: {
|
|
|
14
14
|
};
|
|
15
15
|
export type RuntimePluginHooks = {
|
|
16
16
|
createScript: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
17
|
+
createLink: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
17
18
|
linkPreload: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
18
19
|
linkPrefetch: liteTapable.SyncWaterfallHook<[string, Chunk]>;
|
|
19
20
|
};
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
|
8
8
|
* https://github.com/webpack/webpack-dev-server/blob/master/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
import type http from "http";
|
|
11
|
-
import type net from "net";
|
|
12
|
-
import type stream from "stream";
|
|
13
|
-
import type url from "url";
|
|
10
|
+
import type * as http from "node:http";
|
|
11
|
+
import type * as net from "node:net";
|
|
12
|
+
import type * as stream from "node:stream";
|
|
13
|
+
import type * as url from "node:url";
|
|
14
14
|
import type { Compiler, LiteralUnion, MultiCompiler, MultiStats, Stats, Watching } from "..";
|
|
15
15
|
type Logger = ReturnType<Compiler["getInfrastructureLogger"]>;
|
|
16
16
|
type MultiWatching = MultiCompiler["watch"];
|
package/dist/index.mjs
CHANGED
|
@@ -56606,6 +56606,10 @@ RuntimePlugin.getHooks = RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
|
56606
56606
|
"code",
|
|
56607
56607
|
"chunk"
|
|
56608
56608
|
]),
|
|
56609
|
+
createLink: new SyncWaterfallHook([
|
|
56610
|
+
"code",
|
|
56611
|
+
"chunk"
|
|
56612
|
+
]),
|
|
56609
56613
|
linkPreload: new SyncWaterfallHook([
|
|
56610
56614
|
"code",
|
|
56611
56615
|
"chunk"
|
|
@@ -56627,6 +56631,13 @@ const createRuntimePluginHooksRegisters = (getCompiler, createTap)=>({
|
|
|
56627
56631
|
return queried.call(data.code, data.chunk);
|
|
56628
56632
|
};
|
|
56629
56633
|
}),
|
|
56634
|
+
registerRuntimePluginCreateLinkTaps: createTap(external_rspack_wasi_browser_js_["default"].RegisterJsTapKind.RuntimePluginCreateLink, function() {
|
|
56635
|
+
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).createLink;
|
|
56636
|
+
}, function(queried) {
|
|
56637
|
+
return function(data) {
|
|
56638
|
+
return queried.call(data.code, data.chunk);
|
|
56639
|
+
};
|
|
56640
|
+
}),
|
|
56630
56641
|
registerRuntimePluginLinkPreloadTaps: createTap(external_rspack_wasi_browser_js_["default"].RegisterJsTapKind.RuntimePluginLinkPreload, function() {
|
|
56631
56642
|
return RuntimePlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).linkPreload;
|
|
56632
56643
|
}, function(queried) {
|
|
@@ -58126,7 +58137,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
58126
58137
|
if ("object" == typeof rspackFuture) {
|
|
58127
58138
|
D(rspackFuture, "bundlerInfo", {});
|
|
58128
58139
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
58129
|
-
D(rspackFuture.bundlerInfo, "version", "1.6.
|
|
58140
|
+
D(rspackFuture.bundlerInfo, "version", "1.6.5-canary-aa49744b-20251119174225");
|
|
58130
58141
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
58131
58142
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
58132
58143
|
}
|
|
@@ -62075,7 +62086,7 @@ class MultiStats {
|
|
|
62075
62086
|
return obj;
|
|
62076
62087
|
});
|
|
62077
62088
|
if (childOptions.version) {
|
|
62078
|
-
obj.rspackVersion = "1.6.
|
|
62089
|
+
obj.rspackVersion = "1.6.5-canary-aa49744b-20251119174225";
|
|
62079
62090
|
obj.version = "5.75.0";
|
|
62080
62091
|
}
|
|
62081
62092
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -63380,7 +63391,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
63380
63391
|
},
|
|
63381
63392
|
version: (object)=>{
|
|
63382
63393
|
object.version = "5.75.0";
|
|
63383
|
-
object.rspackVersion = "1.6.
|
|
63394
|
+
object.rspackVersion = "1.6.5-canary-aa49744b-20251119174225";
|
|
63384
63395
|
},
|
|
63385
63396
|
env: (object, _compilation, _context, { _env })=>{
|
|
63386
63397
|
object.env = _env;
|
|
@@ -66517,7 +66528,7 @@ function transformSync(source, options) {
|
|
|
66517
66528
|
const _options = JSON.stringify(options || {});
|
|
66518
66529
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
66519
66530
|
}
|
|
66520
|
-
const exports_rspackVersion = "1.6.
|
|
66531
|
+
const exports_rspackVersion = "1.6.5-canary-aa49744b-20251119174225";
|
|
66521
66532
|
const exports_version = "5.75.0";
|
|
66522
66533
|
const exports_WebpackError = Error;
|
|
66523
66534
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -772,6 +772,11 @@ export interface JsCreateData {
|
|
|
772
772
|
resource: string
|
|
773
773
|
}
|
|
774
774
|
|
|
775
|
+
export interface JsCreateLinkData {
|
|
776
|
+
code: string
|
|
777
|
+
chunk: Chunk
|
|
778
|
+
}
|
|
779
|
+
|
|
775
780
|
export interface JsCreateScriptData {
|
|
776
781
|
code: string
|
|
777
782
|
chunk: Chunk
|
|
@@ -2964,13 +2969,14 @@ export declare enum RegisterJsTapKind {
|
|
|
2964
2969
|
HtmlPluginBeforeEmit = 39,
|
|
2965
2970
|
HtmlPluginAfterEmit = 40,
|
|
2966
2971
|
RuntimePluginCreateScript = 41,
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2972
|
+
RuntimePluginCreateLink = 42,
|
|
2973
|
+
RuntimePluginLinkPreload = 43,
|
|
2974
|
+
RuntimePluginLinkPrefetch = 44,
|
|
2975
|
+
RsdoctorPluginModuleGraph = 45,
|
|
2976
|
+
RsdoctorPluginChunkGraph = 46,
|
|
2977
|
+
RsdoctorPluginModuleIds = 47,
|
|
2978
|
+
RsdoctorPluginModuleSources = 48,
|
|
2979
|
+
RsdoctorPluginAssets = 49
|
|
2974
2980
|
}
|
|
2975
2981
|
|
|
2976
2982
|
export interface RegisterJsTaps {
|
|
@@ -3016,7 +3022,8 @@ export interface RegisterJsTaps {
|
|
|
3016
3022
|
registerHtmlPluginBeforeEmitTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeEmitData) => JsBeforeEmitData); stage: number; }>
|
|
3017
3023
|
registerHtmlPluginAfterEmitTaps: (stages: Array<number>) => Array<{ function: ((arg: JsAfterEmitData) => JsAfterEmitData); stage: number; }>
|
|
3018
3024
|
registerRuntimePluginCreateScriptTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCreateScriptData) => String); stage: number; }>
|
|
3019
|
-
|
|
3025
|
+
registerRuntimePluginCreateLinkTaps: (stages: Array<number>) => Array<{ function: ((arg: JsLinkPreloadData) => String); stage: number; }>
|
|
3026
|
+
registerRuntimePluginLinkPreloadTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCreateLinkData) => String); stage: number; }>
|
|
3020
3027
|
registerRuntimePluginLinkPrefetchTaps: (stages: Array<number>) => Array<{ function: ((arg: JsLinkPrefetchData) => String); stage: number; }>
|
|
3021
3028
|
registerRsdoctorPluginModuleGraphTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorModuleGraph) => Promise<boolean | undefined>); stage: number; }>
|
|
3022
3029
|
registerRsdoctorPluginChunkGraphTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorChunkGraph) => Promise<boolean | undefined>); stage: number; }>
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5-canary-aa49744b-20251119174225",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|