Skip to content

Commit 4e1f515

Browse files
committed
chore(project): workaround minification issue
Consume bpmn-js via <* as BpmnJS>. Closes #6
1 parent 5184f71 commit 4e1f515

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import {
3636
* to navigate them
3737
* bpmn-modeler - bootstraps a full-fledged BPMN editor
3838
*/
39-
import BpmnJS from 'bpmn-js/dist/bpmn-navigated-viewer.development.js';
39+
import * as BpmnJS from 'bpmn-js/dist/bpmn-navigated-viewer.development.js';
4040

4141
@Component({
4242
selector: 'app-diagram',

bpmn-js-app/src/app/diagram/diagram.component.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import { map, catchError, retry } from 'rxjs/operators';
1717
/**
1818
* You may include a different variant of BpmnJS:
1919
*
20-
* Viewer - displays BPMN diagrams without the ability
21-
* to navigate them
22-
* Modeler - bootstraps a full-fledged BPMN editor
20+
* bpmn-viewer - displays BPMN diagrams without the ability
21+
* to navigate them
22+
* bpmn-modeler - bootstraps a full-fledged BPMN editor
2323
*/
24-
import BpmnJS from 'bpmn-js/lib/NavigatedViewer';
24+
import * as BpmnJS from 'bpmn-js/dist/bpmn-modeler.production.min.js';
2525

2626
import { importDiagram } from './rx';
2727

0 commit comments

Comments
 (0)