Skip to content

npm packages

Rough order of adoption:

PackageRole
@viewfly/coreCore: components, reactivity, signal, JSX runtime, lifecycle, inject, etc.
@viewfly/platform-browserBrowser: createApp, mount, destroy.
@viewfly/routerRouting: RouterModule, Link, RouterOutlet, etc.
@viewfly/devtoolsBuild: *.scoped.* styles with Vite / Rollup / Webpack; includes component HMR for the Vite dev server (not loaded in production builds).
@viewfly/cliCLI: Vite + TypeScript project templates.

Router and scoped CSS are optional. Scoped CSS needs @viewfly/core (e.g. withMark) and @viewfly/devtools. The official Vite template from the CLI installs @viewfly/devtools and enables HMR by default; in your own setup, follow the @viewfly/devtools readme on npm to wire vite-viewfly-hmr-plugin.

Next steps

MIT License