feat(bundler): vite build/prepare + dx improvements by NathanWalker · Pull Request #6010 · NativeScript/nativescript-cli · GitHub
Skip to content

feat(bundler): vite build/prepare + dx improvements#6010

Open
NathanWalker wants to merge 12 commits into
mainfrom
feat/vite-bundler-improvements
Open

feat(bundler): vite build/prepare + dx improvements#6010
NathanWalker wants to merge 12 commits into
mainfrom
feat/vite-bundler-improvements

Conversation

@NathanWalker

@NathanWalker NathanWalker commented Apr 14, 2026

Copy link
Copy Markdown
Contributor
  • improvements to the NativeScript CLI's Vite HMR workflow, focusing on reliability, developer experience, and automation. The CLI now fully manages the Vite dev server lifecycle and the Android adb reverse port forwarding needed for HMR, eliminating the need for developers to manually coordinate these steps or use external tooling. It also ensures that Vite build outputs are always correctly copied to the platform destination, fixing prior issues with missing or stale bundles.

Summary by CodeRabbit

  • New Features
    • Enabled Android Vite HMR using automatic device-to-host tunneling during initial sync, with the mapping re-established before app launch.
    • Added long-lived Vite dev-server support in watch mode, including readiness checks and initial artifact copying.
  • Bug Fixes
    • Improved the reliability of Vite dist/output handling and made adb reverse setup best-effort with safe fallbacks.
  • Documentation
    • Documented the Vite dist folder naming/override behavior used for platform app output copying.
  • Chores
    • Bumped version to 9.1.0-alpha.11.

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown

@NathanWalker NathanWalker changed the title fix(bundler): vite double restart fix(bundler): vite build/prepare improvements May 22, 2026
@NathanWalker NathanWalker added this to the 9.1 milestone Jun 9, 2026
@NathanWalker NathanWalker force-pushed the feat/vite-bundler-improvements branch 4 times, most recently from 346cae6 to fd5d69e Compare June 15, 2026 17:08
@NathanWalker NathanWalker changed the title fix(bundler): vite build/prepare improvements feat(bundler): vite build/prepare + dx improvements Jun 15, 2026
@NathanWalker NathanWalker marked this pull request as ready for review June 15, 2026 17:10
@NathanWalker NathanWalker force-pushed the feat/vite-bundler-improvements branch from fd5d69e to 45314a2 Compare June 26, 2026 00:49
@NathanWalker NathanWalker force-pushed the feat/vite-bundler-improvements branch from 45314a2 to 6442af7 Compare June 26, 2026 01:46
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