Skip to content

Commit 0b21ff8

Browse files
committed
Strip path prefix
Since for weval we can't map the build dir to something else, we instruct StarlingMonkey to strip the path prefix instead, achieving stack traces that don't depend on source location.
1 parent 68a0b19 commit 0b21ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/componentize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export async function componentize(opts,
225225
sourcePath = sourcePath.slice(workspacePrefix.length + 1);
226226
}
227227
}
228-
let args = `--initializer-script-path ${initializerPath} ${sourcePath}`;
228+
let args = `--initializer-script-path ${initializerPath} --strip-path-prefix ${workspacePrefix}/ ${sourcePath}`;
229229
runtimeArgs = runtimeArgs ? `${runtimeArgs} ${args}` : args;
230230
let preopens = [`--dir ${sourceDir}`];
231231
if (opts.enableAot) {

0 commit comments

Comments
 (0)