squint-cljs / cherry

Experimental ClojureScript to ES6 module compiler
https://squint-cljs.github.io/cherry
558 stars 22 forks source link

Consider linking against immutablejs #41

Closed borkdude closed 2 years ago

borkdude commented 2 years ago

Very experimental idea but worth pursuing. This will automatically fix the ES6 issues with tree-shaking.

I think we need to compile keywords just down to strings for this to work properly.

This could potentially also improve JS interop from the JS side as returned data structures would be immutable JS ones and those libs can use immutable JS too.

borkdude commented 2 years ago

Seems possible, but I consider this a tangent for now: https://twitter.com/borkdude/status/1555579657067659265

borkdude commented 2 years ago

See the.immutable-js-poc branch.