From 3d3909d04766163809eda88d7a9fabb2b951b172 Mon Sep 17 00:00:00 2001 From: Saurav B V <41701284+sauravbv@users.noreply.github.com> Date: Tue, 13 Aug 2024 18:17:09 +0530 Subject: [PATCH] fix: replay click option --- src/module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/module.ts b/src/module.ts index 22d233d..b4ab181 100644 --- a/src/module.ts +++ b/src/module.ts @@ -123,8 +123,10 @@ export default defineNuxtModule({ scripts[s] = template(scriptT)({ options }) } + const replayClickScript = options.replayClick ? scripts.replay : false + const exports = `export const script = ${JSON.stringify(scripts.global, null, 2)} -export const replayScript = ${JSON.stringify(scripts.replay, null, 2)} +export const replayScript = ${JSON.stringify(replayClickScript, null, 2)} export const mode = ${JSON.stringify(options.mode)} export const include = ${JSON.stringify(options.include)} export const exclude = ${JSON.stringify(options.exclude)}