From 6531b52f50f7dc94ac9136d4eb1d3ecec765516e Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周三, 30 4月 2025 17:13:14 +0800 Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo --- 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