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 23, 2022
1 parent 3acc66b commit fb9222a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,10 @@ export default function esbuildPluginPino({

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

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

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

0 comments on commit fb9222a

Please sign in to comment.