use custom polyfill for path.join (fix webpack 5 build)
This commit is contained in:
3
src/lib/tools/pathJoin.ts
Normal file
3
src/lib/tools/pathJoin.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function pathJoin(...path: string[]): string {
|
||||
return path.map(part => part.replace(/^\/+/, "").replace(/\/+$/, "")).join("/");
|
||||
}
|
Reference in New Issue
Block a user