@debugids/browser getDebugIdForUrl polyfill for the browser. import { getDebugIdForUrl } from "debug-id/browser"; const debugId = await getDebugIdForUrl("https://example.com/main.js");