use custom polyfill for path.join (fix webpack 5 build)

This commit is contained in:
garronej
2021-12-16 20:44:39 +01:00
parent 46bd319ebe
commit 1138313028
4 changed files with 8 additions and 5 deletions

View File

@ -0,0 +1,3 @@
export function pathJoin(...path: string[]): string {
return path.map(part => part.replace(/^\/+/, "").replace(/\/+$/, "")).join("/");
}