[go: nahoru, domu]

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

misc(build): output source map when building bundles #15348

Merged
merged 2 commits into from
Aug 4, 2023
Merged

Conversation

connorjclark
Copy link
Collaborator
@connorjclark connorjclark commented Aug 4, 2023

This added less than 0.1s to the ~3s build time for devtools bundle, which made it reasonable to always produce these maps by default.

Load them up in your favorite source map visualizer (hint, it's this: https://evanw.github.io/source-map-visualization/)

yarn test-bundle will now use these maps.

// old, bad
TypeError: Cannot read properties of undefined (reading 'asdasd')
    at Runner.audit (file:///Users/cjamcl/src/lighthouse/dist/lighthouse-dt-bundle.js:259:193774)
    at navigation (file:///Users/cjamcl/src/lighthouse/dist/lighthouse-dt-bundle.js:446:13982)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runBundledLighthouse (file:///Users/cjamcl/src/lighthouse/cli/test/smokehouse/lighthouse-runners/bundle.js:87:26)
    at async file:///Users/cjamcl/src/lighthouse/cli/test/smokehouse/lighthouse-runners/bundle.js:30:22

// new, hot
TypeError: Cannot read properties of undefined (reading 'asdasd')
    at Function.audit (file:///Users/cjamcl/src/lighthouse/core/runner.js:41:39)
    at navigation (file:///Users/cjamcl/src/lighthouse/core/index.js:59:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runBundledLighthouse (file:///Users/cjamcl/src/lighthouse/cli/test/smokehouse/lighthouse-runners/bundle.js:87:26)
    at file:///Users/cjamcl/src/lighthouse/cli/test/smokehouse/lighthouse-runners/bundle.js:30:22

@connorjclark connorjclark requested a review from a team as a code owner August 4, 2023 22:24
@connorjclark connorjclark requested review from brendankenny and removed request for a team August 4, 2023 22:24
@connorjclark connorjclark merged commit 9eeb476 into main Aug 4, 2023
29 checks passed
@connorjclark connorjclark deleted the esbuild-maps branch August 4, 2023 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants