Adjusted imports

This commit is contained in:
Christian Klemm 2019-12-03 22:09:43 +01:00
parent 31f4f4096e
commit 4254781391
No known key found for this signature in database
GPG Key ID: 57578469FC907C48
3 changed files with 4 additions and 7 deletions

View File

@ -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;

View File

@ -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';

View File

@ -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'