pub async fn project_feature_usage(
project: External<ProjectInstance>,
) -> Result<Vec<NapiUsedFeature>>Expand description
Returns the build-feature-usage telemetry summary for this project — the set of
(featureName, invocationCount) pairs reported to the Next.js telemetry service.
Intended to be called once at the end of a build, after writeAllEntrypointsToDisk. The
summary is computed by walking the whole-app module graph and is cached by turbo-tasks, so the
call is cheap when the graph is already materialized.