Closed excid3 closed 9 months ago
@rafaelfranca heads up on this and https://github.com/rails/jsbundling-rails/pull/172 👍
Thanks @excid3 TIL that methods defined here are in a shared namespace with all other rake tasks. I've updated my open PRs as well. https://github.com/hotwired/turbo-rails/pull/494 and https://github.com/hotwired/stimulus-rails/pull/125.
Methods defined in Rake files are added to the global namespace. This means
cssbundling-rails
andjsbundling-rails
using the samebuild_command
method name get overridden by one or the other.This introduces a module to namespace these methods and provides a place for any future methods to be defined.
Since these only apply to the tasks in
build.rake
, I just defined the module there, but we could extract it to a file and require it instead.Fixes #131
cc @terracatta