@builder.io/dev-tools 1.18.40-dev.202512101354.78246177d → 1.18.40-dev.202512101507.78246177d

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.
@@ -11,7 +11,6 @@ export declare const NON_AUTHENTICATED_ENDPOINTS: {
11
11
  readonly STATUS_V2: "/status-v2";
12
12
  readonly INIT_LOGS: "/init-logs";
13
13
  readonly RESOLVE_SOURCE_MAP: "/resolve-source-map";
14
- readonly GET_SOURCE_MAP: "/get-source-map";
15
14
  };
16
15
  export declare const configureServer: ({ app, validBuilderPrivateKey, authenticateProxy, isLocal, sharedState, }: {
17
16
  app: Express;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Server-side source map resolution for Turbopack and webpack projects
3
- * Resolves bundled file locations to original source locations
2
+ * Server-side source map resolution using @jridgewell/trace-mapping
3
+ * Fetches bundled files from dev server and resolves to original source locations
4
4
  */
5
5
  export interface OriginalPosition {
6
6
  source: string;
@@ -10,16 +10,17 @@ export interface OriginalPosition {
10
10
  }
11
11
  /**
12
12
  * Resolve a bundled file location to its original source location
13
- * @param projectRoot Root directory of the project
13
+ * @param projectRoot Root directory of the project (for file fallback)
14
+ * @param devServerUrl Base URL of the dev server (e.g., http://localhost:3000)
14
15
  * @param bundledPath Path to the bundled file (e.g., /_next/static/chunks/app/page.js)
15
16
  * @param line Line number in bundled file (1-indexed)
16
17
  * @param column Column number in bundled file (0-indexed)
17
18
  */
18
- export declare function resolveSourceLocation(projectRoot: string, bundledPath: string, line: number, column: number): Promise<OriginalPosition | null>;
19
+ export declare function resolveSourceLocation(projectRoot: string, devServerUrl: string, bundledPath: string, line: number, column: number): Promise<OriginalPosition | null>;
19
20
  /**
20
21
  * Batch resolve multiple source locations
21
22
  */
22
- export declare function batchResolveSourceLocations(projectRoot: string, locations: Array<{
23
+ export declare function batchResolveSourceLocations(projectRoot: string, devServerUrl: string, locations: Array<{
23
24
  bundledPath: string;
24
25
  line: number;
25
26
  column: number;