paint-brush
Creating A Custom Plugin for Vite: The Easiest Guideby@gmakarov
835 reads
835 reads

Creating A Custom Plugin for Vite: The Easiest Guide

by German Makarov9mJanuary 21st, 2024
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
German Makarov

German Makarov

@gmakarov

Senior Software Engineer | Frontend | React | TypeScript

About @gmakarov
LEARN MORE ABOUT @GMAKAROV'S
EXPERTISE AND PLACE ON THE INTERNET.
0-item

STORY’S CREDIBILITY

Guide

Guide

Walkthroughs, tutorials, guides, and tips. This story will teach you how to do something new or how to do something better.

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

About Author

German Makarov HackerNoon profile picture
German Makarov@gmakarov
Senior Software Engineer | Frontend | React | TypeScript

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite