TNS
VOXPOP
What news from AWS re:Invent last week will have the most impact on you?
✓
Amazon Q, an AI chatbot for explaining how AWS works.
0%
✓
Super-fast S3 Express storage.
0%
✓
New Graviton 4 processor instances.
0%
✓
Emily Freeman leaving AWS.
0%
✓
I don't use AWS, so none of this will affect me.
0%
Frontend Development / Rust / WebAssembly

Dev News: Vite Rust-ifies, Roc Language, JS Framework SDKs

Vite embraces Rust for its roadmap; the Roc language compiles to WebAssembly, and JS framework SDKs for authentication.
Nov 24th, 2023 7:30am by
Featued image for: Dev News: Vite Rust-ifies, Roc Language, JS Framework SDKs
Photo via Pexels

Vite 5 was released on Nov. 16 and is now powered by Rollup 4 — for now. Soon, the JavaScript module bundler will be replaced by Rolldown, a Rust port of Rollup with compatible APIs.

The frontend build tool Vite is embracing Rust, from moving to Rolldown in the near future to moving to a Rust core long-term. Evan You, creator of the frontend build tool, outlined the roadmap for Vite to “Rust-ify” at last month’s ViteConf 2023.

Moving to Rolldown will mean a boost in build performance, and later on in dev performance as the team moves performance sensitive parts of Vite to Rust. It will also reduce inconsistencies between dev and build, the team noted. While Rolldown is currently in early stages, the team hopes to open source the codebase before the end of the year.

Vite 5 focused on cleaning up the API by removing deprecated features, streamlining features and closing some long-standing issues, according to the release notes. Rollup 4 also provides a “big boost in build performance,” said the team.

Other changes in this release of Vite:

  • CJS Node API has been depreciated;
  • Vite 5 requires Node.js 18/20+. Node.js 14/16/17/19 will no longer be supported;
  • server.warmup, new feature that improves startup time. “It lets you define a list of modules that should be pre-transformed as soon as the server starts,” the team added. “When using –open or server.open, Vite will also automatically warm up the entry point of your app or the provided URL to open.”

Improvements in Vite 4.3 already increased the speed to up to four times faster for a cold startup and up to two-times faster for hot model replacement (HMR).

You pointed out that Vite’s ecosystem has already expanded to include:

  • Angular, which uses Vite as a deg server;
  • Preact, which switched the default tooling to Vite in June;