lib/vite_ruby.rb in vite_ruby-3.2.0 vs lib/vite_ruby.rb in vite_ruby-3.2.1
- old
+ new
@@ -13,12 +13,10 @@
loader.inflector.inflect('cli' => 'CLI')
loader.inflector.inflect('ssr' => 'SSR')
loader.inflector.inflect('io' => 'IO')
loader.setup
-require 'vite_ruby/version'
-
class ViteRuby
# Internal: Prefix used for environment variables that modify the configuration.
ENV_PREFIX = 'VITE_RUBY'
# Internal: Companion libraries for Vite Ruby, and their target framework.
@@ -140,5 +138,7 @@
# Public: Enables looking up assets managed by Vite using name and type.
def manifest
@manifest ||= ViteRuby::Manifest.new(self)
end
end
+
+require 'vite_ruby/version'