Closed Seroxdesign closed 3 days ago
Solved using this pattern:
// Credit: https://github.com/rollup/plugins/blob/master/packages/pluginutils/src/normalizePath.ts#L5
const normalizePath = (filename: string) => filename.split(win32.sep).join(posix.sep);
Our goal:
tsup
Problem:
fs.existsSync()
which return truebuild
as seen below:ts normalizeOptions()
:error Error within compile PrettyError file: Cannot find C:\Users\**\**\**\reponame\filepath\filename.ts
file:\\C:\Users\**\**\**\reponame\filepath\filename.ts
and there I'd get another issue:ERR_UNSUPPORTED_ESM_URL_SCHEME
At my whits end as I've read most of the issues in the repo, maybe I'm missing something super obvious but any help would be appreciated.
Resources: