From 2dd0704b858acb9ffd4b940a5d841242d9840524 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Wed, 18 Nov 2020 09:12:03 -0800 Subject: [PATCH] feat(gatsby): add telemetry for usage of lazy devjs bundling (#28147) * feat(gatsby): add telemetry for usage of lazy devjs bundling * fix name * Use pascal convention for name (cherry picked from commit 48f2b2d76af060b7d9d83d28be5c4f6d069133d5) --- packages/gatsby/src/services/initialize.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/gatsby/src/services/initialize.ts b/packages/gatsby/src/services/initialize.ts index 5b1f91c10f634..50c4af08a0502 100644 --- a/packages/gatsby/src/services/initialize.ts +++ b/packages/gatsby/src/services/initialize.ts @@ -204,6 +204,9 @@ export async function initialize({ telemetry.trackFeatureIsUsed(`QueryOnDemand`) } } + if (process.env.GATSBY_EXPERIMENTAL_LAZY_DEVJS) { + telemetry.trackFeatureIsUsed(`ExperimentalDevSSR`) + } // run stale jobs store.dispatch(removeStaleJobs(store.getState()))