Fix resolution of WSL files on Windows (#411)
parent
d32e9cc086
commit
80e2e5aba5
|
@ -430,7 +430,6 @@ async function createProjectService(
|
|||
concurrency: Math.max(os.cpus().length, 1),
|
||||
})
|
||||
)
|
||||
.map(normalizePath)
|
||||
.sort((a: string, b: string) => a.split('/').length - b.split('/').length)
|
||||
.map(path.normalize)
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ export function setPnpApi(pnpApi: any): void {
|
|||
}
|
||||
|
||||
export default function resolveFrom(from?: string, id?: string): string {
|
||||
if (id.startsWith('\\\\')) return id
|
||||
let result = resolver.resolveSync({}, from, id)
|
||||
if (result === false) throw Error()
|
||||
// https://github.com/webpack/enhanced-resolve/issues/282
|
||||
|
|
Loading…
Reference in New Issue