mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-08 01:56:42 +02:00
fix: Unify build configs
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
import { jsConfig } from './webpack.config.base';
|
||||
|
||||
const minConfig = jsConfig();
|
||||
minConfig.mode = 'production';
|
||||
minConfig.output.filename = '[name].min.js';
|
||||
const umdConfig = jsConfig();
|
||||
umdConfig.mode = 'production';
|
||||
umdConfig.output.filename = '[name].min.js';
|
||||
|
||||
export default [minConfig];
|
||||
const esmConfig = jsConfig();
|
||||
esmConfig.mode = 'production';
|
||||
esmConfig.output.library = {
|
||||
type: 'module',
|
||||
};
|
||||
esmConfig.experiments = {
|
||||
outputModule: true,
|
||||
};
|
||||
esmConfig.output.filename = '[name].esm.min.js';
|
||||
|
||||
export default [umdConfig, esmConfig];
|
||||
|
Reference in New Issue
Block a user