Rollup.js Demo – yFiles for HTML
This demo shows how to bundle the yFiles for HTML library in a rollup project.
The yFiles for HTML library is imported in the demo sources, so Rollup will add yFiles
to bundle.js.
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