Skip to content

Commit

Permalink
test(webpack): validate that bv-addons can be used without error
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouffard committed Sep 23, 2024
1 parent a78a04a commit 3fbc650
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions projects/javascript-vanilla-with-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"serve": "webpack serve"
},
"dependencies": {
"@process-analytics/bv-experimental-add-ons": "0.7.0",
"bpmn-visualization": "0.44.0"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions projects/javascript-vanilla-with-webpack/src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { BpmnVisualization, FitType, getVersion } from 'bpmn-visualization';
import { ShapeUtil } from '@process-analytics/bv-experimental-add-ons';
// this is simple example of the BPMN diagram, loaded as string. Load support provided by Webpack.
// for other load methods, see https://github.com/process-analytics/bpmn-visualization-examples
import diagram from './diagram.bpmn';

// TMP to validate that the bv-addons dependency does not break the build
console.info('bv-addons ShapeUtil', ShapeUtil.isBpmnArtifact('kind'))

// instantiate the BpmnVisualization, pass the container HTMLElement - present in index.html
const bpmnVisualization = new BpmnVisualization({ container: 'bpmn-container' });

Expand Down

0 comments on commit 3fbc650

Please sign in to comment.