Skip to content

Commit e292283

Browse files
committed
fix module resolution when path has a # (fixes #331)
1 parent b7bf51f commit e292283

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/resolveFrom.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ export function setPnpApi(pnpApi: any): void {
2222
export default function resolveFrom(from?: string, id?: string): string {
2323
let result = resolver.resolveSync({}, from, id)
2424
if (result === false) throw Error()
25-
return result
25+
// https://github.com/webpack/enhanced-resolve/issues/282
26+
return result.replace(/\0#/g, '#')
2627
}

0 commit comments

Comments
 (0)