# frozen_string_literal: true

module Pomegranate
  def config
    @config ||= config_yaml.with_indifferent_access
  end

  private

    def config_yaml
      YAML.load(ERB.new(File.read("#{Rails.root}/config/config.yml")).result)[Rails.env]
    end

    module_function :config, :config_yaml
end

Sprockets::ES6.configuration = { 'modules' => 'amd', 'moduleIds' => true }
