Skip to content

Commit

Permalink
refactor: delete log
Browse files Browse the repository at this point in the history
  • Loading branch information
huangguang1999 committed Feb 28, 2024
1 parent 920167c commit 798f932
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/sites/plugins/DemoGeneratePlugin/generate-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 798f932

Please sign in to comment.