Skip to content

@saflib/parser


Function: extractVueRootTag()

extractVueRootTag(source): null | string

First tag name in the SFC's root <template> block, skipping comments and whitespace. null when the template is empty or absent.

Parameters

ParameterType
sourcestring

Returns

null | string