-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
fix(html): fix inconsistency in resolving alias in dev and build mode. #18542
Conversation
The visitor function when traversing shouldn't be async as it'll run slower. We had Though about the feature as a whole, I wonder if it's feasible to support it entirely in dev to match build. E.g. do we also want to support specify dependency names like My initial hunch is that we don't have to fix #17910. Build has to match dev (and free to extend), but dev doesn't have to match build 🤔 |
That sounds good to make build match dev (and free to extend), but dev doesn't have to match build. |
Maybe good to have @sapphi-red's opinion on this too |
I think it'd be nice to make build match to dev too. It's not important than making dev to match build though. In this case, I think changing the build's behavior to align with dev is also a choice. I hope that won't break anything in ecosystem-ci. |
My opinion was actually we don't have to shrink down the build behaviour to the same level as dev. The dev server is where you'd spend most of your time on and becomes the source of truth. Build is an optimization step before deploying, so if it supports something else out of scope of dev, it doesn't matter since you don't realistically develop against build all the time. We could shrink it down if it's easy, but if not I think it's acceptable to leave it as is too. |
Yeah, I won't say it's necessary. But I'd be open to align them unless the implementation gets much complicated. |
Fixes #17910