Skip to content

Sharing package.json and stat cache between CJS and ESM loaders #30674

Closed
@guybedford

Description

@guybedford

Currently the ES module resolver and CJS resolver do not share their stat cache or package configuration cache.

Sharing these caches would significantly improve boot performance of applications that contain mixed CommonJS and ESM (currently very few, but soon to be most, we hope!)

I wanted to create this issue to track that optimization work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions