Skip to content

Avoid Error garbage in resolver statSync calls #1758

Closed
@cspotcode

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.

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