Closed 43081j closed 5 months ago
tailwind uses is-builtin-module here: https://github.com/tailwindlabs/tailwindcss-intellisense/blob/b715097ca91d1c69ec0ab6d81de8c9435c0919e4/packages/tailwindcss-language-server/src/lib/env.ts#L4
is-builtin-module
it doesn't have an engines constraint, though it does depend on packages which themselves require node >=12.
engines
>=12
that means we can at least rely on builtinModules:
builtinModules
import {builtinModules} from 'node:module'; const name = '...'; builtinModules.includes(name.replace('node:', ''));
opened tailwindlabs/tailwindcss-intellisense#970
Merged 🥳
tailwind uses
is-builtin-module
here: https://github.com/tailwindlabs/tailwindcss-intellisense/blob/b715097ca91d1c69ec0ab6d81de8c9435c0919e4/packages/tailwindcss-language-server/src/lib/env.ts#L4it doesn't have an
engines
constraint, though it does depend on packages which themselves require node>=12
.that means we can at least rely on
builtinModules
: