rolldown_plugin_utils 1.0.0

Shared utilities for Rolldown plugins
Documentation
1
2
3
4
5
6
7
use rolldown_utils::xxhash::xxhash_with_base;

pub fn get_hash(input: &str) -> String {
  let mut hash = xxhash_with_base(input.as_bytes(), 16);
  hash.truncate(8);
  hash
}