Why does JSCAD use the very old version of rollup? By runing
for pf in `find -name 'package.json' | grep -v node_modules`; do echo $pf; grep 'rollup' $pf ; done
I get the version 2.79.1. I don't have problem with old version of a software, as long as it works and I can find the document of the old version.
Let me explain the background why I need to use rollup.
I want to extend the document with embedded running examples. So I make a small static JS-file to use it in each JSDoc generated HTML-files to display example. This static JS file should import the same JS modules in the repository, show I can automatically keep it consistent with versions of JSCAD:
// filename web-render.es.js
import { cameras, commands, controls, entitiesFromSolids, prepareRender } from "@jscad/regl-renderer"
export const render = (shapes, domId) => {
// .... Do something here
}
This file is then converted into web-render.js
, which exposes the fuction render
into global scope, and can be easily used as
<script src="web-render"></script>
<!-- some where in the doc: -->
<div id="sphere-demo"></div>
<script>
render(model, "sphere-demo")
</script>
My questions:
- Why JSCAD does use the old version of rollup?
- Where can I find the old document of the used rollup version?
- If the document does not exist anymore, how much effort does it take to port the old version to the new of rollup?