@rspack-canary/browser 1.6.2-canary-ad5a143d-20251105173931 → 1.6.2-canary-6737fba6-20251106173934

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.
@@ -1,6 +1,16 @@
1
1
  import type binding from "./binding";
2
2
  import type { ResolveCallback } from "./config/adapterRuleUse";
3
- type ResolveContext = {};
3
+ export type ResolveContext = {
4
+ contextDependencies?: {
5
+ add: (context: string) => void;
6
+ };
7
+ missingDependencies?: {
8
+ add: (dependency: string) => void;
9
+ };
10
+ fileDependencies?: {
11
+ add: (dependency: string) => void;
12
+ };
13
+ };
4
14
  export type ResourceData = binding.JsResourceData;
5
15
  export interface ResolveRequest {
6
16
  path: string;
@@ -8,6 +18,9 @@ export interface ResolveRequest {
8
18
  fragment: string;
9
19
  descriptionFileData?: string;
10
20
  descriptionFilePath?: string;
21
+ fileDependencies?: string[];
22
+ missingDependencies?: string[];
23
+ contextDependencies?: string[];
11
24
  }
12
25
  export declare class Resolver {
13
26
  #private;
@@ -15,4 +28,3 @@ export declare class Resolver {
15
28
  resolveSync(context: object, path: string, request: string): string | false;
16
29
  resolve(context: object, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void;
17
30
  }
18
- export {};
package/dist/index.mjs CHANGED
@@ -58126,7 +58126,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
58126
58126
  if ("object" == typeof rspackFuture) {
58127
58127
  D(rspackFuture, "bundlerInfo", {});
58128
58128
  if ("object" == typeof rspackFuture.bundlerInfo) {
58129
- D(rspackFuture.bundlerInfo, "version", "1.6.2-canary-ad5a143d-20251105173931");
58129
+ D(rspackFuture.bundlerInfo, "version", "1.6.2-canary-6737fba6-20251106173934");
58130
58130
  D(rspackFuture.bundlerInfo, "bundler", "rspack");
58131
58131
  D(rspackFuture.bundlerInfo, "force", !library);
58132
58132
  }
@@ -59907,6 +59907,12 @@ class Resolver {
59907
59907
  Resolver_class_private_field_get(this, _binding).resolve(path, request, (error, text)=>{
59908
59908
  if (error) return void callback(error);
59909
59909
  const req = text ? JSON.parse(text) : void 0;
59910
+ if (req?.fileDependencies) req.fileDependencies.forEach((file)=>{
59911
+ resolveContext.fileDependencies?.add(file);
59912
+ });
59913
+ if (req?.missingDependencies) req.missingDependencies.forEach((missing)=>{
59914
+ resolveContext.missingDependencies?.add(missing);
59915
+ });
59910
59916
  callback(error, req ? `${req.path.replace(/#/g, "\u200b#")}${req.query.replace(/#/g, "\u200b#")}${req.fragment}` : false, req);
59911
59917
  });
59912
59918
  }
@@ -62068,7 +62074,7 @@ class MultiStats {
62068
62074
  return obj;
62069
62075
  });
62070
62076
  if (childOptions.version) {
62071
- obj.rspackVersion = "1.6.2-canary-ad5a143d-20251105173931";
62077
+ obj.rspackVersion = "1.6.2-canary-6737fba6-20251106173934";
62072
62078
  obj.version = "5.75.0";
62073
62079
  }
62074
62080
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
@@ -63373,7 +63379,7 @@ const SIMPLE_EXTRACTORS = {
63373
63379
  },
63374
63380
  version: (object)=>{
63375
63381
  object.version = "5.75.0";
63376
- object.rspackVersion = "1.6.2-canary-ad5a143d-20251105173931";
63382
+ object.rspackVersion = "1.6.2-canary-6737fba6-20251106173934";
63377
63383
  },
63378
63384
  env: (object, _compilation, _context, { _env })=>{
63379
63385
  object.env = _env;
@@ -66339,7 +66345,7 @@ function transformSync(source, options) {
66339
66345
  const _options = JSON.stringify(options || {});
66340
66346
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66341
66347
  }
66342
- const exports_rspackVersion = "1.6.2-canary-ad5a143d-20251105173931";
66348
+ const exports_rspackVersion = "1.6.2-canary-6737fba6-20251106173934";
66343
66349
  const exports_version = "5.75.0";
66344
66350
  const exports_WebpackError = Error;
66345
66351
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.6.2-canary-ad5a143d-20251105173931",
3
+ "version": "1.6.2-canary-6737fba6-20251106173934",
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.",