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

Function parse

packages/compiler-core/__tests__/parse.spec.ts:2302–2306  ·  view source on GitHub ↗
(content: string, options?: ParserOptions)

Source from the content-addressed store, hash-verified

2300
2301 describe('whitespace management when adopting strategy condense', () => {
2302 const parse = (content: string, options?: ParserOptions) =>
2303 baseParse(content, {
2304 whitespace: 'condense',
2305 ...options,
2306 })
2307
2308 test('should remove whitespaces at start/end inside an element', () => {
2309 const ast = parse(`<div> <span/> </div>`)

Callers 15

parse.spec.tsFile · 0.70
createExpFunction · 0.50
parseWithSlotsFunction · 0.50
transformWithTextOptFunction · 0.50
parseWithVBindFunction · 0.50
transformWithOnceFunction · 0.50
parseWithVOnFunction · 0.50
parseWithVModelFunction · 0.50
assertFunction · 0.50

Calls 1

baseParseFunction · 0.90

Tested by

no test coverage detected