Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
update resolver options to support `exports` fields (#412)
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 1 additions(+), 3 deletions(-)
M packages/tailwindcss-language-server/src/util/resolveFrom.ts -> packages/tailwindcss-language-server/src/util/resolveFrom.ts
diff --git a/packages/tailwindcss-language-server/src/util/resolveFrom.ts b/packages/tailwindcss-language-server/src/util/resolveFrom.ts
index fa6ef205c5e983b8c9085d6e8d9903d9b218d0e7..0fd209b84780740fbf5061b200d3f4dfe022efae 100644
--- a/packages/tailwindcss-language-server/src/util/resolveFrom.ts
+++ b/packages/tailwindcss-language-server/src/util/resolveFrom.ts
@@ -6,9 +6,7 @@   return ResolverFactory.createResolver({
     fileSystem: new CachedInputFileSystem(fs, 4000),
     useSyncFileSystemCalls: true,
     // cachePredicate: () => false,
-    exportsFields: [],
-    conditionNames: ['node'],
-    extensions: ['.js', '.json', '.node'],
+    conditionNames: ['node', 'require'],
     ...options,
   })
 }