Skip to content

Commit

Permalink
use path namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
darian committed Nov 14, 2024
1 parent 74f546a commit 421b623
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esbuild/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path, { posix, sep } from 'node:path';
import path from 'node:path';
import fs from 'node:fs/promises';
import type { Plugin as ESBuildPlugin } from 'esbuild';
import { nodeBuiltin } from 'esbuild-node-builtin';
Expand Down Expand Up @@ -179,6 +179,6 @@ function cleanPlugin(dirs: string[]): ESBuildPlugin {
};
}

function toPosix(path: string): string {
return path.replaceAll(sep, posix.sep);
function toPosix(filePath: string): string {
return filePath.replaceAll(path.sep, path.posix.sep);
}

0 comments on commit 421b623

Please sign in to comment.