Skip to content

Add Taro with vite-plugin-taro#1125

Open
sep2 wants to merge 2 commits into
vitejs:masterfrom
sep2:patch-1
Open

Add Taro with vite-plugin-taro#1125
sep2 wants to merge 2 commits into
vitejs:masterfrom
sep2:patch-1

Conversation

@sep2

@sep2 sep2 commented Jun 22, 2026

Copy link
Copy Markdown

Build WeChat Mini Apps with the latest standards-based frontend stack: Vite, React, and Tailwind CSS.

vite-plugin-taro is for applications that want Taro's cross-platform React components and APIs, but prefer Vite instead of Taro webpack. You only need this plugin to build a complete WeChat Mini Program.

Live demo: https://sep2.github.io/vite-plugin-taro. See Sample app how to run it locally.

  • Native Vite builds Use standard Vite 8 config instead of legacy webpack configuration, with support for all Vite plugins.
  • Hot reload Both WeChat Mini Program and H5 support dev-mode watch, with Vite 8 HMR/rebuilds for fast feedback.
  • Battle-tested Taro foundation Use the full set of Taro APIs and components instead of reinventing cross-platform primitives.
  • Tailwind ready Built-in Tailwind CSS v4 support for both WeChat Mini Program and H5 styles.
  • Conditional compilation Use Taro-style #ifdef / #ifndef / #if blocks to split code and styles by WeChat / web target.
  • Workspace friendly Supports standalone apps and monorepos, with npm, pnpm, Yarn, Bun, and other package managers.
  • Type-friendly The project supports TypeScript all the way.
  • WeChat Skyline Support WeChat Mini Program output with Skyline rendering mode.

@sep2 sep2 changed the title Add Taro v4 with Vite 8 + React 19 + Tailwind 4 Add Taro with vite-plugin-taro Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant