Creating A Custom Plugin for Vite: The Easiest Guide
2024-1-22 00:0:1 Author: hackernoon.com(查看原文) 阅读量:13 收藏

Hackernoon logo

Creating A Custom Plugin for Vite: The Easiest Guide by@gmakarov

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

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

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


文章来源: https://hackernoon.com/creating-a-custom-plugin-for-vite-the-easiest-guide?source=rss
如有侵权请联系:admin#unsafe.sh