lib/jets/builders/code_builder.rb in jets-5.0.0.beta1 vs lib/jets/builders/code_builder.rb in jets-5.0.0

- old
+ new

@@ -231,10 +231,10 @@ # return unless webpacker_loaded # Checking this way because when using jets standalone for Afterburner mode we don't want to run into # bundler gem collisions. TODO: figure out the a better way to handle the collisions. lines = IO.readlines("#{Jets.root}/Gemfile") - lines.detect { |l| l =~ /#{name}/ } + lines.detect { |l| l =~ /#{name}/ && l !~ /\s.*#/ } end # Cleans out non-cached files like code-*.zip in Jets.build_root # for a clean start. Also ensure that the /tmp/jets/project build root exists. #