Just realized that ClojureScript is different from CoffeeScript because of
the macro system. If a macro changed, it may cause changes of multiple
files. So that it's hard to just detect which file changed and compiled it
alone. The only window left is to read and compare file content before
writing, if we are trying to get rid of the unnecessary change events...

On Wed, May 17, 2017 at 6:18 PM Thomas Heller <[email protected]> wrote:

>
> > * in `node_modules/` there are always tens or even thousands of folders,
> which I'm never happy to open it.
> >
>
> That is indeed scary, but you'd never need to open it. Same way you never
> look at any other node_modules folder probably.
>
> >
> > * for hot module replacement issues, sometimes we want to ignore the
> whole `node_modules/` because of the amount of the files,
> https://webpack.js.org/configuration/watch/#watchoptions-ignored . I
> don't think all of us will ignore that folder, but we might do and we
> consider code in `node_modules/` remaining the same.
> >
>
> Given that you can specify a regexp you can just use
>
> ignored: /node_modules\/(?!shadow-cljs)/
>
> where it still ignores any node_modules folder except shadow-cljs.
> Watching this folder however is currently not the best idea because I was
> lazy and didn't optimize for it yet. That means that the compiler will emit
> all files on compile, not just the files that were actually
> recompiled/changed.
>
> I will fix that eventually.
> https://github.com/thheller/shadow-cljs/issues/9
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ClojureScript" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojurescript/AGXku7Ous0Y/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to