We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d65e7e8 commit b7b2d08Copy full SHA for b7b2d08
esbuild.js
@@ -41,12 +41,12 @@ const pinoPlugin = (options) => ({
41
outbase = nextOutbase
42
i++
43
nextOutbase = hierarchy.slice(0, i).join(sep)
44
- } while (entrypoints.every((e) => e.startsWith(`${nextOutbase}\\`)))
+ } while (entrypoints.every((e) => e.startsWith(`${nextOutbase}${sep}`)))
45
}
46
const newEntrypoints = {}
47
for (const entrypoint of entrypoints) {
48
const destination = (
49
- outbase ? entrypoint.replace(`${outbase}\\`, '') : entrypoint
+ outbase ? entrypoint.replace(`${outbase}${sep}`, '') : entrypoint
50
).replace(/.(js|ts)$/, '')
51
newEntrypoints[destination] = entrypoint
52
0 commit comments