mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +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) {
|
function question(parent, bbox, node) {
|
||||||
const w = bbox.width;
|
const w = bbox.width;
|
||||||
|
@ -6,10 +6,10 @@ import flow from './parser/flow';
|
|||||||
import { getConfig } from '../../config';
|
import { getConfig } from '../../config';
|
||||||
|
|
||||||
const newDagreD3 = true;
|
const newDagreD3 = true;
|
||||||
import dagreD3 from 'dagre-d3-unofficial';
|
import dagreD3 from 'dagre-d3';
|
||||||
// const newDagreD3 = false;
|
// 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 { logger } from '../../logger';
|
||||||
import { interpolateToCurve } from '../../utils';
|
import { interpolateToCurve } from '../../utils';
|
||||||
import flowChartShapes from './flowChartShapes';
|
import flowChartShapes from './flowChartShapes';
|
||||||
|
@ -40,10 +40,7 @@ export const jsConfig = () => {
|
|||||||
mermaid: './src/mermaid.js'
|
mermaid: './src/mermaid.js'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.wasm', '.mjs', '.js', '.json', '.jison'],
|
extensions: ['.wasm', '.mjs', '.js', '.json', '.jison']
|
||||||
alias: {
|
|
||||||
'dagre-d3': 'dagre-d3-unofficial'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
node: {
|
node: {
|
||||||
fs: 'empty' // jison generated code requires 'fs'
|
fs: 'empty' // jison generated code requires 'fs'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user