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

only reload Clojure source files that define macros (fixes gh-210) #211

Merged
merged 1 commit into from
Aug 30, 2013

Conversation

cemerick
Copy link
Collaborator

reload-clojure only needs to touch Clojure source files that contain macros (any others cannot affect ClojureScript compilation). Using this heuristic makes it easy for those attempting to provide portable Clojure[Script] APIs to avoid the problem noted in gh-210 by always putting their macros in a separate file/namespace (which is a given when manually crafting a ClojureScript library, but isn't necessarily so when using a tool like cljx or lein-dalap to selectively emit Clojure or ClojureScript code depending on the "target").

@emezeske
Copy link
Owner

Thanks, Chas! I'll make sure this goes out in the next release.

@cemerick
Copy link
Collaborator Author

Great, thanks! :-D In the meantime, for anyone following along, there's a build of master + the above patch here: [org.clojars.cemerick/lein-cljsbuild "0.3.2.1"].

cemerick added a commit that referenced this pull request Aug 30, 2013
only reload Clojure source files that define macros (fixes gh-210)
@cemerick cemerick merged commit f86627c into emezeske:master Aug 30, 2013
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

Successfully merging this pull request may close these issues.

2 participants