Closed ayjayt closed 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.
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 insrc/
. 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
cytoscape
as here.