UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

17 lines (16 loc) 400 B
import { hash } from "ohash"; export function filterIslandProps(props) { if (!props) { return {}; } const out = {}; for (const key in props) { if (!key.startsWith("data-v-")) { out[key] = props[key]; } } return out; } export function computeIslandHash(name, filteredProps, context, source) { return hash([name, filteredProps, context, source]).replace(/[-_]/g, ""); }