Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Fix format assumption when resolving module dependencies https://github.com/tailwindlabs/tailwindcss/pull/10878
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 1 additions(+), 1 deletions(-)
M packages/tailwindcss-language-server/src/util/getModuleDependencies.ts -> packages/tailwindcss-language-server/src/util/getModuleDependencies.ts
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