fix: enforce generating module param when needed in relative url resolving (fixes #9807)#9808
fix: enforce generating module param when needed in relative url resolving (fixes #9807)#9808Tal500 wants to merge 2 commits intovitejs:mainfrom
module param when needed in relative url resolving (fixes #9807)#9808Conversation
module params when needed in relative url resolving (fixes #9807)module param when needed in relative url resolving (fixes #9807)
|
Thank you for the PR! We are doing a similar thing in Maybe just updating this regex will fix your issue? |
Hi!
vite/packages/vite/src/node/build.ts Lines 306 to 308 in 757a92f I The problem I'm facing is this: In some vite internal plugins, this can happen in this order:
So I think the plugin of The approach I have in this PR is:
|
I post PR that solves my problem in your way, although I'm not sure it's good to do this way, but I do understand the safety concerns in this giant project. If the other PR is accepted, this PR can be closed. |
|
Thanks for PR. This PR can fix tiny waste to force declaring a parameter.
I feel that can reduce many parameters that need to be added for state transfer Another chose I think we can do this in Pre Post |
|
Yes, this PR's approach can reduce the parameter. But
. So I thought it does not justify the complexity. |
|
Agreed that the increased complexity doesn't justify this approach, let's go with #9821 |
Tnx! But I didn't understand the question... |
More details on the issue it fixes #9807 .
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).