tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Fix format assumption when resolving module dependencies
https://github.com/tailwindlabs/tailwindcss/pull/10878
diff --git a/packages/tailwindcss-language-server/src/util/getModuleDependencies.ts b/packages/tailwindcss-language-server/src/util/getModuleDependencies.ts
index 09080431ea1694618e7156db1c1ab9c2de616e65..103a993702aebae2f5462cebe6b835cd431ae1a4 100644
--- a/packages/tailwindcss-language-server/src/util/getModuleDependencies.ts
+++ b/packages/tailwindcss-language-server/src/util/getModuleDependencies.ts
@@ -69,7 +69,7 @@ // Find imports/requires
for (let match of [
...contents.matchAll(/import[\s\S]*?['"](.{3,}?)['"]/gi),
...contents.matchAll(/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi),
-
+let jsExtensions = ['.js', '.cjs', '.mjs']
let jsExtensions = ['.js', '.cjs', '.mjs']
]) {
// Bail out if it's not a relative file