Skip to content

Commit f7b1f87

Browse files
meteorlxyyyx990803
authored andcommitted
fix: add parse options to cache key (vuejs#78)
1 parent 749c7d4 commit f7b1f87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/parse.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export function parse(options: ParseOptions): SFCDescriptor {
5252
sourceRoot = '',
5353
needMap = true
5454
} = options
55-
const cacheKey = hash(filename + source)
55+
const cacheKey = hash(
56+
filename + source + JSON.stringify(compilerParseOptions)
57+
)
5658
let output: SFCDescriptor = cache.get(cacheKey)
5759
if (output) return output
5860
output = compiler.parseComponent(source, compilerParseOptions)

0 commit comments

Comments
 (0)