Vite 7 and later use Baseline Widely Available as the default production build target.

Now put this in a Vite application:



Promise.withResolvers<number>();

document.startViewTransition(() => {
// Update the DOM.
});






Then run:



npx vite build






The build succeeds.

Regular TypeScript accepts the same code when the...