Xin Du (Clark) 047844cfb8 refactor(ssr): extract buffer resolving and resolvePortals (#771) 6 anni fa
..
__tests__ 9547c2b93d fix(sfc): inherit parent scopeId on child rooot (#756) 6 anni fa
src 047844cfb8 refactor(ssr): extract buffer resolving and resolvePortals (#771) 6 anni fa
LICENSE 34989ef7fe chore: license 6 anni fa
README.md 8f463b3859 chore: readme 6 anni fa
api-extractor.json b2d269a651 build: use api-extractor for type rollup 6 anni fa
index.js e05673f4d3 refactor: rename packages 7 anni fa
package.json 9ab22c7ae6 release: v3.0.0-alpha.6 6 anni fa

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)
})()