This demo shows how to bundle the yFiles library in a rollup project.
The yFiles modules are imported in the demo sources, so rollup will add the yFiles
Additionally, a separate worker bundle is generated by specifying it as an additional entry in the input option.
The HTML file just references the single
bundle.js file containing the
demo code as well as all library code.
Building the demo
Install the required npm packages and run the build script:
> npm install > npm run build
Running the demo
The build will place the output files in the
dist/ directory inside this
demo's directory. To run the demo, open
./dist/index.html in a browser.