From 115ea875746f1446e760dfd46b9483627cfe785f Mon Sep 17 00:00:00 2001 From: hemengke <23536175@qq.com> Date: Wed, 22 May 2024 10:42:22 +0800 Subject: [PATCH] ci: release --- packages/vite-plugin-istanbul-widget/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite-plugin-istanbul-widget/src/index.ts b/packages/vite-plugin-istanbul-widget/src/index.ts index c13d789..b37ee2e 100644 --- a/packages/vite-plugin-istanbul-widget/src/index.ts +++ b/packages/vite-plugin-istanbul-widget/src/index.ts @@ -43,7 +43,7 @@ export function istanbulWidget(opts: VitePluginIstanbulWidgetOptions): any { } }, load(id) { - if (id === resolvedVirtualIstanbulWidgetId) { + if (id === resolvedVirtualIstanbulWidgetId && istanbulWidgetConfig !== false) { const js = resolveInlineScript('lib', istanbulWidgetConfig).src const content = fs.readFileSync(js, 'utf-8') return content