Skip to content

Commit 7978a2e

Browse files
committed
Fix format assumption when resolving module dependencies
tailwindlabs/tailwindcss#10878
1 parent ae18cb2 commit 7978a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tailwindcss-language-server/src/util/getModuleDependencies.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function* _getModuleDependencies(
6969
for (let match of [
7070
...contents.matchAll(/import[\s\S]*?['"](.{3,}?)['"]/gi),
7171
...contents.matchAll(/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi),
72-
...contents.matchAll(/require\(['"`](.{3,})['"`]\)/gi),
72+
...contents.matchAll(/require\(['"`](.+)['"`]\)/gi),
7373
]) {
7474
// Bail out if it's not a relative file
7575
if (!match[1].startsWith('.')) continue

0 commit comments

Comments
 (0)