We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9dc9fd commit 4905a89Copy full SHA for 4905a89
packages/cherry-markdown/build/rollup.base.config.js
@@ -67,8 +67,8 @@ const options = {
67
}
68
69
// 对特定第三方库保持保守,避免错误 tree-shake
70
- // crypto-js、mermaid、echarts 等库在 tree-shake 时会出问题
71
- if (id.includes('crypto-js') || id.includes('mermaid') || id.includes('echarts')) {
+ // crypto-js、mermaid、echarts、codemirror 等库在 tree-shake 时会出问题
+ if (id.includes('crypto-js') || id.includes('mermaid') || id.includes('echarts') || id.includes('codemirror')) {
72
return true;
73
74
// prismjs 及其组件有副作用(将语言注册到 Prism.languages)
0 commit comments