diff --git a/lib/parse.ts b/lib/parse.ts index f0c4543..5c6c6ac 100644 --- a/lib/parse.ts +++ b/lib/parse.ts @@ -52,7 +52,9 @@ export function parse(options: ParseOptions): SFCDescriptor { sourceRoot = '', needMap = true } = options - const cacheKey = hash(filename + source) + const cacheKey = hash( + filename + source + JSON.stringify(compilerParseOptions) + ) let output: SFCDescriptor = cache.get(cacheKey) if (output) return output output = compiler.parseComponent(source, compilerParseOptions)