|
|
5 anni fa | |
|---|---|---|
| .. | ||
| __tests__ | 58e2376c4d refactor(ssr): adjust ssr scope id logic for client-compiled render functions | 5 anni fa |
| src | 7db8c9c19a chore: use isArray to keep the code consistency | 5 anni fa |
| LICENSE | 34989ef7fe chore: license | 6 anni fa |
| README.md | 8f463b3859 chore: readme | 6 anni fa |
| api-extractor.json | c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts | 6 anni fa |
| index.js | e05673f4d3 refactor: rename packages | 7 anni fa |
| package.json | f0cf14bcc5 release: v3.0.11 | 5 anni fa |
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)
})()