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

chore: produce sourcemaps when building Jest #14591

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Oct 2, 2023

Summary

This will make debugging Jest itself easier. Not sure if we should include them in the tarball when publishing, but possibly? Then we could probably also minify the code

Test plan

Green CI (eventually)

@netlify
Copy link

netlify bot commented Oct 2, 2023

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit f578380
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/651be4e323a2a40008ef5515
😎 Deploy Preview https://deploy-preview-14591--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@SimenB
Copy link
Member Author

SimenB commented Oct 2, 2023

@liuxingbaoyu does something like this work for you? Before I spend more time on removing the extra frames in stacks 😅

@@ -273,11 +275,21 @@ export function createBuildConfigs() {
moduleIds: 'named',
},
output: {
devtoolModuleFilenameTemplate(info) {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is to get relative paths in the sourcemaps instead of the absolute path from the machine of the person running the build

@liuxingbaoyu
Copy link
Contributor

Amazing! It's working now, a few places where I can't set breakpoints than before, but not important.

@SimenB
Copy link
Member Author

SimenB commented Oct 3, 2023

Cool, thanks for confirming 👍

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.

None yet

2 participants