mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
fix: Build options
This commit is contained in:
parent
2b86750cb3
commit
2933eb5c28
@ -9,13 +9,18 @@ import { generateLangium } from '../.build/generateLangium.js';
|
|||||||
import { defaultOptions, getBuildConfig } from './util.js';
|
import { defaultOptions, getBuildConfig } from './util.js';
|
||||||
|
|
||||||
const configs = Object.values(packageOptions).map(({ packageName }) =>
|
const configs = Object.values(packageOptions).map(({ packageName }) =>
|
||||||
getBuildConfig({ ...defaultOptions, minify: false, core: false, entryName: packageName })
|
getBuildConfig({
|
||||||
|
...defaultOptions,
|
||||||
|
minify: false,
|
||||||
|
core: false,
|
||||||
|
options: packageOptions[packageName],
|
||||||
|
})
|
||||||
);
|
);
|
||||||
const mermaidIIFEConfig = getBuildConfig({
|
const mermaidIIFEConfig = getBuildConfig({
|
||||||
...defaultOptions,
|
...defaultOptions,
|
||||||
minify: false,
|
minify: false,
|
||||||
core: false,
|
core: false,
|
||||||
entryName: 'mermaid',
|
options: packageOptions.mermaid,
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
});
|
});
|
||||||
configs.push(mermaidIIFEConfig);
|
configs.push(mermaidIIFEConfig);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user