tailwindlabs / tailwindcss-intellisense

Intelligent Tailwind CSS tooling for Visual Studio Code
2.74k stars 182 forks source link

feat: remove is-builtin-module dependency #970

Closed 43081j closed 4 weeks ago

43081j commented 1 month ago

Node provides a list of built ins via builtinModules. We can test against this rather than including an extra (redundant) dependency.

In future, if we introduce a version constraint of node >=16, we can use isBuiltin which node provides:

import {isBuiltin} from 'node:module';

isBuiltin('fs'); // true
thecrypticace commented 4 weeks ago

Thanks!