fix: copy Vite output for production builds#6083
Conversation
📝 WalkthroughWalkthroughVite build paths are centralized, native output copying now supports fail-fast behavior, and non-watch compilation copies successful Vite builds before resolving. Tests cover successful copying and propagation of copy failures. ChangesVite bundle copy reliability
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks @tannerlinsley we have a lot of Vite improvements targeting 9.1 - this case is handled here: You can use this (which includes 6010) now, with |
|
Ignore the merge conflicts, I'll handle those later today or tomorrow 👍 |
Problem
Vite writes non-watch builds to
.ns-vite-build, but the CLI only copied that output into the native app directory from the watch-mode IPC handler.ns build iosandns build androidcould therefore package stale or missing JavaScript.Fix
Validation
npm test(1509 passing, 9 pending).appbundle.apkbundleSummary by CodeRabbit
Bug Fixes
Tests