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
There's something strange going on with path separators on Windows in the precompile example in the readme. The path.dirname call correctly reads out the base directory as, for example, C:\\folder\\subFolder, and the path is successfully combined with the item in the url call, generating something like C:\\folder\\subFolder/./assets/image/png.
If I add a dummy plugin to esbuild, I can see that an onResolve call will then be attempted to be made to C:foldersubFolder/./assets/image/png by this plugin.
I was able to resolve the issue by either double escaping the windows path seperator...
There's something strange going on with path separators on Windows in the precompile example in the readme. The
path.dirname
call correctly reads out the base directory as, for example,C:\\folder\\subFolder
, and the path is successfully combined with the item in theurl
call, generating something likeC:\\folder\\subFolder/./assets/image/png
.If I add a dummy plugin to esbuild, I can see that an onResolve call will then be attempted to be made to
C:foldersubFolder/./assets/image/png
by this plugin.I was able to resolve the issue by either double escaping the windows path seperator...
... or by using
/
instead:I'm not exactly sure what's going on there, but at least its workaroundable.
The text was updated successfully, but these errors were encountered: