Too Long; Didn't Read
For the development server, it uses esbuild with native ES modules, which are supported by modern browsers, and we don’t need to bundle code into a single file, and it gives us fast HRM (Hot Module Replacement). For the bundle, it uses a rollup.js because it’s flexible and has a large ecosystem; it allows the creation of highly optimized production bundles with different output formats. Vite’s plugin interface is based on Rollup’s but with additional options and hooks for working with the dev server.
@gmakarov
German Makarov
Senior Software Engineer | Frontend | React | TypeScript
Receive Stories from @gmakarov
Credibility
RELATED STORIES
L O A D I N G
. . . comments & more!