Fix Turbopack module resolution for lzma and restore path imports

This commit is contained in:
openhands committed 2026-08-25 22:19:59 +02:00
1 parent a5044c80d7
commit e06596391e
35 files changed
+392 -333

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import path from "path";
export function getRuntimePath(...segments: string[]): string {
const resolvePath = new Function("p", "segs", "return p.join(...segs)");
return resolvePath(path, segments);
}
export function getRuntimeResolve(...segments: string[]): string {
const resolvePath = new Function("p", "segs", "return p.resolve(...segs)");
return resolvePath(path, segments);
}