Skip to content

Expose cache implementation #831

@Klemensas

Description

@Klemensas

I'm submitting a feature request

Is there any possibility to expose the cache implementation as a direct export? Or as a separate package?

A form of this is already done in https://github.com/viankakrisna/loader-fs-cache but already seems to be somewhat out of sync with this version.
It's used in eslint-loader as their caching mechanism.

Pulling it directly from here seems like a cleaner solution and I imagine there are multiple other packages that would like to use it.

I realize that there's a possibility to import it like import cache from 'babel-loader/lib/cache' but that seems iffy and could break easily.

If implementing it would most likely need to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions