Skip to content

Commit

Permalink
Improve warning message re: check_yarn_integrity (#2715)
Browse files Browse the repository at this point in the history
- "obsolete" is more accurate than "deprecated"
- linking to PR is helpful so users can review the exact code changes
  • Loading branch information
jaredbeck authored Aug 31, 2020
1 parent 950979a commit f6549f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/webpacker/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ def extensions
end

def check_yarn_integrity=(value)
warn "Webpacker::Configuration#check_yarn_integrity=(value) has been deprecated. The integrity check has been removed from Webpacker so changing this setting will have no effect."
warn <<~EOS
Webpacker::Configuration#check_yarn_integrity=(value) is obsolete. The integrity
check has been removed from Webpacker (https://github.com/rails/webpacker/pull/2518)
so changing this setting will have no effect.
EOS
end

def webpack_compile_output?
Expand Down

0 comments on commit f6549f5

Please sign in to comment.