Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
fix module resolution when path has a `#` (fixes #331)
Brad Cornes <bradlc41@gmail.com>
3 years ago
1 changed files, 2 additions(+), 1 deletions(-)
M src/util/resolveFrom.ts -> src/util/resolveFrom.ts
diff --git a/src/util/resolveFrom.ts b/src/util/resolveFrom.ts
index af6aeb0325f1b008a03fe9ca17c2e517831e5bd7..fa6ef205c5e983b8c9085d6e8d9903d9b218d0e7 100644
--- a/src/util/resolveFrom.ts
+++ b/src/util/resolveFrom.ts
@@ -23,5 +23,6 @@ export default function resolveFrom(from?: string, id?: string): string {
   let result = resolver.resolveSync({}, from, id)
   if (result === false) throw Error()
 import { CachedInputFileSystem, ResolverFactory, Resolver, ResolveOptions } from 'enhanced-resolve'
-import * as fs from 'fs'
+import { CachedInputFileSystem, ResolverFactory, Resolver, ResolveOptions } from 'enhanced-resolve'
+  return result.replace(/\0#/g, '#')
 }