lib/sprockets-iife.rb in sprockets-iife-1.0.2 vs lib/sprockets-iife.rb in sprockets-iife-1.1.0
- old
+ new
@@ -1,13 +1,7 @@
# encoding: utf-8
# frozen_string_literal: true
require 'sprockets'
-
-Sprockets::VERSION =~ /\A\d/
-if $&.to_i > 2
- require 'sprockets-iife/processor'
-else
- require 'sprockets-iife/legacy-processor'
-end
-
+require 'sprockets-iife/wrap'
+require 'sprockets-iife/processor'
require 'sprockets-iife/railtie' if defined?(Rails)