Skip to content

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented May 21, 2024

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

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:

```ts
import {isBuiltin} from 'node:module';

isBuiltin('fs'); // true
```
@thecrypticace thecrypticace merged commit ff094cf into tailwindlabs:master Jun 4, 2024
@thecrypticace
Copy link
Contributor

Thanks!

@43081j 43081j deleted the ibm branch June 4, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants