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

Log resolved targets in verbose log level #8254

Merged
merged 4 commits into from Jul 31, 2022
Merged

Log resolved targets in verbose log level #8254

merged 4 commits into from Jul 31, 2022

Conversation

devongovett
Copy link
Member

Closes #7245.

This adds debug logging for resolved targets with --log-level verbose. Eventually we could maybe have a way to opt into specific verbose messages without getting everything, but for now this is the easiest way.

image

As shown above, this logs the resolved values along with messages describing where any inferred (i.e. not explicitly defined) values came from. In addition, a code frame with messages for each field that influenced the target is shown.

@parcel-benchmark
Copy link

parcel-benchmark commented Jun 26, 2022

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 1.69s -41.00ms
Cached 389.00ms +7.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/index.2c76ad23.js 1.66kb +0.00b 470.00ms -28.00ms 🚀
dist/legacy/index.8aaa89c9.js 1.20kb +0.00b 470.00ms -28.00ms 🚀
dist/modern/index.6be20f01.js 1.13kb +0.00b 469.00ms -29.00ms 🚀

React HackerNews ✅

Timings

Description Time Difference
Cold 10.56s -16.00ms
Cached 532.00ms +3.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/logo.c5bb83f1.png 246.00b +0.00b 4.53s -634.00ms 🚀

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 1.85m -1.07s
Cached 2.87s +14.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/esm.c7dc1640.js 61.96kb +0.00b 1.33m +34.79s ⚠️
dist/workerHasher.e50d242f.js 1.72kb +0.00b 1.33m +34.79s ⚠️
dist/16.1969624f.js 1.08kb +0.00b 43.93s +3.74s ⚠️
dist/16.069344b7.js 905.00b +0.00b 43.93s +3.74s ⚠️
dist/simpleHasher.46d6f2e5.js 742.00b +0.00b 1.33m +34.79s ⚠️
dist/index.html 240.00b +0.00b 1.33m +43.87s ⚠️

Cached Bundles

Bundle Size Difference Time Difference
dist/esm.c7dc1640.js 61.96kb +0.00b 44.12s -35.56s 🚀
dist/workerHasher.e50d242f.js 1.72kb +0.00b 44.12s -35.56s 🚀
dist/16.1969624f.js 1.08kb +0.00b 39.62s -4.07s 🚀
dist/16.069344b7.js 905.00b +0.00b 39.62s -4.07s 🚀
dist/simpleHasher.46d6f2e5.js 742.00b +0.00b 44.12s -35.56s 🚀
dist/index.html 240.00b +0.00b 34.96s -44.77s 🚀

Three.js ✅

Timings

Description Time Difference
Cold 7.58s -38.00ms
Cached 328.00ms -29.00ms 🚀

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

Click here to view a detailed benchmark overview.

@devongovett devongovett merged commit fe6158e into v2 Jul 31, 2022
@devongovett devongovett deleted the target-debug branch July 31, 2022 16:07
@fregante
Copy link
Contributor

This looks awesome

gorakong pushed a commit that referenced this pull request Nov 3, 2022
* upstream/v2: (22 commits)
  Cross compile toolchains are built into docker image already
  Also fix release build
  Update centos node version
  v2.7.0
  Changelog for v2.7.0
  Use placeholder expression when replacing unused symbols (#8358)
  Lint (#8359)
  Add support for errorRecovery option in @parcel/transformer-css (#8352)
  VS Code Extension for Parcel (#8139)
  Add multi module compilation for elm (#8076)
  Bump terser from 5.7.2 to 5.14.2 (#8322)
  Bump node-forge from 1.2.1 to 1.3.0 (#8271)
  allow cjs config files on type module projects (#8253)
  inject script for hmr when there is only normal script in html (#8330)
  feat: support react refresh for @emotion/react (#8205)
  Update index.d.ts (#8293)
  remove charset from jsloader script set (#8346)
  Log resolved targets in verbose log level (#8254)
  Fix missing module in large app from Experimental Bundler (#8303)
  [Symbol Propagation] Non-deterministic bundle hashes (#8212)
  ...
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.

Debugging target detection
3 participants