Sep 9, 2021 5:30 PM
Is it possible to add a source map to the standard HubSpot v2.js file? I believe it automatically gets included in a form module—I don't add it directly.
When I run Google Lighthouse it throws an error:
It's a bit unclear but it looks like forms/v2.js needs a source map and there is an additional file missing a souce map but the layout doesn't make it clear if the two messages relate.
I'm considering using the forms API to avoid loading v2.js but that feels like overkill.
Sep 10, 2021 8:59 AM
Hi @theAndreyK ,
You can use the link field and add the document link. The link field has many default features also. https://prnt.sc/1rov5d1
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.
Sep 10, 2021 11:35 AM
I'm developing locally so in theory I can add the a source map anywhere but the more I think about it the more it feels weird to add a source map to a file that I don't really have access to and didn't create.
I wonder if instead there's a way to mark it as third-party code?
Sep 10, 2021 10:40 AM
Sep 10, 2021 11:40 AM
Bringing in the big guns on this one for some opinions 💪
That is a silly question, when has Tim not had thoughts on something 🙃