Eleventy Utils v2.0.2
Adds new createHash
async function to generate base64 hashes from string content (used in Bundle and Image plugins), compatible with WebCrypto (Node 19+) and falls back to use node:crypto
in other cases.
import { createHash } from "@11ty/eleventy-utils";
const base64hash = await createHash("This is an arbitrary string.");
Full Changelog: v2.0.1...v2.0.2