Replies: 48 comments 60 replies
-
Considering the short timeframe between the two Node EOLs, I think I would follow you in skipping the first EOL for Rollup and also go for a new major in September. At the moment, I do not have anything "big" to release, and while I have some crazy ideas, time is very scarce at the moment, so going of the September release would improve the chances to have something releasable. |
Beta Was this translation helpful? Give feedback.
-
Adding vite-node into core is huge 👍 We're using it in imba to bundle server code. Another feature I'd love to see in core is Native support for tsconfig's paths resolution. We're currently using a forked version of a vite-tsconfig-paths that doesn't crash when no tsconfig file is present. |
Beta Was this translation helpful? Give feedback.
-
We're discussing removing |
Beta Was this translation helpful? Give feedback.
-
The main hurdle I am facing is, migrating existing create-react-app projects due to node12 or older dependencies and react verisons. I am all in to update everything unless it breaks anything. Just need a stable support to port my entire app. Because the performance is the best in vite so far and want to continue that. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
I think lib mode need to be enhenced:
|
Beta Was this translation helpful? Give feedback.
-
Better error reporting API! and fully annonated errors can be super nice, can try to put together a proposal for this! |
Beta Was this translation helpful? Give feedback.
-
I really love the continued emphasis on performance, great work! Looking forward to the release of the speed improvements to resolution 😃. My number one wishlist item would be support for CommonJS in monorepo sub-dependencies. 📦 IMHO, this is by far the biggest footgun when using Vite today. CommonJS is ubiquitous in the npm ecosystem so users of Yarn/pnpm using SSR will almost certainly have issues. Users are presented with an unhelpful error message, so at the very least having a more helpful error would be great. While workarounds are possible, it's frustrating for newcomers and difficult to maintain the workarounds in configuration over time as dependencies are added. |
Beta Was this translation helpful? Give feedback.
-
I believe fixing file content hashing would make a huge difference for users, especially when migrating from webpack where this behaves differently and can potentially waste a massive amount of bandwidth having to re-fetch unchanged files |
Beta Was this translation helpful? Give feedback.
-
Just to make it clear, I think we will drop Node 19 as well. |
Beta Was this translation helpful? Give feedback.
-
Maybe a better way to conditionnaly apply plugins ? export default defineConfig({
plugins: [
!process.env.ENABLE_IMG_MIN === 'true'
? undefined
: ImageMin({
// ...
})
]
}) |
Beta Was this translation helpful? Give feedback.
-
Prioritizing fixing #2433 would be greatly appreciated. It seems to have started somewhere around v2.8.x or v2.9.x, and is effecting a significant amount of users from the reactions in the issue. |
Beta Was this translation helpful? Give feedback.
-
I've seen many comments related to the issues that different systems (esbuild, rollup) for development vs production builds cause. Has anything changed since the "Why Not Bundle with esbuild?" section on the website was made? |
Beta Was this translation helpful? Give feedback.
-
IMO, Vite 5 should restore support for CJS. Revert #11101, or provide a way to resolve CJS libraries with broken package.json exports. The JS ecosystem is not ready to fully drop CJS and move to ESM yet, the transition should be seamless. |
Beta Was this translation helpful? Give feedback.
-
I would like Vite to have built in support for building node_module-less ssr (only node builtins are externals). Just like next and nuxt does. For this a replacement for https://github.com/vercel/webpack-asset-relocator-loader would be needed. |
Beta Was this translation helpful? Give feedback.
-
Any ideas for improving Page reload very slow? |
Beta Was this translation helpful? Give feedback.
-
Putting here some Vite 5 todos I'd like to work on:
|
Beta Was this translation helpful? Give feedback.
-
Any news about Vapor Mode on Vue3, can this feature be implemented into Vite by design as an argument option or better a plugin? |
Beta Was this translation helpful? Give feedback.
-
What I need is a vite package to put index.html into... /.. /templates/delivery/ |
Beta Was this translation helpful? Give feedback.
-
I want a feature that package project css into one file, exclude dependecy css, like |
Beta Was this translation helpful? Give feedback.
-
Get css modules fully working |
Beta Was this translation helpful? Give feedback.
-
I would like vite to have official built in support for module federation :) |
Beta Was this translation helpful? Give feedback.
-
is there a pre-migration guide to Vite 5 even if it's still in Beta? I would like to start testing it with my projects but I don't feel like reading through all breaking change PRs to find out what changes are required. Thanks |
Beta Was this translation helpful? Give feedback.
-
What is the performance gain of using rollup@4 in the vite@v5.0.0-beta.10 version compared to the previous rollup@3 version? Do you have any test? @sapphi-red |
Beta Was this translation helpful? Give feedback.
-
Fixing #8237 would give a 100x dev server page load performance boost to people that use icon libraries. With tabler-icons, page load/navigation takes 30-60s and build times increase by ~20s |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Hello!
Since it's coming from inside Vite, setting |
Beta Was this translation helpful? Give feedback.
-
Hello, after upgrading to 5, I needed to add Any idea why this is now necessary? My best guess was something related to https://vitejs.dev/guide/migration#align-dev-and-preview-html-serving-behaviour but that was just a shot in the dark. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to restore the behavior how the previous version of vite process module styles, reserve default export of the style files that without a module extension? Because there's a large amount of legacy code which can't be migrated easily. 😖 |
Beta Was this translation helpful? Give feedback.
-
Pressing |
Beta Was this translation helpful? Give feedback.
-
We're starting a discussion to gather early feedback from the downstream ecosystem and users about their needs for Vite's next Major.
Before commenting, please review current open issues and check the previous Vite Major discussions:
Feel free to bring back proposals if you want to expand on them. If possible, create an issue for your feature and link it to this discussion so we can better track the proposal. For substantial changes to how Vite works, you may create an RFC.
Timeline
We've been aligning Vite's major releases with Node EOL. This year the Node team decided to move forward 7 months the EOL of Node v16, so we discussed with the Vite team, and the initial consensus is that it is better to skip the Node 14 EOL and release Vite 5 after September 2023-09-11 dropping support for both Node 14 and Node 16 (feedback welcome in case this affects your projects release schedule). Non Active LTS versions (Node 15, Node 17, Node 19) will also be dropped.
Node.js versions EOL
@lukastaegert, we're interested in the release schedule for Rollup. IIRC, you mentioned you wanted to start doing Major releases more often and aligning with Node EOL too. If there will be a Rollup major after the Node 16 EOL, we'll align with it. We can develop the alpha/beta for Rollup and Vite in parallel so we can release Vite after Rollup is out (how much we wait would depend on whether rollup introduces breaking changes to the plugin ecosystem).
As a tentative timeline, PRs and issues that require breaking changes will be added to the Vite 5 milestone during the next 3 months. Given that we will only have one Major this year, we could enter the alpha period for Vite 5 ~3 months before Node 16 EOL to give us time for more significant changes.
Initial thoughts
Vite has been focusing on a great performance story without compromising the flexibility of its rollup-based plugin API. We should double down on this vision. Work that improves performance should be prioritized for Vite 5. Some of this work may land in the next minors (see improvements to Vite's resolve logic at #12441, #12461, #12450). Vite 5 will give us a new opportunity to introduce breaking changes (that will probably be needed if we end up using Lightning CSS instead of PostCSS for example).
We've also been discussing moving vite-node (that now powers Vitest, Nuxt 3 Dev SSR, Histoire) to Vite core as an alternative to Vite current SSR primitives to add support for source maps and HMR during SSR. You can check out @sheremet-va's early work at #12165.
Check out the Vite 5 milestone, we'll keep it updated with new issues and PRs as we work towards the next Major. We're eager to hear your feedback and ideas.
Beta Was this translation helpful? Give feedback.
All reactions