Replies: 21 comments 40 replies
-
My biggest wish-list item for Vite 3 would be to purge absolute URLs from built apps and make everything relative. Most saliently, those absolute (or root-relative, to be precise) URLs are used with the (I opened #2009, and started working on a PR, but it touched parts of the codebase I was unfamiliar with so I put it on hold until I could devote more time to it.) Without this change, Vite apps aren't portable — they only work if you know the basepath at build time. There are lots of situations where that's not true — off the top of my head:
More discussion about these cases here: sveltejs/kit#595. |
Beta Was this translation helpful? Give feedback.
-
Support |
Beta Was this translation helpful? Give feedback.
-
I added an issue mentioning some rough edges we've encountered assuming there's an |
Beta Was this translation helpful? Give feedback.
-
Dose vite support use full url of script, link, img... etc in development mode? If vite does not support this, I hope it could do that. It is very useful for micro-frontend development. |
Beta Was this translation helpful? Give feedback.
-
Maybe a good time to find a maintained replacement for node-http-proxy, that supports proxy with http/2 ? See #4184. Http/2 is key for dev server speed, and developer experience is currently downgraded to http 1 just in the case proxy is used (quite frequently I suspect to bypass api CORS on local host development). |
Beta Was this translation helpful? Give feedback.
-
I have created a proposal of changing |
Beta Was this translation helpful? Give feedback.
-
This is a minor thing (that I haven't bothered to make an issue for because it'd be a breaking change), but it'd be wonderful if the |
Beta Was this translation helpful? Give feedback.
-
It would be fantastic if we could clear some tech debt by allowing both http2 and proxying at the same time: vite/packages/vite/src/node/http.ts Lines 101 to 104 in d7540c8 Falling back to http1 was only meant as a temporary solution #484 (comment) |
Beta Was this translation helpful? Give feedback.
-
is there a plan to publish vite as esm? 😉 some background: module: "nodenext" was introduced in ts v4.5, but has been experimental for some reasons, but it's very likely to be stable in v4.7. TypeScript 4.7 adds this functionality with two new module settings: node12 and nodenext. |
Beta Was this translation helpful? Give feedback.
-
The Vite docs mention the following :
I am very unfamiliar with the codebase, but is this still something in consideration ? |
Beta Was this translation helpful? Give feedback.
-
As another idea: for vite react plugin, replace babel plugins by swc or native esbuild plugins to gain speed. |
Beta Was this translation helpful? Give feedback.
-
Do we all agree that SSR dependencies should always be externalized? (With the exception of dependencies that the user added to CC @benmccann. |
Beta Was this translation helpful? Give feedback.
-
Maybe a plugin hook to pre-render |
Beta Was this translation helpful? Give feedback.
-
Use a linkedom instance as a fast virtual DOM for SSR and plugins Currently, the transformIndexHtml hook operates on a string representation of the DOM. Plugin authors can provide a set of Instead, Vite could parse the static |
Beta Was this translation helpful? Give feedback.
-
A very minor breaking change to be discussed:
|
Beta Was this translation helpful? Give feedback.
-
Dynamic imports with aliases are not working still: import(`@/assets/${props.type}.svg`)
👆 |
Beta Was this translation helpful? Give feedback.
-
I wish vite can natively supports node app development such as express and fastify. |
Beta Was this translation helpful? Give feedback.
-
Why to change the default strategy from pre-scans user code to delaying? Here is my test reporter.From my test, pre-scan will optimize 9 deps.
Vite 3 with
|
Beta Was this translation helpful? Give feedback.
-
Evan You, 头像好帅 |
Beta Was this translation helpful? Give feedback.
-
I just switched our Is this expected? And if it is, isn't this a slight regression? I guess it's worth it if you had troubles when dev env behaved differently from the prod in the past, but we have never experienced anything like that. |
Beta Was this translation helpful? Give feedback.
-
Hello! I see an issue, not working vite app, but no problem react app. This is react-speech-recognition |
Beta Was this translation helpful? Give feedback.
-
After Node v12 EOL (end of April), we're starting the beta process for Vite v3. You can check the current PRs queued up for 3.0 in the v3 milestone.
The major bump is mainly driven by dropping Node v12. We will take the opportunity to remove deprecated APIs. A yearly cadence for Vite majors should allow us to regularly clean up the codebase. And there should be enough time for the Ecosystem to plan and move out of these APIs.
On top of this, we will have the usual fixes, perf improvements, and features we have for each minor. We could include a redesign for the CLI, and it would also be good to use a new theme for the docs with dark theme support.
There are some interesting proposals that would be great if we could push forward (although they could be also be added in future 3.x minors):
For most users, upgrading to Vite v3 should be similar to the process of doing so for a minor. But we could take the opportunity to review defaults or design choices if there is a straightforward path for upgrading and the ecosystem would benefit from these changes.
@benmccann already started to put some of these ideas on the table:
fixStacktrace
default tofalse
#7528If you have feedback about Vite 3, especially regarding breaking changes that we will not be able to do in future minors, let's discuss this here or create an issue and link it to this discussion.
Beta Was this translation helpful? Give feedback.
All reactions