|
|
5 ani în urmă | |
|---|---|---|
| .. | ||
| __tests__ | 2e71f07bc1 fix(ssr): ensure async setup error handling work with suspense during ssr | 5 ani în urmă |
| src | 2e71f07bc1 fix(ssr): ensure async setup error handling work with suspense during ssr | 5 ani în urmă |
| LICENSE | 34989ef7fe chore: license | 6 ani în urmă |
| README.md | 8f463b3859 chore: readme | 6 ani în urmă |
| api-extractor.json | c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts | 6 ani în urmă |
| index.js | e05673f4d3 refactor: rename packages | 7 ani în urmă |
| package.json | 1a955e2278 release: v3.0.7 | 5 ani în urmă |
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)
})()