@switchx/miniapp-vite
v0.1.1
Published
Vite helper for building SwitchX miniapps as runtime artifacts.
Downloads
256
Readme
@switchx/miniapp-vite
Vite helper for building SwitchX miniapps as runtime artifacts.
It generates a SwitchX manifest.json with:
entry.moduleentry.css- optional
multiplayer.module
Install
pnpm add -D @switchx/miniapp-viteUsage
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { defineSwitchXMiniappConfig } from '@switchx/miniapp-vite/runtime-artifact'
import manifest from './manifest'
export default defineConfig(
defineSwitchXMiniappConfig({
manifest,
port: 5176,
plugins: [react()],
multiplayer: {
entry: './src/multiplayer.ts',
},
}),
)The published package is the build helper only. It does not include runtime capabilities or the runtime host itself.
