cytoscape / cytoscape.js-dagre

The Dagre layout for DAGs and trees for Cytoscape.js
MIT License
253 stars 82 forks source link

Port cytoscape.js-dagre to ESM #121

Closed ayjayt closed 9 months ago

ayjayt commented 10 months ago

So, I did this.

It's a bit different for your strategy for cytoscape:

1) I hand converted the cjs to esm, and put it in mjs-src.. 2) I use babel to convert the esm back to cjs in src/. 3) I make sure the transpiled cjs works the same as it used to in everyway- tests, webpack, demos, etc. 4) I also converted all the deps to esm by hand.

I had never used rollup before (it seems a better strategy for native cjs repos, I also like that it's procedural and not entirely configuration based).

5) I installed rollup, and just use it to output a bundled version of of min/normal .esm.js, but the source code is still there in esm format.

TODO

stale[bot] commented 9 months ago

This issue has been automatically marked as stale, because it has not had activity within the past 14 days. It will be closed if no further activity occurs within the next 7 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.