Skip to content

Commit f0bf093

Browse files
authored
Fix CI
1 parent e705892 commit f0bf093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VueProgram.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class VueProgram {
3939
public static resolveNonTsModuleName(moduleName: string, containingFile: string, basedir: string, options: ts.CompilerOptions) {
4040
const baseUrl = options.baseUrl ? options.baseUrl : basedir;
4141
const discartedSymbols = ['.', '..', '/'];
42-
let wildcards = [];
42+
let wildcards: string[] = [];
4343
Object.keys(options.paths).forEach(path => {
4444
const pathSymbol = path[0];
45-
if (!discartedSymbols.includes(pathSymbol) && !wildcards.includes(pathSymbol)) {
45+
if (discartedSymbols.indexOf(pathSymbol) < 0 && wildcards.indexOf(pathSymbol) < 0) {
4646
wildcards.push(pathSymbol);
4747
}
4848
});

0 commit comments

Comments
 (0)