Allow `parser` function (@vue/compiler-sfc) passing parserOptions to the parser
What problem does this feature solve?
Currently the parse
function of @vue/compiler-sfc
doesn't have the ability to passing parse options to the parser.
What does the proposed API look like?
function parse(
source: string,
{
sourceMap = true,
filename = 'anonymous.vue',
sourceRoot = '',
pad = false,
compiler = CompilerDOM
compilerOptions = {}
}: SFCParseOptions = {}
): SFCParseResult