|
|
6 anos atrás | |
|---|---|---|
| .. | ||
| __tests__ | 11d2fb2594 refactor(fragments): remove visible anchors for fragments | 6 anos atrás |
| src | 3be3785f94 fix(ssr): fix ssr on-the-fly compilation + slot fallback branch helper injection | 6 anos atrás |
| LICENSE | 34989ef7fe chore: license | 6 anos atrás |
| README.md | 8f463b3859 chore: readme | 6 anos atrás |
| api-extractor.json | b2d269a651 build: use api-extractor for type rollup | 6 anos atrás |
| index.js | e05673f4d3 refactor: rename packages | 7 anos atrás |
| package.json | c75388d538 release: v3.0.0-alpha.8 | 6 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)
})()