diff --git a/plugins/markdown/plugin-markdown-chart/package.json b/plugins/markdown/plugin-markdown-chart/package.json index 0a8689ad22..9d00915125 100644 --- a/plugins/markdown/plugin-markdown-chart/package.json +++ b/plugins/markdown/plugin-markdown-chart/package.json @@ -42,6 +42,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", + "bundle": "rollup -c rollup.config.ts --configPlugin esbuild", "clean": "rimraf --glob ./lib ./*.tsbuildinfo", "style": "sass src:lib --embed-sources --style=compressed" }, diff --git a/plugins/markdown/plugin-markdown-chart/rollup.config.ts b/plugins/markdown/plugin-markdown-chart/rollup.config.ts new file mode 100644 index 0000000000..8deeb099fd --- /dev/null +++ b/plugins/markdown/plugin-markdown-chart/rollup.config.ts @@ -0,0 +1,16 @@ +import { rollupBundle } from '../../../scripts/rollup.js' + +export default [ + ...rollupBundle('node/index'), + ...rollupBundle({ + base: 'client', + files: [ + 'components/ChartJS', + 'components/ECharts', + 'components/FlowChart', + 'components/MarkMap', + 'components/Mermaid', + 'index', + ], + }), +]