We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ebe61 commit 4373746Copy full SHA for 4373746
src/index.ts
@@ -23,9 +23,9 @@ const COMMENTED_PATTERN =
23
/(\/\*(?:(?!\*\/).|[\n\r])*\*\/)|(\/\/[^\n\r]*(?:[\n\r]+|$))/
24
const IMPORT_PATTERNS = [
25
/from (["'])(.*?)\1/g,
26
- /import\((["'])(.*?)\1\)/,
27
- /require\((["'])(.*?)\1\)/,
28
- /import\s+(["'])(.*?)\1/,
+ /import\((["'])(.*?)\1\)/g,
+ /require\((["'])(.*?)\1\)/g,
+ /import\s+(["'])(.*?)\1/g,
29
]
30
31
function parseImports(file: ReadonlyArray<string>, dir: string): FileData[] {
0 commit comments