-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove is-builtin-module dependency (#970)
* feat: remove is-builtin-module dependency 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 ``` * Simplify code --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
- Loading branch information
1 parent
28cefbf
commit ff094cf
Showing
3 changed files
with
4 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters