We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c261946 commit fe26d4dCopy full SHA for fe26d4d
src/utils/import-path-resolver.ts
@@ -37,7 +37,7 @@ const importString = `(?:${anyQuote}${pathStringContent}${anyQuote})`;
37
// Separate patterns for each style of import statement,
38
// wrapped in non-capturing groups,
39
// so that they can be strung together in one big pattern.
40
-const funcStyle = `(?:\\b(?:import|require)\\s*\\(\\s*${importString}\\s*\\))`;
+const funcStyle = `(?:\\b(?:import|require)\\s*\\(\\s*(\\/\\*.*\\*\\/\\s*)?${importString}\\s*\\))`;
41
const globalStyle = `(?:\\bimport\\s+${importString})`;
42
const fromStyle = `(?:\\bfrom\\s+${importString})`;
43
const moduleStyle = `(?:\\bmodule\\s+${importString})`;
0 commit comments