You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: vite_get_modules_by_file.rs
    path of file: ./repos/farm/crates/node/src/plugin_adapters/js_plugin_adapter/context_methods
    
    the code of the file until where you have to start completion: use std::collections::HashMap;

use farmfe_core::module::{Module, ModuleId, ModuleType};
use napi::{
  bindgen_prelude::FromNapiValue,
  sys::{napi_callback_info, napi_env, napi_value},
  Env, JsUnknown, NapiRaw,
};

use crate::plugin_adapters::js_plugin_adapter::context::{
  get_argv_and_context_from_cb_info, ArgvAndContext,
};

pub const V
    
pub fn create_vite_module(id: String, m: &Module, root: &str) -> HashMap<String, String> {
  HashMap::from([
    ("url".to_string(), id.clone()),
    ("id".to_string(), id),
    ("file".to_string(), m.id.resolved_path(root)),
    (
      "type".to_string(),
      if m.module_type == ModuleType::Css {
        "css".to_string()
      } else {
        "js".to_string()
      },
    ),
  ])
}