vite-plugin-taro-react
v0.1.8
Published
React 19 compatible fork of @tarojs/react for vite-plugin-taro.
Readme
vite-plugin-taro-react
React 19 compatibility build of
@tarojs/[email protected]forvite-plugin-taro.
Status
This is a generated support package. It is published so vite-plugin-taro can depend on a React 19-compatible Taro React runtime through the @tarojs/react package slot. Application code should not import this package directly.
Most apps should install vite-plugin-taro and import app-facing APIs through its virtual modules instead:
import { View } from 'virtual:taro/components'
import Taro from 'virtual:taro/api'Why this package exists
vite-plugin-taro targets React 19 while keeping the official Taro runtime behavior. This package is produced from the upstream Taro npm tarball plus a small local compatibility patch, then published under the vite-plugin-taro-react name for reproducible installs.
Generated source
- Generator:
scripts/build-patched-taro-packages.ts - Patch:
patches/@[email protected] - Output package directory:
packages/taro-react
Regenerate from the repository root:
pnpm prepare:taroMaintenance checklist
When updating the upstream Taro version:
- Update
upstreamVersioninscripts/build-patched-taro-packages.ts. - Refresh the matching patch file in
patches/. - Update this package version in
package.json. - Update this package README.
- Run
pnpm prepare:taro. - Run
pnpm build:plugin,pnpm typecheck,pnpm build:sample:wx, andpnpm build:sample:h5.
License
MIT. Upstream Taro is MIT licensed by O2Team. See LICENSE.
