Parcel v2 is used in this project: https://parceljs.org
To run locally:
npm install
npm start
- localhost app
You will see the following diagram:
The code calling bpmn-visualization
to render the BPMN diagram is available in index.ts.
If you want to bundle the application, run npm run build
.
bpmn-visualization
0.44.0 starts depending on es-toolkit (version 1.16.0).
The package.json file of es-toolkit declares a browser
attrbute ("./dist/browser.global.js"), so it is used by parcel as the entry point of the module. However, parcel encounters an error with this entry point.
To workaround this problem, configure an alias in the package.json to use the same entry point as defined by the module
attribute ("./dist/index.mjs").
See PR 599 for more details.
When using bpmn-visualization@0.26.1 or older, a special configuration is required. This no more needed starting from version 0.26.2 (see PR 384 for more explanations).
For old versions, configure an alias in the package.json: https://github.com/process-analytics/bpmn-visualization-examples/blob/v0.26.1/projects/typescript-vanilla-with-parcel/package.json#L18-L20