Fix Turbopack module resolution for lzma and restore path imports
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user