-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
tailwind uses is-builtin-module
here:
https://github.com/tailwindlabs/tailwindcss-intellisense/blob/b715097ca91d1c69ec0ab6d81de8c9435c0919e4/packages/tailwindcss-language-server/src/lib/env.ts#L4
it 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
:
import {builtinModules} from 'node:module';
const name = '...';
builtinModules.includes(name.replace('node:', ''));
Metadata
Metadata
Assignees
Labels
No labels