You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With directives Rails.application.assets.find_asset('main_test.js').metadata[:dependencies] doesn't include subdep.js and it is included when we call the ruby method.
I checked the sprockets source code, and it seems directives are correctly detected.
The text was updated successfully, but these errors were encountered:
I recently updated the version of Sprockets from version 3.7.2 to 4.0.2. When I have those files :
With Sprockets 3, when I edit
subdep.js
, the result rendered bymain_test.js
was updated. Since Sprockets 4, it isn't.It works as expected if I change
main_test.js.erb
to call the ruby method like this :With directives
Rails.application.assets.find_asset('main_test.js').metadata[:dependencies]
doesn't includesubdep.js
and it is included when we call the ruby method.I checked the sprockets source code, and it seems directives are correctly detected.
The text was updated successfully, but these errors were encountered: