requiresPathFriendlyProxy static method
Returns true when the HTML payload appears to rely on module/import-map
loading semantics where query-style proxy URLs can break relative imports.
Implementation
static bool requiresPathFriendlyProxy(String html) {
if (html.isEmpty) return false;
return _moduleScriptTag.hasMatch(html) || _importMapTag.hasMatch(html);
}