mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Adjusted imports
This commit is contained in:
parent
31f4f4096e
commit
4254781391
@ -1,4 +1,4 @@
|
||||
import dagreD3 from 'dagre-d3-unofficial';
|
||||
import dagreD3 from 'dagre-d3';
|
||||
|
||||
function question(parent, bbox, node) {
|
||||
const w = bbox.width;
|
||||
|
@ -6,10 +6,10 @@ import flow from './parser/flow';
|
||||
import { getConfig } from '../../config';
|
||||
|
||||
const newDagreD3 = true;
|
||||
import dagreD3 from 'dagre-d3-unofficial';
|
||||
import dagreD3 from 'dagre-d3';
|
||||
// const newDagreD3 = false;
|
||||
|
||||
import addHtmlLabel from 'dagre-d3-unofficial/lib/label/add-html-label.js';
|
||||
import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';
|
||||
import { logger } from '../../logger';
|
||||
import { interpolateToCurve } from '../../utils';
|
||||
import flowChartShapes from './flowChartShapes';
|
||||
|
@ -40,10 +40,7 @@ export const jsConfig = () => {
|
||||
mermaid: './src/mermaid.js'
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.wasm', '.mjs', '.js', '.json', '.jison'],
|
||||
alias: {
|
||||
'dagre-d3': 'dagre-d3-unofficial'
|
||||
}
|
||||
extensions: ['.wasm', '.mjs', '.js', '.json', '.jison']
|
||||
},
|
||||
node: {
|
||||
fs: 'empty' // jison generated code requires 'fs'
|
||||
|
Loading…
x
Reference in New Issue
Block a user