patak

Results 228 comments of patak

> Hmm, after thinking this through, running the `src` of module scripts through `markExplicitImport` sounds like the more straight-forward solution to this specific problem 🤔 WDYT? If I understand you...

> > If I understand you correctly, you want us to start marking every known JS source with ?import, both in and when doing an import in a module >...

@haikyuu you may want to use a utility like `injectQuery` https://github.com/vitejs/vite/blob/9f8d79b9897427882bb7da1bdb7862a15938c865/packages/vite/src/node/utils.ts#L307, you need to keep the other queries. Note: Maybe we could expose `injectQuery` as an util in the vite...

It is interesting that this wasn't found before, thanks for digging into it Sapphi. I think this PR is a good first step. We can release it as a minor...

Let's release this PR in a new minor for plugin-legacy tomorrow.

One improvement we could do before merging is to move the new tests to an existing playground. Our e2e CI is taking quite a bit of time already so we...

@mrm007 would you address @ydcjeff comments first? Thanks!

@benjervis would you send a PR cherry-picking this one to the `v3.1` branch?

I think this is a good solution for including in 3.1. For Vite 4, we may want to revisit how the dedupe of assets works, see discussion in: - https://github.com/vitejs/vite/issues/8632...

We discussed this PR in today's team meeting and we think it is good to be merged. We are going to keep the deduplication of assets, but we think the...