knsv/mermaid

View on GitHub
.esbuild/util.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function getBuildConfig has 38 lines of code (exceeds 25 allowed). Consider refactoring.
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);
Severity: Minor
Found in .esbuild/util.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status