MCPcopy
hub / github.com/vitejs/vite / ssrTransformSimple

Function ssrTransformSimple

packages/vite/src/node/ssr/__tests__/ssrTransform.spec.ts:10–11  ·  view source on GitHub ↗
(code: string, url = '')

Source from the content-addressed store, hash-verified

8import { createServer } from '../..'
9
10const ssrTransformSimple = async (code: string, url = '') =>
11 ssrTransform(code, null, url, code)
12const ssrTransformSimpleCode = async (code: string, url?: string) =>
13 (await ssrTransformSimple(code, url))?.code
14

Callers 2

ssrTransformSimpleCodeFunction · 0.85

Calls 1

ssrTransformFunction · 0.90

Tested by

no test coverage detected