Skip to content

Commit

Permalink
Fix format assumption when resolving module dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Mar 27, 2023
1 parent ae18cb2 commit 7978a2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function* _getModuleDependencies(
for (let match of [
...contents.matchAll(/import[\s\S]*?['"](.{3,}?)['"]/gi),
...contents.matchAll(/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi),
...contents.matchAll(/require\(['"`](.{3,})['"`]\)/gi),
...contents.matchAll(/require\(['"`](.+)['"`]\)/gi),
]) {
// Bail out if it's not a relative file
if (!match[1].startsWith('.')) continue
Expand Down

0 comments on commit 7978a2e

Please sign in to comment.