Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renderer Plugins #242

Closed
brillout opened this issue Jan 1, 2022 · 1 comment
Closed

Renderer Plugins #242

brillout opened this issue Jan 1, 2022 · 1 comment
Labels
enhancement ✨ New feature or request

Comments

@brillout
Copy link
Member

brillout commented Jan 1, 2022

The idea is that the user can use a renderer plugin instead of writing renderer/_default.* files.

// renderer/index.js
// React + GraphQL
export { renderer } from '@vite-plugin-ssr/react-apollo-graphql`
// /renderer/index.js
// Vue + RPC 
export { renderer } from '@vite-plugin-ssr/vue-telefunc`
// /renderer/index.js
// A company internal custom renderer 
export { renderer } from '@some-org/some-renderer`

Users can (completely) overwrite aspects of the renderer plugin by defining renderer/_default.* files as they do today.

Renderer plugins enable a zero-config DX. In other words, all that's left for the user to do is to write a /renderer/PageShell.js and the /pages/*.page.js files.

Contribution welcome to implement such renderers.

Write a comment here or hit me up on Discord if you are interested in this, I'll then quickly implement the plugin architecture.

@naveennamani
Copy link

#275 this may also provide more meaning to this renderer plugins concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants