|
|
пре 5 година | |
|---|---|---|
| .. | ||
| __tests__ | cdc9f336fd wip: new cssVars SSR integration + fix cssVars SSR injection for suspense | пре 5 година |
| src | cdc9f336fd wip: new cssVars SSR integration + fix cssVars SSR injection for suspense | пре 5 година |
| LICENSE | 34989ef7fe chore: license | пре 6 година |
| README.md | 8f463b3859 chore: readme | пре 6 година |
| api-extractor.json | c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts | пре 6 година |
| index.js | e05673f4d3 refactor: rename packages | пре 7 година |
| package.json | f2d03a59c6 release: v3.0.2 | пре 5 година |
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)
})()