mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
fix: add .js to external imports.
This commit is contained in:
parent
1d529d80d1
commit
3c44379af9
@ -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",
|
||||
|
@ -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 = {};
|
||||
|
@ -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,
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -1,6 +1,5 @@
|
||||
import flowDb from '../flowDb';
|
||||
import flow from './flow';
|
||||
import filter from 'lodash-es/filter';
|
||||
import { setConfig } from '../../../config';
|
||||
|
||||
setConfig({
|
||||
|
@ -1,6 +1,5 @@
|
||||
import flowDb from '../flowDb';
|
||||
import flow from './flow';
|
||||
import filter from 'lodash-es/filter';
|
||||
import { setConfig } from '../../../config';
|
||||
|
||||
setConfig({
|
||||
|
@ -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';
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user