MCPcopy
hub / github.com/vuejs/core / compile

Function compile

packages/compiler-sfc/__tests__/compileTemplate.spec.ts:11–16  ·  view source on GitHub ↗
(opts: Omit<SFCTemplateCompileOptions, 'id'>)

Source from the content-addressed store, hash-verified

9import { getPositionInCode } from './utils'
10
11function compile(opts: Omit<SFCTemplateCompileOptions, 'id'>) {
12 return compileTemplate({
13 ...opts,
14 id: '',
15 })
16}
17
18test('should work', () => {
19 const source = `<div><p>{{ render }}</p></div>`

Callers 3

assertAwaitDetectionFunction · 0.70

Calls 1

compileTemplateFunction · 0.90

Tested by

no test coverage detected