Skip to content

Commit

Permalink
fix(index.ts): replace backslashes with slashes in absoluteOutputPath
Browse files Browse the repository at this point in the history
  • Loading branch information
mkreuzmayr authored Jun 22, 2022
1 parent 6252f0e commit 3acc66b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ export default function esbuildPluginPino({

const contents = await readFile(args.path, 'utf8')

const absoluteOutputPath = join(
resolve('./'),
currentBuild.initialOptions.outdir || 'dist'
)
const absoluteOutputPath = path
.join(
path.resolve('./'),
currentBuild.initialOptions.outdir || 'dist'
)
.replace(/\\/g, '/');

const functionDeclaration = `
function pinoBundlerAbsolutePath(p) {
Expand Down

0 comments on commit 3acc66b

Please sign in to comment.