Skip to content

Commit 01f0891

Browse files
hydratisxzz
authored andcommitted
fix: cache key may conflict
1 parent 877ccf9 commit 01f0891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function parse(
107107
sourceRoot +
108108
pad +
109109
compiler.parse +
110-
(defaultScriptLang || '')
110+
(defaultScriptLang ? '@' + defaultScriptLang : '')
111111
const cache = sourceToSFC.get(sourceKey)
112112
if (cache) {
113113
return cache

0 commit comments

Comments
 (0)