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

On-jsload is required because recompiled files are not being reloaded #45

Open
Deraen opened this issue Nov 1, 2015 · 0 comments
Open

Comments

@Deraen
Copy link
Contributor

Deraen commented Nov 1, 2015

With :recompile-dependents option Cljs will recompile all files which depend on a changed namespace. This has a side-effect that when a file is changed, all files which depend on that file are rewritten by Cljs compiler. If all changed files were reloaded, the main namespace would be reloaded and probably it would automatically cause the application to be "restarted".

Boot-reload currently only reloads files which contents have changed: https://github.com/adzerk-oss/boot-reload/blob/master/src/adzerk/boot_reload.clj#L20

After removing the :hash option files will be reloaded also when only the modification time has changed. Unfortunately this will cause boot-reload to also try to reload files which shouldn't be reloade, e.g. the Cljs shim.

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

No branches or pull requests

1 participant