From ebb01be3dc2aa42f54237f4bb0b2752ef7d4b36c Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 7 Aug 2024 13:03:42 +0200 Subject: [PATCH] fix bench script --- scripts/tasks/bench.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/tasks/bench.ts b/scripts/tasks/bench.ts index cead08852edb..e08e06658838 100644 --- a/scripts/tasks/bench.ts +++ b/scripts/tasks/bench.ts @@ -20,10 +20,8 @@ export const bench: Task = { const controllers: AbortController[] = []; try { const { disableDocs } = options; - // @ts-expect-error Default import required for dynamic import processed by esbuild - const { browse } = (await import('../bench/browse.ts')).default; - // @ts-expect-error Default import required for dynamic import processed by esbuild - const { saveBench, loadBench } = (await import('../bench/utils.ts')).default; + const { browse } = await import('../bench/browse'); + const { saveBench, loadBench } = await import('../bench/utils'); const devController = await dev.run(details, { ...options, debug: false }); if (!devController) {