mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
18 lines
410 B
JavaScript
18 lines
410 B
JavaScript
import { jsConfig } from './webpack.config.base';
|
|
|
|
const umdConfig = jsConfig();
|
|
umdConfig.mode = 'production';
|
|
umdConfig.output.filename = '[name].min.js';
|
|
|
|
const esmConfig = jsConfig();
|
|
esmConfig.mode = 'production';
|
|
esmConfig.output.library = {
|
|
type: 'module',
|
|
};
|
|
esmConfig.experiments = {
|
|
outputModule: true,
|
|
};
|
|
esmConfig.output.filename = '[name].esm.min.mjs';
|
|
|
|
export default [umdConfig, esmConfig];
|