Skip to content

Support relative compile cache #58755

Open
@joyeecheung

Description

@joyeecheung

What is the problem this feature will solve?

The built-in compile cache is currently always using absolute paths to decide cache miss/hit, so the cache is not portable.

What is the feature you are proposing to solve the problem?

Support an option for the built-in compile cache to encode the hashes with relative paths and use that to decide cache miss/hit, so that after generating the cache in a specified relative directory, the source directory along with the cache directory can be bundled and moved to elsewhere, and continue to work from a different base directory.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

Labels

feature requestIssues that request new features to be added to Node.js.

Type

No type

Projects

Status

Awaiting Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions