Skip to content

Commit 67532b1

Browse files
authored
fix(language-core): flatten plugins (#5392)
1 parent 756043e commit 67532b1

File tree

1 file changed

+1
-1
lines changed
  • packages/language-core/lib/utils

1 file changed

+1
-1
lines changed

packages/language-core/lib/utils/ts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class CompilerOptionsResolver {
176176
break;
177177
case 'plugins':
178178
this.plugins = (options.plugins ?? [])
179-
.map<VueLanguagePlugin>((pluginPath: string) => {
179+
.flatMap<VueLanguagePlugin>((pluginPath: string) => {
180180
try {
181181
const resolvedPath = resolvePath(pluginPath, rootDir);
182182
if (resolvedPath) {

0 commit comments

Comments
 (0)