Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Support `node:` module prefix (#585)
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJi3sg5CRBK7hj4Ov3rIwAA8EgIAJ+DpCDUJ6DWtsbFszuSr8K7 n16H8wyjVTG/7a4zLA7tShncoExKU+yFovcE+5aCEvifQ3G9+vZQUNSnQTgpou9t FfqBA2f/KmZBk9eJ9hRItPO05KPeyAJNHYcyqMLjjtGnc2IckIz7F4ctr8YXZz/Z l1LHye6q5n4RsKCGRN5loM5M//FwGT3aG5CpAPv43s7JGbtCr8s3W1ny4pzvm01y rqOxZ4u6YCffOR0XZ92FDHMWkRvMMUUpJ+YQDus3toSNYtyhCplh9ZlKxWt9iOq/ 3v1NQRafQkwhZksQ2LW31VIzRVIVq1m7AhX3J45V7clGLmI9g8F/n7vS3EA57g8= =rApp -----END PGP SIGNATURE-----
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 4 additions(+), 0 deletions(-)
M packages/tailwindcss-language-server/src/lib/env.ts -> packages/tailwindcss-language-server/src/lib/env.ts
diff --git a/packages/tailwindcss-language-server/src/lib/env.ts b/packages/tailwindcss-language-server/src/lib/env.ts
index 36f24064e833f4bfdffc93bdfd9b0203b73fdea1..d6a538954d11272a0314c1d4d858a031578ee775 100644
--- a/packages/tailwindcss-language-server/src/lib/env.ts
+++ b/packages/tailwindcss-language-server/src/lib/env.ts
@@ -9,6 +10,10 @@ let oldResolveFilename = (Module as any)._resolveFilename
 
 ;(Module as any)._resolveFilename = (id: any, parent: any) => {
 import Module from 'module'
+
+    typeof id === 'string' &&
+    (builtInModules.includes(id) || builtInModules.includes(id.replace(/^node:/, '')))
+  ) {
     return oldResolveFilename(id, parent)
   }
   return resolveFrom(path.dirname(parent.id), id)