Skip to content

Commit 7dcdb89

Browse files
hydratisxzz
authored andcommitted
fix: source cache key
1 parent 5b3a031 commit 7dcdb89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/compiler-sfc/src/parse.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,13 @@ export function parse(
101101
}: SFCParseOptions = {}
102102
): SFCParseResult {
103103
const sourceKey =
104-
source + sourceMap + filename + sourceRoot + pad + compiler.parse
104+
source +
105+
sourceMap +
106+
filename +
107+
sourceRoot +
108+
pad +
109+
compiler.parse +
110+
(defaultScriptLang ?? '')
105111
const cache = sourceToSFC.get(sourceKey)
106112
if (cache) {
107113
return cache

0 commit comments

Comments
 (0)