lib/vite_ruby/config.rb in vite_ruby-2.0.0.beta.2 vs lib/vite_ruby/config.rb in vite_ruby-2.0.0.beta.3

- old
+ new

@@ -28,15 +28,20 @@ root.join(public_dir, public_output_dir) end # Public: The directory where the entries are located. def resolved_entrypoints_dir - root.join(source_code_dir, entrypoints_dir) + vite_root_dir.join(entrypoints_dir) end # Internal: The directory where Vite stores its processing cache. def vite_cache_dir root.join('node_modules/.vite') + end + + # Public: The directory that Vite uses as root. + def vite_root_dir + root.join(source_code_dir) end # Public: Sets additional environment variables for vite-plugin-ruby. def to_env CONFIGURABLE_WITH_ENV.each_with_object({}) do |option, env|