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