Virtual Modules for Fun and Profit
https://hire.jonasgalvez.com.br/2022/jun/10/virtual-modules-for-fun-and-profit/?hmsr=joyk.com&utm_source=joyk.com&utm_medium=referral?utm_source=tldrnewsletter

플러그인 API | Vite
Vite의 플러그인은 Rollup의 멋진 플러그인 인터페이스에 몇 가지 Vite 특정 옵션을 추가한 형태로 구성하였습니다. 그리고 결과적으로, Vite의 플러그인은 한 번 작성되면 개발 및 빌드 시 모두 사용이 가능하다는 장점이 있죠. 아래 내용은 Rollup의 플러그인 문서를 읽었다는 전제 하에 진행합니다. Vite는 확립된 패턴을 제공하기 위해 노력하고 있습니다.
https://vitejs-kr.github.io/guide/api-plugin.html#virtual-modules-convention

Virtual Modules for Fun and Profit
https://hire.jonasgalvez.com.br/2022/jun/10/virtual-modules-for-fun-and-profit/?hmsr=joyk.com&utm_source=joyk.com

Plugin API | Vite
Vite plugins extends Rollup's well-designed plugin interface with a few extra Vite-specific options. As a result, you can write a Vite plugin once and have it work for both dev and build. It is recommended to go through Rollup's plugin documentation first before reading the sections below.
https://vitejs.dev/guide/api-plugin.html#virtual-modules-convention


Seonglae Cho