diff --git a/packages/modular-scripts/src/esbuild-scripts/utils/formatPath.ts b/packages/modular-scripts/src/esbuild-scripts/utils/formatPath.ts index ca3dbbb23..c3c08adc3 100644 --- a/packages/modular-scripts/src/esbuild-scripts/utils/formatPath.ts +++ b/packages/modular-scripts/src/esbuild-scripts/utils/formatPath.ts @@ -2,6 +2,6 @@ import path from 'path'; export function normalizeToPosix(pathName: T): T { return ( - pathName ? pathName.split(path.sep).join(path.posix.sep) : pathName + pathName ? pathName.split(path.win32.sep).join(path.posix.sep) : pathName ) as T; }