.esbuild/util.ts
Function getBuildConfig
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getBuildConfig = (options: MermaidBuildOptions): BuildOptions => {
const { core, entryName, metafile, format, minify } = options;
const external: string[] = ['require', 'fs', 'path'];
const { name, file, packageName } = packageOptions[entryName];
const outFileName = getFileName(name, options);