|
|
5 лет назад | |
|---|---|---|
| .. | ||
| __tests__ | 568b6db12b feat: Initial devtools support (#1125) | 5 лет назад |
| src | b9595e64cf feat: ssr support for `<style vars>` | 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 | d63daaf9b6 release: v3.0.0-rc.4 | 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)
})()