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

Support CLJS namespace aliasing #1481

Closed
danielcompton opened this issue Jul 30, 2016 · 3 comments
Closed

Support CLJS namespace aliasing #1481

danielcompton opened this issue Jul 30, 2016 · 3 comments
Labels
released Marks issues which have had the fixes released in a stable build
Milestone

Comments

@danielcompton
Copy link
Collaborator

danielcompton commented Jul 30, 2016

A new feature of CLJS (unreleased at time of writing) lets you write clojure.test and have the CLJS compiler fall back to cljs.test if it can't find a ClojureScript/CLJC file called clojure.test: http://blog.fikesfarm.com/posts/2016-07-03-clojurescript-clojure-namespace-aliasing.html

This means that a CLJC namespace requiring [clojure.test :as t] should resolve valid in CLJS mode and CLJ mode.

@mtruyens
Copy link

This is now official in Clojurescript 1.9.198: https://groups.google.com/forum/#!topic/clojure/-uG5kDcSEIs

@cursive-ide
Copy link
Owner

Yes, I'm going to get this into a 1.4.0 EAP release soon.

@cursive-ide
Copy link
Owner

Sadly, I've had to bump this to the next EAP build due to the subtleties involved.

@cursive-ide cursive-ide added the released Marks issues which have had the fixes released in a stable build label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Marks issues which have had the fixes released in a stable build
Projects
None yet
Development

No branches or pull requests

3 participants