-
Notifications
You must be signed in to change notification settings - Fork 202
Exclude module dependencies in layered builds doesn't seem to work #30
Comments
Hey Julian, I think you should Though, I have the following solution that doesn't seem to work: My My My
Though, ckeditor is still included. I tried to exclude ckeditor with Any clue? |
I created a fork up until John merges or fixes it: If you want to test it, replace the requirejs-rails line in your gemfile with: |
Thanks for you bugfix @karellm. Take a look at the example in the docs: http://requirejs.org/docs/faq-optimization.html#priority If I exclude |
Indeed it makes a lot of sense as it excludes all dependencies of the excluded module. Thanks for the info. |
I've also experienced this problem. The exclude directive doesn't seem to work for either direct dependencies or their nested dependencies. My workaround has been to force exclusion at the module level by declaring dependencies using variables, as per the example on http://requirejs.org/docs/optimization.html . |
That is a nice workaround but my fork fixes the bug in the gem directly so your code can remain clean of any hack. |
Hi all. I'm going get a fix for this into the next release, which I expect to kick out over the weekend. @karelim, thanks for pull request #31. I'll review that and pull it assuming that I have no feedback/changes. |
Not sure if this relates to #20.
I have a module
common
which is related to all pages:Each page has a separate module, f.e.
page1
:My
requirejs.yml
looks like this:If I precompile my assets, then jquery should only be included in the optimized version of
common
.Instead jquery is included in both,
common
andpage1
.I assume this is has to do with the rjs_driver and how it builds a series of individual files. A comment says something about "async builds". What exactly do you mean by that?
The text was updated successfully, but these errors were encountered: