Vue.js server-side rendering compiler that transforms Vue templates into optimized render functions for server-side execution
—
Collection of symbolic identifiers and mappings for SSR runtime helper functions that handle specific rendering operations like interpolation, component rendering, and attribute handling.
Unique symbols that identify specific SSR runtime helper functions used during code generation.
/** Text interpolation helper for reactive data binding */
const SSR_INTERPOLATE: unique symbol;
/** VNode rendering helper for nested component structures */
const SSR_RENDER_VNODE: unique symbol;
/** Component rendering helper for Vue component instances */
const SSR_RENDER_COMPONENT: unique symbol;
/** Slot rendering helper for component slot content */
const SSR_RENDER_SLOT: unique symbol;
/** Inner slot rendering helper for nested slot structures */
const SSR_RENDER_SLOT_INNER: unique symbol;
/** Class attribute rendering helper for dynamic classes */
const SSR_RENDER_CLASS: unique symbol;
/** Style attribute rendering helper for dynamic styles */
const SSR_RENDER_STYLE: unique symbol;
/** Multiple attributes rendering helper for element attributes */
const SSR_RENDER_ATTRS: unique symbol;
/** Single attribute rendering helper for individual attributes */
const SSR_RENDER_ATTR: unique symbol;
/** Dynamic attribute rendering helper for computed attribute names */
const SSR_RENDER_DYNAMIC_ATTR: unique symbol;
/** List rendering helper for v-for directive processing */
const SSR_RENDER_LIST: unique symbol;
/** Boolean attribute inclusion helper for HTML boolean attributes */
const SSR_INCLUDE_BOOLEAN_ATTR: unique symbol;
/** Loose equality comparison helper for template comparisons */
const SSR_LOOSE_EQUAL: unique symbol;
/** Loose containment check helper for array/object containment */
const SSR_LOOSE_CONTAIN: unique symbol;
/** Dynamic model rendering helper for v-model with dynamic binding */
const SSR_RENDER_DYNAMIC_MODEL: unique symbol;
/** Dynamic model props extraction helper for form elements */
const SSR_GET_DYNAMIC_MODEL_PROPS: unique symbol;
/** Teleport rendering helper for Vue teleport component */
const SSR_RENDER_TELEPORT: unique symbol;
/** Suspense rendering helper for Vue suspense component */
const SSR_RENDER_SUSPENSE: unique symbol;
/** Directive props extraction helper for custom directives */
const SSR_GET_DIRECTIVE_PROPS: unique symbol;Record that maps helper symbols to their corresponding string names for runtime function lookup.
/**
* Mapping of helper symbols to their string names for runtime function lookup
* Used by the code generator to reference the correct server-side helper functions
*/
const ssrHelpers: Record<symbol, string>;The ssrHelpers object contains the following mappings:
SSR_INTERPOLATE → "ssrInterpolate"SSR_RENDER_VNODE → "ssrRenderVNode"SSR_RENDER_COMPONENT → "ssrRenderComponent"SSR_RENDER_SLOT → "ssrRenderSlot"SSR_RENDER_SLOT_INNER → "ssrRenderSlotInner"SSR_RENDER_CLASS → "ssrRenderClass"SSR_RENDER_STYLE → "ssrRenderStyle"SSR_RENDER_ATTRS → "ssrRenderAttrs"SSR_RENDER_ATTR → "ssrRenderAttr"SSR_RENDER_DYNAMIC_ATTR → "ssrRenderDynamicAttr"SSR_RENDER_LIST → "ssrRenderList"SSR_INCLUDE_BOOLEAN_ATTR → "ssrIncludeBooleanAttr"SSR_LOOSE_EQUAL → "ssrLooseEqual"SSR_LOOSE_CONTAIN → "ssrLooseContain"SSR_RENDER_DYNAMIC_MODEL → "ssrRenderDynamicModel"SSR_GET_DYNAMIC_MODEL_PROPS → "ssrGetDynamicModelProps"SSR_RENDER_TELEPORT → "ssrRenderTeleport"SSR_RENDER_SUSPENSE → "ssrRenderSuspense"SSR_GET_DIRECTIVE_PROPS → "ssrGetDirectiveProps"SSR_INTERPOLATE: Handles text interpolation for reactive data binding
{{ }} expressions in templatesSSR_LOOSE_EQUAL / SSR_LOOSE_CONTAIN: Comparison utilities
SSR_RENDER_VNODE: Renders virtual nodes in SSR context
SSR_RENDER_COMPONENT: Renders Vue component instances
SSR_RENDER_LIST: Handles v-for list rendering
SSR_RENDER_SLOT / SSR_RENDER_SLOT_INNER: Slot content rendering
SSR_RENDER_ATTRS: Renders multiple element attributes
SSR_RENDER_ATTR: Renders individual attributes
SSR_RENDER_DYNAMIC_ATTR: Renders computed attribute names
:[dynamicName]="value" syntaxSSR_RENDER_CLASS / SSR_RENDER_STYLE: Specialized attribute helpers
SSR_INCLUDE_BOOLEAN_ATTR: Boolean attribute handling
SSR_RENDER_DYNAMIC_MODEL: v-model with dynamic binding
v-model:[dynamicProperty] syntaxSSR_GET_DYNAMIC_MODEL_PROPS: Form element prop extraction
SSR_GET_DIRECTIVE_PROPS: Custom directive prop extraction
SSR_RENDER_TELEPORT: Teleport component rendering
SSR_RENDER_SUSPENSE: Suspense component rendering
These helpers are automatically imported and used in generated SSR code:
// Example generated code using runtime helpers
import { ssrRenderComponent, ssrInterpolate, ssrRenderAttrs } from 'vue/server-renderer';
function render(_ctx, _push, _parent, _attrs) {
_push(`<div${ssrRenderAttrs(_attrs)}>`);
_push(`<h1>${ssrInterpolate(_ctx.title)}</h1>`);
ssrRenderComponent(MyComponent, { prop: _ctx.data }, null, _parent);
_push(`</div>`);
}The actual helper function implementations are provided by @vue/server-renderer. The compiler-ssr package only defines the symbols and mappings - the runtime functions themselves are imported from the server renderer at runtime.
Install with Tessl CLI
npx tessl i tessl/npm-vue--compiler-ssr