fix: Support treeshaking

This commit is contained in:
Sidharth Vinod 2022-09-09 16:58:48 +05:30
parent b1770d3d06
commit d2e7b1e56f
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
3 changed files with 3 additions and 2 deletions

View File

@ -73,6 +73,7 @@
"fast-clone": "^1.5.13", "fast-clone": "^1.5.13",
"graphlib": "^2.1.8", "graphlib": "^2.1.8",
"khroma": "^2.0.0", "khroma": "^2.0.0",
"lodash": "^4.17.21",
"moment-mini": "^2.24.0", "moment-mini": "^2.24.0",
"non-layered-tidy-tree-layout": "^2.0.2", "non-layered-tidy-tree-layout": "^2.0.2",
"stylis": "^4.0.10" "stylis": "^4.0.10"

View File

@ -2,7 +2,7 @@ import utils from './utils';
import assignWithDepth from './assignWithDepth'; import assignWithDepth from './assignWithDepth';
import { detectType } from './diagram-api/detectType'; import { detectType } from './diagram-api/detectType';
import { addDiagrams } from './diagram-api/diagram-orchestration'; import { addDiagrams } from './diagram-api/diagram-orchestration';
import { memoize } from 'lodash'; import memoize from 'lodash/memoize';
addDiagrams(); addDiagrams();
describe('when assignWithDepth: should merge objects within objects', function () { describe('when assignWithDepth: should merge objects within objects', function () {

View File

@ -20,7 +20,7 @@ import { log } from './logger';
import { detectType } from './diagram-api/detectType'; import { detectType } from './diagram-api/detectType';
import assignWithDepth from './assignWithDepth'; import assignWithDepth from './assignWithDepth';
import { MermaidConfig } from './config.type'; import { MermaidConfig } from './config.type';
import { memoize } from 'lodash'; import memoize from 'lodash/memoize';
// Effectively an enum of the supported curve types, accessible by name // Effectively an enum of the supported curve types, accessible by name
const d3CurveTypes = { const d3CurveTypes = {