Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UMD support with Clojurescript 1.7.132 #96

Closed
thosmos opened this issue Sep 8, 2015 · 2 comments
Closed

UMD support with Clojurescript 1.7.132 #96

thosmos opened this issue Sep 8, 2015 · 2 comments

Comments

@thosmos
Copy link
Contributor

thosmos commented Sep 8, 2015

I just compiled Clojurescript 1.7.132 from source, which has support for Closure's new UMD module loading (see this page for context: http://mneise.github.io/posts/2015-07-08-week-6.html).

When I use boot-cljs 1.7.48-3 and with the following task config in build.boot:

    (cljs  :source-map true
          :optimizations :none
          :compiler-options {
            :warnings {:single-segment-namespace false}
            :foreign-libs [
                    {:file "resources/js/d3.js"
                      :provides ["d3"]
                      :module-type :commonjs}
            ]
          }
      )

It works! (this was originally an error, but it was just a build.boot config error).

@thosmos
Copy link
Contributor Author

thosmos commented Sep 8, 2015

Here's a simple project that describes it: https://github.com/thos37/cljs-d3-umd

@thosmos thosmos closed this as completed Sep 8, 2015
@alandipert
Copy link
Contributor

Nice, thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants