Skip to main content
weapp.js.org
Back to the stack
Stable
Engineering
WeChatAlipayDouyinBaiduKuaishouWebViteVue SFCWevu

weapp-vite

Vite builds for mini-app projects

Owns dependencies, routes, subpackages, and single-target multi-platform builds. Keep your page structure; hand the build pipeline to Vite.

Maintained by: sonofmagic and contributors

weapp-vite Web runtime component matrix
The same WXML, WXSS, and page state running in the Web runtime.

Install

ForMini-app teams that need a modern Vite workflow, Vue SFC, and multi-platform builds.

pnpm add -D weapp-vite

Real runtime output

These images come from official project demos or regression baselines and are stored locally on this site.

weapp-vite Web runtime component matrix
The same WXML, WXSS, and page state running in the Web runtime.
weapp-vite Web runtime page stack and tab bar workbench
Page stack, device viewport, and bottom safe area share one runtime boundary.

ENGINEERING PROOF

Single-target build boundary

Start with a real config, command, or boundary note when deciding if this project fits your codebase.

vite.config.tsStable
weapp({
  buildScope: 'wechat',
  platforms: ['wechat'],
})

Core capabilities

  • Vite-powered builds
  • Vue SFC
  • Six platform targets
  • Wevu runtime

Common use cases

  1. 01Start and build mini-app projects with Vite
  2. 02Organize pages with Vue SFC and automatic routing
  3. 03Ship one project to WeChat, Alipay, Douyin, and other targets

Platforms

WeChatAlipayDouyinBaiduKuaishouWeb
Current version
v6.22.0
Aug 24, 2026
Weekly downloads
3.2K
GitHub Stars
465

Frequently asked questions

What problem does weapp-vite solve?

It provides a Vite-powered development and build workflow for mini-apps, combining Vue SFC, automatic routing, and multi-platform output.

Which platforms does weapp-vite target?

The project targets WeChat, Alipay, Douyin, Baidu, Kuaishou mini-apps, and the Web according to its project metadata.

Future documentation path

/docs/weapp-vite/

This path will become canonical when aggregated documentation launches.

Analytics preferences

Baidu Analytics and Google Analytics are enabled by default on the production site to measure visits and limited interactions. You can turn them off at any time.