lib/vite_ruby/config.rb in vite_ruby-3.0.0.beta.2 vs lib/vite_ruby/config.rb in vite_ruby-3.0.0.beta.3
- old
+ new
@@ -145,11 +145,11 @@
def config_from_file(path, mode:)
multi_env_config = load_json(path)
multi_env_config.fetch('all', {})
.merge(multi_env_config.fetch(mode, {}))
rescue Errno::ENOENT => error
- warn "Check that your vite.json configuration file is available in the load path:\n\n\t#{ error.message }\n\n"
+ $stderr << "Check that your vite.json configuration file is available in the load path:\n\n\t#{ error.message }\n\n"
{}
end
end
# Internal: Shared configuration with the Vite plugin for Ruby.
@@ -157,10 +157,10 @@
# Internal: Configuration options that can not be provided as env vars.
NOT_CONFIGURABLE_WITH_ENV = %w[additional_entrypoints watch_additional_paths].freeze
# Internal: Configuration options that can be provided as env vars.
- CONFIGURABLE_WITH_ENV = (DEFAULT_CONFIG.keys + %w[mode root skip_compatibility_check] - NOT_CONFIGURABLE_WITH_ENV).freeze
+ CONFIGURABLE_WITH_ENV = (DEFAULT_CONFIG.keys + %w[mode root] - NOT_CONFIGURABLE_WITH_ENV).freeze
# Internal: If any of these files is modified the build won't be skipped.
DEFAULT_WATCHED_PATHS = %w[
package-lock.json
package.json