From 203abc06939ac2e930ca21078e24cbf76770342e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 14 Nov 2024 15:33:27 +0100 Subject: [PATCH] fix: enable by default only in development --- packages/schema/src/config/experimental.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index 8f5b04cf65..9b2fa68c8a 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -413,6 +413,8 @@ export default defineUntypedSchema({ * * @see [the Chrome DevTools extensibility API](https://developer.chrome.com/docs/devtools/performance/extension#tracks) */ - browserDevtoolsTiming: true, + browserDevtoolsTiming: { + $resolve: async (val, get) => val ?? await get('dev'), + }, }, })