@jorvel/adapter-vue
v0.3.0
Published
Vue 3 adapter for the JORVEL mount contract — expose a Vue remote as a framework-neutral mount module.
Maintainers
Readme
@jorvel/adapter-vue
Expose a Vue 3 remote through the framework-neutral
@jorvel/mount contract, so any JORVEL host can embed it.
import { defineVueRemote } from '@jorvel/adapter-vue';
import Root from './Root.vue';
export default defineVueRemote(Root);The root component receives subpath, basePath, params (and any host
props) as Vue props. Each mount gets its own Vue app instance, isolated from
the host.
Options
defineVueRemote(Root, {
setup: (app, ctx) => {
app.use(createRouter(/* … */)); // plugins, i18n, pinia, a router…
},
});vue is a peer dependency — the remote app provides it.
