UNPKG

webpack-plugin-modify-entrypoints

Version:
7 lines (6 loc) 250 B
import { createHash } from 'node:crypto'; export function makeIdent(options) { return createHash('md5') .update(JSON.stringify(options, (_, value) => (typeof value === 'function' ? value.toString() : value), 0)) .digest('hex'); }