Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadScriptsOnMainThread regex stringify bug #453

Open
azurre99 opened this issue Oct 22, 2024 · 1 comment
Open

loadScriptsOnMainThread regex stringify bug #453

azurre99 opened this issue Oct 22, 2024 · 1 comment
Labels
bug Something isn't working needs reproduction

Comments

@azurre99
Copy link

There seems to be a problem with how regex is being serialized in the partytown/src/module.ts. As showed on first picture I pass to partytown config two regular expressions, however on second picture these two regular expressions get converted to empty objects, when inspecting inside the browser.

Current workaround is to include full urls of all the scripts you want to run on the main thread, but this is not optimal, as these are scripts controlled by GTM in my case, and URLs can change, so regex would be really nice here.

Image
Image

@maige-app maige-app bot added bug Something isn't working needs reproduction labels Oct 22, 2024
@muhsin-life
Copy link

can u give a minimal reproducible example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs reproduction
Projects
None yet
Development

No branches or pull requests

2 participants