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

fix: Exclude modulepreload as well #52

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Feb 13, 2023

We were only excluding <link rel="preload" as="script" /> but we should include rel="modulepreload" as well

We were only excluding `<link rel="preload" as="script" />` but we should include `rel="modulepreload"` as well
Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Two comments:

  1. I guess we can/should also PR this upstream?
  2. Does it make sense to extract this into a util to be re-used (e.g. isPreloadLink or something like this)

@billyvg
Copy link
Member Author

billyvg commented Feb 15, 2023

It's already merged :) rrweb-io#1128

@billyvg
Copy link
Member Author

billyvg commented Feb 15, 2023

Re: util function - I wanted to keep upstream PR small so opted to keep them inline

@billyvg billyvg merged commit 5b4631b into sentry-v1 Feb 15, 2023
@billyvg billyvg deleted the fix-exclude-modulepreload-link branch February 15, 2023 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants