Replies: 20 comments 31 replies
-
Any chance to get #9590 added as part of Vite 4? Switching jsx automatic transform to esbuild should bring a nice performance boost for React developers. |
Beta Was this translation helpful? Give feedback.
-
Will the module federation be present? |
Beta Was this translation helpful? Give feedback.
-
I would love to give more feedback on vite 3 (and vite 4) but unfortunately am still stuck on vite 2 (like many others?). Is any active work going into the most upvoted issue: When disabling sourcemaps, I get stuck later on the build with this issue: |
Beta Was this translation helpful? Give feedback.
-
My biggest wishlist items for Vite at the moment are #9378, #7887 and #2830. Of those, the only one that I think could be considered breaking — and therefore worth prioritising for a new major version — is #9378. I would argue that the current default behaviour around |
Beta Was this translation helpful? Give feedback.
-
Not technically a breaking change, but I'd love to see #9763 landed. At the moment, Vite SSR will crash if you are using a pnpm or Yarn monorepo and have any CJS dependencies. |
Beta Was this translation helpful? Give feedback.
-
What is the time to support http2 with using proxy by default? I think it is important for loading performance. |
Beta Was this translation helpful? Give feedback.
-
generation of type decalarations in dist folder in library mode without any flags or plugins |
Beta Was this translation helpful? Give feedback.
-
Browsers can get pretty slow when a project has lot of modules which results into a lot of http requests. Not sure what the best long-term approach is but it would be nice to address this #10047 so |
Beta Was this translation helpful? Give feedback.
-
As far as my wish list for Vite 4 is concerned... I'm still trying to figure out what is going on in Vite 3 regarding a lib production bundle and tree shaking not apparently working. For reference #8464 is tracking this issue w/ Vite 3. Even adding the specific Rollup parameters mentioned in that issue doesn't seem to be effective w/ my UI library / end developers setups. Coming from Rollup before Vite 3 this wasn't a problem. With moving to Rollup 3 for Vite 4 making sure tree shaking works for production builds (lib or otherwise) out of the box would be superb. Thanks all Vite devs / maintainers! |
Beta Was this translation helpful? Give feedback.
-
Dependency pre-bundling only applies in development mode, and uses esbuild to convert dependencies to ESM. In production builds, @rollup/plugin-commonjs is used instead. Give the possibility(option) to use esbuild instead of @rollup/plugin-commonjs during the production build. |
Beta Was this translation helpful? Give feedback.
-
implement an option/plugin which supports node core modules/globals I understand that the goal is browsers....but as a separate option/plugin - it would be cool |
Beta Was this translation helpful? Give feedback.
-
I don't think this would be something that couldn't be part of a minor, but would love to see some more SSR love - specifically #9054 and #9446. Import assertions also remain an issue - #9446 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use Rollup v3 with Vite v3? |
Beta Was this translation helpful? Give feedback.
-
I saw a conversation on Discord about swc being available in vite v4, but no mention here. Is that happening? |
Beta Was this translation helpful? Give feedback.
-
Would adding SystemJS support be a breaking change? I mean it sounds like just a feature, but maybe it requires changing some internals that would cause backwards incompatibility. If yes, can it be reconsidered as it was rejected by Evan? See #588 (comment) for more details. If it wouldn't be breaking then of course it could be added in some next minor release, so not adding it in 4.0 is not a big problem Or maybe it is already supported but |
Beta Was this translation helpful? Give feedback.
-
I'm probably squarely in the minority here, but one change I'd love to see for Vite 4 is getting rid of the config bundling step. It seems harmless, and allows people to use TypeScript to author their configs, but it results in subtle bugs, such as these ones in SvelteKit:
Rollup used to do something similar — it would use itself to bundle Inside a -import type { UserConfig } from 'vite';
-const config: UserConfig = {
+/** @type {import('vite').UserConfig} */
+const config = { |
Beta Was this translation helpful? Give feedback.
-
We are discussing aligning the output file name format with rollup and esbuild (from |
Beta Was this translation helpful? Give feedback.
-
I see that v4 just hit beta - is there an estimate on when it will be out of beta? |
Beta Was this translation helpful? Give feedback.
-
I have a vite 3 project. How can I update it to vite 4? Do I need to make a new project from scratch and copy the files? Or do I simply update the version number in package.json, delete node_modules folder and do npm install? |
Beta Was this translation helpful? Give feedback.
-
@benmccann
Aren't we supposed to use this or is this old now? |
Beta Was this translation helpful? Give feedback.
-
With Rollup 3 released, we will be starting Vite 4 alpha/beta soon to bump the internal Rollup version. Along with other changes in the v4 milestone.
This release is planned to be less breaking, so not much work should be needed to upgrade. Among the main goals for this major release are:
es2020
compatibility by default #9062)dotenv
(Support for Multiline values in env files #10149, feat(env): support dotenv-expand to contains process env #10370)Some cleanups:
mode
and env var handling (Rethink dev/prod/mode handling #9274)If you have any feedback about Vite 4, 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