fix: add .js to external imports.

This commit is contained in:
Sidharth Vinod 2022-12-13 00:34:31 +05:30
parent 1d529d80d1
commit 3c44379af9
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
11 changed files with 9 additions and 11 deletions

View File

@ -1,6 +1,6 @@
{
"name": "mermaid",
"version": "9.3.0-rc.3",
"version": "9.3.0-rc.4",
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"main": "./dist/mermaid.min.js",
"module": "./dist/mermaid.core.mjs",

View File

@ -1,7 +1,7 @@
/** Decorates with functions required by mermaids dagre-wrapper. */
import { log } from '../logger';
import * as graphlibJson from 'dagre-d3-es/src/graphlib/json';
import * as graphlib from 'dagre-d3-es/src/graphlib';
import * as graphlib from 'dagre-d3-es/src/graphlib.js';
export let clusterDb = {};
let descendants = {};

View File

@ -1,5 +1,5 @@
import * as graphlibJson from 'dagre-d3-es/src/graphlib/json';
import * as graphlib from 'dagre-d3-es/src/graphlib';
import * as graphlib from 'dagre-d3-es/src/graphlib.js';
import {
validate,
adjustClustersAndEdges,

View File

@ -1,5 +1,5 @@
import { select } from 'd3';
import * as graphlib from 'dagre-d3-es/src/graphlib';
import * as graphlib from 'dagre-d3-es/src/graphlib.js';
import { log } from '../../logger';
import { getConfig } from '../../config';
import { render } from '../../dagre-wrapper/index.js';

View File

@ -1,4 +1,4 @@
import * as graphlib from 'dagre-d3-es/src/graphlib';
import * as graphlib from 'dagre-d3-es/src/graphlib.js';
import { line, curveBasis, select } from 'd3';
import { layout as dagreLayout } from 'dagre-d3-es/src/dagre/index.js';
import { getConfig } from '../../config';

View File

@ -1,4 +1,4 @@
import * as graphlib from 'dagre-d3-es/src/graphlib';
import * as graphlib from 'dagre-d3-es/src/graphlib.js';
import { select, curveLinear, selectAll } from 'd3';
import flowDb from './flowDb';

View File

@ -1,4 +1,4 @@
import * as graphlib from 'dagre-d3-es/src/graphlib';
import * as graphlib from 'dagre-d3-es/src/graphlib.js';
import { select, curveLinear, selectAll } from 'd3';
import { getConfig } from '../../config';
import { render as Render } from 'dagre-d3-es';

View File

@ -1,6 +1,5 @@
import flowDb from '../flowDb';
import flow from './flow';
import filter from 'lodash-es/filter';
import { setConfig } from '../../../config';
setConfig({

View File

@ -1,6 +1,5 @@
import flowDb from '../flowDb';
import flow from './flow';
import filter from 'lodash-es/filter';
import { setConfig } from '../../../config';
setConfig({

View File

@ -1,4 +1,4 @@
import * as graphlib from 'dagre-d3-es/src/graphlib';
import * as graphlib from 'dagre-d3-es/src/graphlib.js';
import { select } from 'd3';
import { getConfig } from '../../config';
import { render } from '../../dagre-wrapper/index.js';

View File

@ -3,7 +3,7 @@ import utils from './utils';
import assignWithDepth from './assignWithDepth';
import { detectType } from './diagram-api/detectType';
import { addDiagrams } from './diagram-api/diagram-orchestration';
import memoize from 'lodash-es/memoize';
import memoize from 'lodash-es/memoize.js';
import { MockedD3 } from './tests/MockedD3';
addDiagrams();