mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
14 lines
332 B
JavaScript
14 lines
332 B
JavaScript
const { esmBuild, umdBuild } = require('./util.cjs');
|
|
const { build } = require('esbuild');
|
|
|
|
const handler = (e) => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
};
|
|
|
|
build(esmBuild({ minify: false })).catch(handler);
|
|
build(umdBuild({ minify: false })).catch(handler);
|
|
|
|
build(esmBuild()).catch(handler);
|
|
build(umdBuild()).catch(handler);
|