A Vite plugin for Zalo Mini App development that integrates with the standard Vite build pipeline. Current stable version is 1.1.6, released under an active maintenance cadence. The plugin automatically reads app-config.json, supports React and vendor chunk splitting, and works with Vite 4 or 5. It simplifies deployment via zmp-cli and is the official Vite integration for Zalo Mini Apps, distinct from other mini-app frameworks.
npm install zmp-vite-pluginVerified import paths — ran on the pinned version, not inferred.
Shows how to set up the plugin in a Vite config with React and vendor chunk splitting.
Either rely on app-config.json or pass explicit options to the plugin.
Ensure Vite version matches peer dependency.
Use ESM syntax (import/export) in vite.config.ts or use dynamic require with .default.
Run: npm i -D zmp-vite-plugin
Change to: import zaloMiniApp from 'zmp-vite-plugin'
Create a valid app-config.json in project root.