From 9bec4dcae002f36aa23231da11cb03a156b40110 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周三, 30 4月 2025 16:24:16 +0800
Subject: [PATCH] 222

---
 PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts b/PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts
index 88b58c7..a404c85 100644
--- a/PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts
+++ b/PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts
@@ -5,6 +5,7 @@
 // @ts-ignore
 const filePath = isWin ? basePath.replaceAll('\\', '/') : basePath
 const regex = new RegExp(`${filePath}/([^/]*)/index.ts`)
+const NOT_PAGE = 'notPage:true'
 /**
  * 鎻愬彇鍏抽敭瀛楃
  * @param {*} code
@@ -58,8 +59,12 @@
         if (regex.test(id)) {
           const codeData = parseCode(code)
           const transformCode = mergeCodeString(codeData, code)
+          // const emptyCode = code.replaceAll(' ', '')
+
+          const newCode = transformCode
+          // const newCode = emptyCode.includes(NOT_PAGE) ? code : transformCode
           return {
-            code: transformCode,
+            code: newCode,
             map: null, // 濡傛灉鍙灏嗘彁渚� source map
           }
         }

--
Gitblit v1.9.3