You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using yarn berry the initial resolveDir passed to plugins is invalid, for example /usr/morse/github/github becomes /usr/morse/github/github
The paths in metafile.json are invalid too, they have one more ../ than necessary, for example what should be ./index.ts becomes ../index.ts, this is probably because esbuild thinks cwd is /usr/morse/github/github instead of /usr/morse/github
This does not happen when using yarn 1, only with yarn berry
I did some investigation. This appears to be because in this specific case the path ends with /. When that happens filepath.Dir(path) ends with filepath.Base(path) instead of excluding it. I was unfortunately unable to construct an automated test of this scenario.
When using yarn berry the initial
resolveDir
passed to plugins is invalid, for example/usr/morse/github/github
becomes/usr/morse/github/github
The paths in metafile.json are invalid too, they have one more
../
than necessary, for example what should be./index.ts
becomes../index.ts
, this is probably because esbuild thinks cwd is/usr/morse/github/github
instead of/usr/morse/github
This does not happen when using yarn 1, only with yarn berry
Reproduction:
https://github.com/remorses/esbuild-reproduction-wrong-resolveDir-in-yarn-berry
The text was updated successfully, but these errors were encountered: