8000 Avoid `Error` garbage in resolver `statSync` calls · Issue #1758 · TypeStrong/ts-node · GitHub
[go: up one dir, main page]

Skip to content
Avoid Error garbage in resolver statSync calls #1758
@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

      0