1.0.4 • Published 1 year ago

@meteor-vite/zodern-relay v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

License

MIT

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago