-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS: resolve relative paths without ./ prefix #469
Comments
Thanks for reporting this issue. The reason why this happens is that esbuild follows node's path resolution logic in which a path without a I just did a survey of how other bundlers handle this case:
It's definitely not great that esbuild and Parcel are opposites. It looks like Webpack actually checks both locations and appears to prioritize the relative path check above the package path check. So esbuild should probably do that. |
Is this changed supported when using I can't seem to find any docs on how file resolving works. |
Still face this issue. Personally I now do |
Facing this issue +1 esbuild version: v0.12.17
|
CSS
url()
defines:Currently,.
esbuild
fails when encountering relative URLs without a./
prefix:The text was updated successfully, but these errors were encountered: