[{"data":1,"prerenderedAt":29},["ShallowReactive",2],{"$fZfHfy1USzvgCSU5wDnMggz3J7V4jtW-GyYY-Rl6UCYQ":3},{"slug":4,"title":5,"description":6,"date":7,"tags":8,"draft":13,"readingMinutes":14,"html":15,"related":16},"vite-vs-webpack","Vite vs Webpack: Which One I'd Start a Project On","Vite vs Webpack in November 2026: Vite 8 on Rolldown, webpack 5 still everywhere, what changes in dev and build, and when moving an old app is worth it.","2026-11-25",[9,10,11,12],"vite","webpack","javascript","frontend",false,3,"\u003Cp>Short answer: a new project starts on Vite, and I wouldn&#39;t spend a minute debating it. An old webpack project that builds fine is a different question, and the answer there is often &quot;not yet&quot;, or &quot;move to Rspack instead&quot;.\u003C/p>\n\u003Cp>Versions on the npm registry as of November 25, 2026: \u003Ca href=\"https://vite.dev/\">Vite\u003C/a> is at 8.3.8 (November 11), \u003Ca href=\"https://webpack.js.org/\">webpack\u003C/a> at 5.113.0 (November 19). webpack 5 came out in 2020 and there&#39;s still no 6, just a steady stream of 5.x releases. That says a lot about where each one is in its life.\u003C/p>\n\u003Ch2>What changed with Vite 8\u003C/h2>\n\u003Cp>The old line on Vite was &quot;esbuild in dev, Rollup in production&quot;, and the two didn&#39;t always agree. A CommonJS dependency would work in dev and break in the build, or the other way round. That&#39;s gone. \u003Ca href=\"https://vite.dev/blog/announcing-vite8\">Vite 8\u003C/a>, released March 12, 2026, runs on Rolldown, one Rust bundler for both, with Oxc as the compiler underneath. The team says builds got 10 to 30 times faster than Rollup in their benchmarks, and the announcement quotes Linear going from 46 seconds to 6.\u003C/p>\n\u003Cp>It also ships a compatibility layer that converts existing \u003Ccode>esbuild\u003C/code> and \u003Ccode>rollupOptions\u003C/code> settings, so most Vite 7 projects upgrade without touching the config. Node 20.19+ or 22.12+, same as Vite 7.\u003C/p>\n\u003Cp>For me this removes the one real argument webpack people had: &quot;Vite&#39;s dev and prod are two different tools.&quot; They aren&#39;t anymore.\u003C/p>\n\u003Ch2>The dev server is where you feel it\u003C/h2>\n\u003Cp>This is the difference you notice on day one, and it&#39;s architectural, not a tuning thing.\u003C/p>\n\u003Cp>webpack builds a bundle of your whole app before the dev server answers. Change a file and it rebuilds the affected part of that bundle. On a small app that&#39;s fine. On a big one with a few thousand modules, the first start is the kind of wait where you go and make tea.\u003C/p>\n\u003Cp>Vite doesn&#39;t bundle your source in dev. It serves files as native ES modules and transforms each one when the browser asks for it, so startup cost grows with the page you open, not the whole app. Dependencies get pre-bundled once and cached. Hot updates stay fast no matter how large the project gets, because they only touch the module that changed.\u003C/p>\n\u003Cimg src=\"/blog/vite-vs-webpack/dev-server-startup.webp\" alt=\"Two dev server timelines: webpack bundles every module before the first page loads, Vite serves only the modules that page imports\" width=\"1600\" height=\"820\" loading=\"lazy\">\u003Ch2>Where webpack still wins\u003C/h2>\n\u003Cp>I don&#39;t think webpack is bad. It&#39;s old in the way a tool gets when it has handled every edge case anyone ever hit.\u003C/p>\n\u003Cul>\n\u003Cli>\u003Cstrong>Module Federation.\u003C/strong> If you&#39;re running micro-frontends that load each other&#39;s code at runtime, webpack invented that and its version is the reference. There are Vite plugins for it, but I&#39;d want a very good reason to bet production on them.\u003C/li>\n\u003Cli>\u003Cstrong>Weird loaders.\u003C/strong> Years-old projects tend to have a custom loader for some file format nobody remembers adding. Porting that to a Vite or Rolldown plugin is real work, and nobody wants to own it.\u003C/li>\n\u003Cli>\u003Cstrong>Frameworks that chose it.\u003C/strong> Next.js moved its default to Turbopack, Angular moved to esbuild and Vite, but plenty of company React apps from 2019 to 2022 still sit on a hand-written webpack config, and that config works.\u003C/li>\n\u003C/ul>\n\u003Ch2>Should you migrate an existing webpack app?\u003C/h2>\n\u003Cp>Here&#39;s how I&#39;d decide.\u003C/p>\n\u003Cp>If the build takes under a minute, the dev server feels OK, and nobody&#39;s fighting the config, leave it. Moving bundlers is a week of chasing environment variables (\u003Ccode>process.env.X\u003C/code> becomes \u003Ccode>import.meta.env.VITE_X\u003C/code>), \u003Ccode>require\u003C/code> calls inside ES modules, and CSS imports that worked by accident. That week has to buy you something.\u003C/p>\n\u003Cp>If the dev server takes over 30 seconds to start, or people avoid touching the webpack config because it&#39;s 400 lines with no comments, migrate. Plain React or Vue SPAs usually move to Vite cleanly.\u003C/p>\n\u003Cp>If the config is load-bearing (Module Federation, custom loaders, plugins you can&#39;t drop), look at \u003Ca href=\"https://rspack.rs/\">Rspack\u003C/a> first. It&#39;s a Rust rewrite that keeps webpack&#39;s config format and most of its loaders and plugins, at 2.3.4 right now. You get most of the speed without the rewrite. It&#39;s the move that has the best chance of being finished on a Friday.\u003C/p>\n\u003Ch2>The one I&#39;d pick\u003C/h2>\n\u003Cp>New project: Vite, through \u003Ccode>npm create vite@latest\u003C/code> or whatever your framework&#39;s starter uses (Nuxt, SvelteKit, Astro, React Router and Vue all build on it). Existing webpack project: measure first, and if it hurts, Rspack before Vite when the config is complicated.\u003C/p>\n\u003Cp>If you&#39;ve got an older frontend that&#39;s slow to build and you&#39;d rather someone else did the move, that&#39;s the kind of work I take on. \u003Ca href=\"https://calendly.com/director-norsky/meeting\">Book a call\u003C/a> and tell me what&#39;s in the webpack config.\u003C/p>\n",[17,21,25],{"slug":18,"title":19,"description":20},"nextjs-vs-react","Next.js vs React: You're Choosing a Server, Not a Library","Next.js vs React in November 2026: what Next adds on top of React 19, when plain React with Vite is the better start, and the cost nobody mentions.",{"slug":22,"title":23,"description":24},"typescript-vs-javascript","TypeScript vs JavaScript in 2026: When I'd Still Skip the Types","TypeScript vs JavaScript from a developer who writes both: what types catch, what they cost, Node running .ts files directly, and when plain JS is the right call.",{"slug":26,"title":27,"description":28},"vue-vs-react","Vue vs React in 2026: Which One I'd Pick for Your App","Vue vs React from a developer who ships both: reactivity, hiring, AI tools, Nuxt vs Next, and when each one is the wrong choice. Versions checked November 2026.",1795910046712]