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

FidesJS sourcemaps working correctly #5222

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

gilluminate
Copy link
Contributor

@gilluminate gilluminate commented Aug 21, 2024

Sourcemaps for fides.js and fides-tcf.js are now functional with this change. GPP doesn't work, but since nothing worked before, this is a huge improvement.

Clicking from console logs etc. will take you to the correct source in the browser. Setting breakpoints is now possible.

Code Changes

  • Removes sourcemaps for GPP extension (conflicted with fides.js sourcemap)
  • Moves fides.js output to first line to maintain line numbering with source maps

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Update CHANGELOG.md

Copy link

vercel bot commented Aug 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Aug 21, 2024 2:11am

clients/privacy-center/pages/api/fides-js.ts Dismissed Show dismissed Hide dismissed
Copy link

cypress bot commented Aug 21, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit e479c90 ℹ️
Started Aug 21, 2024 2:23 AM
Ended Aug 21, 2024 2:24 AM
Duration 00:34 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

customFidesCss
? `
// Include custom fides.css styles
// keep fidesJS on the first line to avoid sourcemap issues!
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

Copy link
Contributor

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

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

Manually tested and confirmed source maps and breakpoints are working great! Thanks for this huge improvement to dev workflow @gilluminate !

@gilluminate gilluminate merged commit 23a8fbd into main Aug 22, 2024
13 checks passed
@gilluminate gilluminate deleted the FidesJS-sourcemaps-working-correctly branch August 22, 2024 16:11
Copy link

cypress bot commented Aug 22, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit 23a8fbd
Started Aug 22, 2024 4:24 PM
Ended Aug 22, 2024 4:24 PM
Duration 00:38 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

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