MCPcopy
hub / github.com/sveltejs/svelte / render

Function render

packages/svelte/src/internal/server/index.js:71–76  ·  view source on GitHub ↗
(component, options = {})

Source from the content-addressed store, hash-verified

69 * @returns {RenderOutput}
70 */
71export function render(component, options = {}) {
72 if (options.csp?.hash && options.csp.nonce) {
73 e.invalid_csp();
74 }
75 return Renderer.render(/** @type {Component<Props>} */ (component), options);
76}
77
78/**
79 * @param {string} hash

Callers 11

_renderFunction · 0.90
run_test_variantFunction · 0.90
component.tsFile · 0.90
driver-ssr.jsFile · 0.90
run_ssr_testFunction · 0.90
test.tsFile · 0.90
test.tsFile · 0.90
ssr-prod.jsFile · 0.90
wrapper_bench.jsFile · 0.90
renderer.test.tsFile · 0.85
ssr-dev.jsFile · 0.85

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected