Skip to content

Commit

Permalink
Adjusted imports
Browse files Browse the repository at this point in the history
  • Loading branch information
klemmchr committed Dec 3, 2019
1 parent 31f4f40 commit 4254781
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/diagrams/flowchart/flowChartShapes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dagreD3 from 'dagre-d3-unofficial';
import dagreD3 from 'dagre-d3';

function question(parent, bbox, node) {
const w = bbox.width;
Expand Down
4 changes: 2 additions & 2 deletions src/diagrams/flowchart/flowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 1 addition & 4 deletions webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 4254781

Please sign in to comment.