Fix Turbopack module resolution for lzma and restore path imports
This commit is contained in:
1 parent
a5044c80d7
commit
e06596391e
35 files changed
+392
-333
No files matched your search
@@ -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