Skip to content

Option to disable dependency tracking #2905

@novemberborn

Description

@novemberborn

Dependency tracking may be fraught in CommonJS and currently doesn't work anyway in ESM. See discussion in #2887 and #2388.

When dependency tracking breaks, watch mode becomes less useful. Let's add a trackDependencies configuration option, defaulting to true, which when set to false disables dependency tracking. We can add a guard here:

dependencyTracking.install(require.extensions, testPath);

Presumably the solution for #2388 will involve parsing syntax files which may be slow, so having an opt out will be useful regardless.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions