From 798f93256e6d367ce089fe2e23ae42569de8fb32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=B9=BF?= Date: Wed, 28 Feb 2024 17:09:53 +0800 Subject: [PATCH] refactor: delete log --- scripts/sites/plugins/DemoGeneratePlugin/generate-demo.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/sites/plugins/DemoGeneratePlugin/generate-demo.js b/scripts/sites/plugins/DemoGeneratePlugin/generate-demo.js index c961ffbc..4c5f9c82 100644 --- a/scripts/sites/plugins/DemoGeneratePlugin/generate-demo.js +++ b/scripts/sites/plugins/DemoGeneratePlugin/generate-demo.js @@ -36,10 +36,6 @@ function renderSource({ const notDevDemo = devComponents.includes(comp) && !devDemos.includes(demoName); const demo = fs.readFileSync(path.join(demoPath, `${demoName}.md`), 'utf8'); const newDemo = notDevDemo ? demo.replace(/\(\) \{([\s\S]*?)\}\n```/g, '() { return null }\n```') : demo; - if (devComponents.includes(comp) && !devDemos.includes(demoName)) { - console.log(demo) - console.log(newDemo) - } const renderer = new marked.Renderer(); const compNpmReg = new RegExp(compPackageName, 'g'); const utilsNpmReg = new RegExp(utilsPackageName, 'g');