@builder.io/dev-tools 1.18.40-dev.202512101340.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.
- package/cli/index.cjs +868 -509
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +2 -1
- package/server/index.cjs +673 -309
- package/server/index.mjs +678 -314
- package/types/server/source-map-resolver.d.ts +6 -5
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Server-side source map resolution
|
|
3
|
-
*
|
|
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;
|