@meteor-vite/zodern-relay
v1.0.4
Published
Vite compatability plugin for zodern:relay - typed Meteor methods and publications
Downloads
1
Maintainers
Readme
Vite plugin zodern:relay
This is a Vite compatability package for
zodern:relay
- type safe
Meteor methods and publications.
[!IMPORTANT] This plugin is not yet fully complete. Methods and publications imported by your client will not be omitted from your client bundle like it would when using the
@zodern/babel-plugin-meteor-relay
plugin.
This plugin acts as partial replacement for the Babel @zodern/babel-plugin-meteor-relay
plugin required by
zodern:relay
. You still need the Babel plugin as it might still be required on the server.
Installation
npm i -D @meteor-vite/plugin-zodern-relay
Configuration
Add the plugin to your Vite config and you're all set. There are no configuration options.
// vite.config.ts
import zodernRelay from '@meteor-vite/plugin-zodern-relay';
import { meteor } from 'meteor-vite/plugin';
export default defineConfig({
plugins: [
meteor({
clientEntry: '...',
}),
zodernRelay(),
]
})
Usage & Documentation
You can use zodern:relay
like you normally would. Consult their
readme for documentation.
zodern:relay
- https://github.com/zodern/meteor-relay#readmemeteor-vite
- https://github.com/JorgenVatle/meteor-vite#readme
License
MIT