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: ensure that each js file served up by vite dev server has an inline sourcemap #30606

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Nov 12, 2024

Additional details

We have a custom vite dev server plugin that transforms JS files to include inlined source maps but there were two scenarios that were missed with this plugin:

  • files that include a cache busting query parameter (e.g. ?v=12345)
  • files that include a sourcemap but one that is not inline

This PR resolves both of these scenarios.

Steps to test

How has the user experience changed?

PR Tasks

Copy link

cypress bot commented Nov 12, 2024

cypress    Run #58405

Run Properties:  status check passed Passed #58405  •  git commit 46206bf448: Merge branch 'develop' into ryanm/fix/ensure-that-each-served-js-file-in-vite-de...
Project cypress
Branch Review ryanm/fix/ensure-that-each-served-js-file-in-vite-dev-server-has-a-sourcemap
Run status status check passed Passed #58405
Run duration 17m 41s
Commit git commit 46206bf448: Merge branch 'develop' into ryanm/fix/ensure-that-each-served-js-file-in-vite-de...
Committer Ryan Manuel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 77
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 5588
View all changes introduced in this branch ↗︎

Warning

No Report: Something went wrong and we could not generate a report for the Application Quality products.

Copy link
Contributor

@AtofStryker AtofStryker left a comment

Choose a reason for hiding this comment

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

does this fix the code frame issue we were seeing with vite and component testing?

@ryanthemanuel
Copy link
Collaborator Author

does this fix the code frame issue we were seeing with vite and component testing?

Unfortunately, no that is more complicated to resolve however this will get us where we need to get to in order to properly have sourcemaps available in the protocol space.

@AtofStryker AtofStryker self-requested a review November 13, 2024 16:21
@ryanthemanuel ryanthemanuel merged commit 4bf8e58 into develop Nov 14, 2024
84 of 85 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/fix/ensure-that-each-served-js-file-in-vite-dev-server-has-a-sourcemap branch November 14, 2024 17:55
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 19, 2024

Released in 13.16.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.16.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Nov 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants