Can I use bpmn.js to parse an bpmn file for its tasks?

if you’re using the pre-packaged version, just replace:

var BpmnViewer = require('bpmn-js');

with,

var BpmnViewer = window.BpmnJS;

1 Like