|
|
4 лет назад | |
|---|---|---|
| .. | ||
| __tests__ | 349eb0f0ad feat: onServerPrefetch (#3070) | 5 лет назад |
| src | d6607c9864 fix(runtime-core): fix resolving inheritAttrs from mixins (#3742) | 4 лет назад |
| 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 | aa96a0e88a release: v3.1.0-beta.6 | 4 лет назад |
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)
})()