Creating A Custom Plugin for Vite: The Easiest Guideby@gmakarov
484 reads

Creating A Custom Plugin for Vite: The Easiest Guide

tldt arrow
EN
Read on Terminal Reader
Read this story w/o Javascript

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.
featured image - Creating A Custom Plugin for Vite: The Easiest Guide
German Makarov HackerNoon profile picture

@gmakarov

German Makarov

Senior Software Engineer | Frontend | React | TypeScript


Receive Stories from @gmakarov


Credibility

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!