lib/jets/builders/code_builder.rb in jets-5.0.3 vs lib/jets/builders/code_builder.rb in jets-5.0.4
- old
+ new
@@ -277,9 +277,10 @@
# Bit hacky but this saves the user from accidentally forgetting to change this
# when they deploy a jets project in development mode
def reconfigure_development_webpacker
return unless Jets.env.development?
+ return unless gemfile_include?("jetpacker")
headline "Reconfiguring webpacker development settings for AWS Lambda."
webpacker_yml = "#{"#{stage_area}/code"}/config/webpacker.yml"
return unless File.exist?(webpacker_yml)