Skip to content

Avoid Error garbage in resolver statSync calls #1758

Description

@cspotcode

For more performant filesystem access, use fs.statSync('', {throwIfNoEntry: false}) to avoid creating Error garbage.

This is especially good in the resolver codepaths where many, many stat calls are attempted, and most are expected to fail.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions