Slow build due to JS minify inline true

So I tried to find out why my builds are so slow with less than 200 pages and I stumbled upon this topic.

This is the part of my config.rb file responsible for builds:

# Build-specific configuration
configure :build do
  activate :minify_javascript, :inline => true
  activate :minify_css
  activate :minify_html
  activate :asset_hash
  set :url_root, FULLDOMAIN
end

Indeed, when I removed :inline => true part, the build sped up but the JS section in the files is not being minified.

But if I add the piece as one of the comments suggests and add :inline => true:

module ::PassThrough
  def self.compress(data)
    data
  end
end

# Build-specific configuration
configure :build do
  activate :minify_javascript, compressor: ::PassThrough, :inline => true
  activate :minify_css
  activate :minify_html
  activate :asset_hash
  set :url_root, FULLDOMAIN
end

my JS is not being inline minified. How can I achieve faster builds and inline minification?