Skip to content

feat: remove is-builtin-module dependency #970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2024

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