Evan You bd6e211287 release: v3.0.3 преди 5 години
..
__tests__ cdc9f336fd wip: new cssVars SSR integration + fix cssVars SSR injection for suspense преди 5 години
src 8ac2241b22 wip: more consistent compiler-sfc usage + inline mode for ssr преди 5 години
LICENSE 34989ef7fe chore: license преди 6 години
README.md 8f463b3859 chore: readme преди 6 години
api-extractor.json c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts преди 6 години
index.js e05673f4d3 refactor: rename packages преди 7 години
package.json bd6e211287 release: v3.0.3 преди 5 години

README.md

@vue/server-renderer

const { createSSRApp } = require('vue')
const { renderToString } = require('@vue/server-renderer')

const app = createSSRApp({
  data: () => ({ msg: 'hello' }),
  template: `<div>{{ msg }}</div>`
})

;(async () => {
  const html = await renderToString(app)
  console.log(html)
})()