Skip to content

Commit

Permalink
fix(ts-helpers): strict relative import detection #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty Mcfly committed Jan 12, 2020
1 parent e475cd0 commit 042be81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ts-helpers/src/ImportPathsResolver.ts
Expand Up @@ -35,7 +35,7 @@ export class ImportPathsResolver {
}

getImportSuggestions(oldImport: string, fileName: string): string[] | undefined {
if (oldImport.substr(0, 1) === '.') return
if (oldImport.startsWith('./') || oldImport.startsWith('../')) return
for (let tokenizer of this.tokenizers) {
const match = tokenizer.parse(oldImport)
if (match) {
Expand Down

0 comments on commit 042be81

Please sign in to comment.