Docs for universal renderer

I can't seem to find the docs for the universal renderer...are there actually somewhere?
5 Replies
{🧪} pablopang
{🧪} pablopangOP•4w ago
I'm specifically looking for info about the elements option in the configuration
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';

export default defineConfig({
plugins: [
solidPlugin({
solid: {
generate: 'universal',
renderers: [
{
name: "dom",
moduleName: "solid-js/web",
elements: ["div", "header", "img", "p", "code", "a"],
},
{
name: "universal",
moduleName: "./renderer.js",
elements: ["cool"]
},
{
name: "universal",
moduleName: "./renderer2.js",
elements: ["stuff"]
}
]
},
}),
],
server: {
port: 3000,
},
build: {
target: 'esnext',
},
});
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';

export default defineConfig({
plugins: [
solidPlugin({
solid: {
generate: 'universal',
renderers: [
{
name: "dom",
moduleName: "solid-js/web",
elements: ["div", "header", "img", "p", "code", "a"],
},
{
name: "universal",
moduleName: "./renderer.js",
elements: ["cool"]
},
{
name: "universal",
moduleName: "./renderer2.js",
elements: ["stuff"]
}
]
},
}),
],
server: {
port: 3000,
},
build: {
target: 'esnext',
},
});
zulu
zulu•4w ago
This is all the docs I found, and it is not merged yet. maybe if you ask the question, someone might be able to help
{🧪} pablopang
{🧪} pablopangOP•4w ago
Ok I'm exploring the code a bit and should be able to figure out

Did you find this page helpful?