lilactown / helix

A simple, easy to use library for React development in ClojureScript.
Eclipse Public License 2.0
628 stars 52 forks source link

Use Closure syntax for helix/impl/class.js #52

Closed lilactown closed 4 years ago

lilactown commented 4 years ago

Currently, we maintain a separate branch for using helix with vanilla CLJS (e.g. figwheel, :bundle, etc.): fix-figwheel

This is due to src/helix/impl/class.js originally being written using ES Module syntax (as that worked well with shadow-cljs), and when I tried to rewrite it using Google Closure syntax it didn't immediately work with shadow-cljs.

Ideally we would align the two branches so that it's less confusing for users.

SevereOverfl0w commented 4 years ago

I was able to get this to work with both Shadow & Figwheel by:

I tested by:

SevereOverfl0w commented 4 years ago

I was able to run shadow-cljs on the fix-figwheel branch, no problem. So the current goog.provide is perhaps already OK?

Looks like the blocker was https://github.com/thheller/shadow-cljs/issues/638 which is now closed.