Skip to content

Commit 5ee3ef6

Browse files
committed
fix(language-server): add allowJs to reactivity analyze host
fix #5486
1 parent 19b7aed commit 5ee3ef6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/language-server/lib/reactivityAnalyzeLS.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const host: ts.LanguageServiceHost = {
1010
getScriptFileNames: () => [currentFileName],
1111
getScriptVersion: () => currentProjectVersion.toString(),
1212
getScriptSnapshot: fileName => fileName === currentFileName ? currentSnapshot : undefined,
13-
getCompilationSettings: () => ({}),
13+
getCompilationSettings: () => ({
14+
allowJs: true,
15+
}),
1416
getCurrentDirectory: () => '',
1517
getDefaultLibFileName: () => '',
1618
readFile: () => undefined,

0 commit comments

Comments
 (0)