|
|
há 5 anos atrás | |
|---|---|---|
| .. | ||
| __tests__ | 41db49dfb7 fix(ssr): support dynamic components that resolve to element or vnode | há 5 anos atrás |
| src | 41db49dfb7 fix(ssr): support dynamic components that resolve to element or vnode | há 5 anos atrás |
| LICENSE | 34989ef7fe chore: license | há 6 anos atrás |
| README.md | 8f463b3859 chore: readme | há 6 anos atrás |
| api-extractor.json | c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts | há 6 anos atrás |
| index.js | e05673f4d3 refactor: rename packages | há 7 anos atrás |
| package.json | 7f83856f34 release: v3.0.0-beta.18 | há 5 anos atrás |
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)
})()