renderToString.js — vue Source File
Architecture documentation for renderToString.js, a javascript file in the vue codebase.
Entity Profile
Source Code
'use strict'
process.env.NODE_ENV = 'production'
const Vue = require('../../dist/vue.runtime.common.js')
const createRenderer = require('../../packages/server-renderer').createRenderer
const renderToString = createRenderer().renderToString
const gridComponent = require('./common.js')
console.log('--- renderToString --- ')
const self = (global || root)
self.s = self.performance.now()
renderToString(new Vue(gridComponent), (err, res) => {
if (err) throw err
// console.log(res)
console.log('Complete time: ' + (self.performance.now() - self.s).toFixed(2) + 'ms')
console.log()
})
Source
Frequently Asked Questions
What does renderToString.js do?
renderToString.js is a source file in the vue codebase, written in javascript.
Where is renderToString.js in the architecture?
renderToString.js is located at benchmarks/ssr/renderToString.js (directory: benchmarks/ssr).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free