From b26bcf1343f6ca6a4657d5c2a0393ca20f4e507b Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 17 Aug 2023 08:22:00 +0530 Subject: [PATCH] chore: Fix minify --- .esbuild/util.ts | 1 + packages/mermaid/src/setupGraphViewbox.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.esbuild/util.ts b/.esbuild/util.ts index 249045652..64b132055 100644 --- a/.esbuild/util.ts +++ b/.esbuild/util.ts @@ -49,6 +49,7 @@ export const getBuildConfig = ({ }`]: `src/${file}`, }, metafile, + minify, logLevel: 'info', }); diff --git a/packages/mermaid/src/setupGraphViewbox.js b/packages/mermaid/src/setupGraphViewbox.js index e4050c205..ba74b79fd 100644 --- a/packages/mermaid/src/setupGraphViewbox.js +++ b/packages/mermaid/src/setupGraphViewbox.js @@ -1,5 +1,4 @@ import { log } from './logger.js'; -import { SVG } from './diagram-api/types.js'; /** * Applies d3 attributes @@ -36,7 +35,7 @@ export const calculateSvgSizeAttrs = function (height, width, useMaxWidth) { /** * Applies attributes from `calculateSvgSizeAttrs` * - * @param {SVG} svgElem The SVG Element to configure + * @param {import('./diagram-api/types.js').SVG} svgElem The SVG Element to configure * @param {number} height The height of the SVG * @param {number} width The width of the SVG * @param {boolean} useMaxWidth Whether or not to use max-width and set width to 100%