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

HMRRuntime is removed in common async bundle #4094

Draft
wants to merge 2 commits into
base: v2
Choose a base branch
from

Conversation

mischnic
Copy link
Member

@mischnic mischnic commented Feb 7, 2020

↪️ Pull Request

Not sure how to differentiate the two situations described below (a/b vs c).

Closes #4063

💻 Examples

Bildschirmfoto 2020-02-07 um 13 41 46
The JSPackager removes the last entry of an async bundle. This is correct for a and b, but c doesn't have a "user" entry, and so the HMR runtime is removed, making module.hot undefined in c.

It would make sense if bundle.getMainEntry() would be null for C...

TODO

  • Removing that line should really have broken some test...

@parcel-benchmark
Copy link

parcel-benchmark commented Feb 7, 2020

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 6.09s +224.00ms
Cached 2.14s -7.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.d5807e82.webp 102.94kb +0.00b 233.00ms +86.00ms ⚠️
dist/modern/parcel.d5807e82.webp 102.94kb +0.00b 233.00ms +87.00ms ⚠️
dist/legacy/kitchen-sink.32bb4226.js 1.13kb +0.00b 1.55s +108.00ms ⚠️
dist/modern/kitchen-sink.280a0cce.js 1.13kb +0.00b 1.55s +948.00ms ⚠️
dist/legacy/index.html 709.00b +0.00b 603.00ms -85.00ms 🚀
dist/modern/index.html 709.00b +0.00b 598.00ms -86.00ms 🚀
dist/legacy/styles.afb8e31a.css 78.00b +0.00b 1.55s +108.00ms ⚠️
dist/modern/styles.cda8c91b.css 78.00b +0.00b 1.31s -130.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.d5807e82.webp 102.94kb +0.00b 275.00ms +27.00ms ⚠️
dist/modern/parcel.d5807e82.webp 102.94kb +0.00b 273.00ms +24.00ms ⚠️

React HackerNews ✅

Timings

Description Time Difference
Cold 7.54s -224.00ms
Cached 1.99s -70.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/main/index.js 66.80kb +0.00b 262.00ms +43.00ms ⚠️
dist/module/index.js 37.45kb +0.00b 251.00ms +36.00ms ⚠️

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 2.81m +10.01s ⚠️
Cached 4.61s +191.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/ak-editor.570ebf5f.js 2.49mb +4.00b ⚠️ 1.63m +6.51s ⚠️
dist/pdfRenderer.7bec20fe.js 1.13mb +0.00b 1.26m +8.59s ⚠️
dist/editorView.b8479877.js 587.00kb +0.00b 1.65m +9.24s ⚠️
dist/popup.c9b6c2f0.js 218.06kb +0.00b 48.30s -18.75s 🚀
dist/esm.672cd889.js 138.03kb +0.00b 23.37s +1.19s ⚠️
dist/Toolbar.8b3d4b31.js 100.43kb +0.00b 1.65m +6.64s ⚠️
dist/EmojiPickerComponent.487f0492.js 98.73kb +0.00b 23.37s +5.56s ⚠️
dist/media-viewer.30301157.js 71.17kb +0.00b 29.89s +2.03s ⚠️
dist/card.2f962421.js 67.80kb +0.00b 29.82s +1.96s ⚠️
dist/component.f5912f8e.js 55.59kb +0.00b 8.96s +2.63s ⚠️
dist/ui.110f06be.js 55.45kb +0.00b 29.82s +3.90s ⚠️
dist/smartMediaEditor.4220f1bb.js 55.42kb +0.00b 1.28m +9.18s ⚠️
dist/Modal.35bf8196.js 44.28kb +0.00b 4.52s +592.00ms ⚠️
dist/component.57556120.js 28.96kb +0.00b 10.54s +3.97s ⚠️
dist/png-chunks-extract.883f0434.js 25.63kb +0.00b 8.72s +2.17s ⚠️
dist/EmojiPickerComponent.3437cc21.js 22.43kb +0.00b 23.75s +1.57s ⚠️
dist/dropzone.68e03498.js 17.75kb +0.00b 44.30s +2.57s ⚠️
dist/clipboard.7fb7335e.js 17.21kb +0.00b 1.27m +31.90s ⚠️
dist/js.786dad09.js 16.49kb +0.00b 8.69s +4.77s ⚠️
dist/browser.4d8e9d5b.js 16.08kb +0.00b 1.27m +8.99s ⚠️
dist/16.fb3dbc8b.js 10.08kb +0.00b 4.51s +637.00ms ⚠️
dist/16.97fc5546.js 9.97kb +0.00b 4.51s +594.00ms ⚠️
dist/16.73638eb8.js 9.91kb +0.00b 4.51s +636.00ms ⚠️
dist/16.2eecf255.js 9.86kb +0.00b 4.51s -2.01s 🚀
dist/EmojiTypeAheadComponent.a96819ac.js 9.31kb +0.00b 27.35s +1.44s ⚠️
dist/date.1c037d1c.js 9.04kb +0.00b 11.23s +1.81s ⚠️
dist/images.92799093.js 8.98kb +0.00b 12.34s +2.67s ⚠️
dist/fallback.8bdaa9f9.js 8.97kb +0.00b 14.88s +3.14s ⚠️
dist/list-number.1316e9f7.js 8.77kb +0.00b 12.34s +1.75s ⚠️
dist/status.97878d50.js 8.77kb +0.00b 53.32s +41.58s ⚠️
dist/code.6b50d9e2.js 8.69kb +0.00b 11.19s +3.38s ⚠️
dist/link.c9af7470.js 8.61kb +0.00b 12.34s +1.75s ⚠️
dist/heading3.bcae1464.js 8.60kb +0.00b 14.89s +1.25s ⚠️
dist/emoji.8c2bc3de.js 8.54kb +0.00b 13.69s +4.03s ⚠️
dist/heading5.6844d092.js 8.48kb +0.00b 16.00s +2.36s ⚠️
dist/heading2.a19338b9.js 8.42kb +0.00b 14.88s +1.23s ⚠️
dist/mention.a261500a.js 8.38kb +0.00b 51.85s +41.26s ⚠️
dist/heading4.02eb6187.js 8.37kb +0.00b 53.46s +39.82s ⚠️
dist/layout.524db8d2.js 8.36kb +0.00b 12.34s +1.75s ⚠️
dist/divider.acfaa3b9.js 8.33kb +0.00b 13.07s +3.62s ⚠️
dist/quote.55197fd6.js 8.33kb +0.00b 53.32s +41.58s ⚠️
dist/action.536bde1c.js 8.31kb +0.00b 11.19s +3.38s ⚠️
dist/decision.5cdc67b3.js 8.29kb +0.00b 12.98s +3.56s ⚠️
dist/panel-warning.cb245541.js 8.29kb +0.00b 13.61s -36.01s 🚀
dist/list.624b775a.js 8.26kb +0.00b 12.37s +1.78s ⚠️
dist/heading1.ef0290b4.js 8.26kb +0.00b 14.86s +1.21s ⚠️
dist/panel-error.8bc896be.js 8.19kb +0.00b 13.61s -36.01s 🚀
dist/panel.6acb9fb3.js 8.18kb +0.00b 13.65s +1.91s ⚠️
dist/table.500adb35.js 8.18kb +0.00b 14.86s +3.12s ⚠️
dist/panel-success.7636d22e.js 8.13kb +0.00b 13.61s -36.01s 🚀
dist/panel-note.2eea2289.js 8.13kb +0.00b 13.61s -36.01s 🚀
dist/16.c4ee6c00.js 5.17kb +0.00b 10.94s +4.85s ⚠️
dist/16.7f86346a.js 4.89kb +0.00b 9.30s +2.51s ⚠️
dist/16.263c7d86.js 4.84kb +0.00b 8.77s +2.71s ⚠️
dist/16.5f13de00.js 4.84kb +0.00b 9.30s +2.52s ⚠️
dist/16.51c4a0ba.js 4.82kb +0.00b 11.19s +3.56s ⚠️
dist/16.61fcf150.js 4.78kb +0.00b 10.03s +2.40s ⚠️
dist/16.232fb9da.js 4.69kb +0.00b 11.19s +3.54s ⚠️
dist/16.60895c0e.js 4.65kb +0.00b 11.53s +4.59s ⚠️
dist/16.a6594cea.js 4.64kb +0.00b 9.30s +3.21s ⚠️
dist/16.8a21dead.js 4.64kb +0.00b 9.30s +2.52s ⚠️
dist/16.ba7ed30e.js 4.64kb +0.00b 9.32s +2.39s ⚠️
dist/16.ea6e7d4b.js 4.63kb +0.00b 8.71s +2.65s ⚠️
dist/ak-editor.47799eae.css 3.43kb +0.00b 5.81s -1.45m 🚀
dist/EmojiUploadComponent.b1f515dc.js 2.53kb +0.00b 27.34s +4.50s ⚠️
dist/ResourcedEmojiComponent.4495d16e.js 2.32kb +0.00b 10.49s +3.97s ⚠️
dist/media-picker-analytics-error-boundary.a8ed833d.js 1.69kb +0.00b 47.67s +5.59s ⚠️
dist/media-card-analytics-error-boundary.1e65f6fd.js 1.68kb +0.00b 44.28s +16.06s ⚠️
dist/media-viewer-analytics-error-boundary.62b79dc4.js 1.59kb +0.00b 30.22s +2.05s ⚠️
dist/simpleHasher.3db92b55.js 642.00b +0.00b 21.77s +1.75s ⚠️
dist/index.html 212.00b +0.00b 9.01s +8.09s ⚠️

Cached Bundles

Bundle Size Difference Time Difference
dist/ak-editor.570ebf5f.js 2.49mb +0.00b 515.00ms -81.00ms 🚀
dist/pdfRenderer.7bec20fe.js 1.13mb +0.00b 513.00ms -81.00ms 🚀
dist/editorView.b8479877.js 587.00kb +0.00b 513.00ms -81.00ms 🚀
dist/popup.c9b6c2f0.js 218.06kb +0.00b 513.00ms -81.00ms 🚀
dist/esm.672cd889.js 138.03kb +0.00b 514.00ms -80.00ms 🚀
dist/Toolbar.8b3d4b31.js 100.43kb +0.00b 513.00ms -81.00ms 🚀
dist/EmojiPickerComponent.487f0492.js 98.73kb +0.00b 514.00ms -80.00ms 🚀
dist/media-viewer.30301157.js 71.17kb +0.00b 513.00ms -81.00ms 🚀
dist/card.2f962421.js 67.80kb +0.00b 513.00ms -81.00ms 🚀
dist/component.f5912f8e.js 55.59kb +0.00b 515.00ms -81.00ms 🚀
dist/ui.110f06be.js 55.45kb +0.00b 513.00ms -81.00ms 🚀
dist/smartMediaEditor.4220f1bb.js 55.42kb +0.00b 513.00ms -81.00ms 🚀
dist/Modal.35bf8196.js 44.28kb +0.00b 514.00ms -82.00ms 🚀
dist/component.57556120.js 28.96kb +0.00b 515.00ms -81.00ms 🚀
dist/png-chunks-extract.883f0434.js 25.63kb +0.00b 514.00ms -82.00ms 🚀
dist/EmojiPickerComponent.3437cc21.js 22.43kb +0.00b 513.00ms -81.00ms 🚀
dist/DatePicker.1dd284a0.js 21.61kb +0.00b 514.00ms -80.00ms 🚀
dist/dropzone.68e03498.js 17.75kb +0.00b 513.00ms -81.00ms 🚀
dist/clipboard.7fb7335e.js 17.21kb +0.00b 513.00ms -81.00ms 🚀
dist/js.786dad09.js 16.49kb +0.00b 514.00ms -82.00ms 🚀
dist/browser.4d8e9d5b.js 16.08kb +0.00b 513.00ms -81.00ms 🚀
dist/workerHasher.8c8d4944.js 11.69kb +0.00b 513.00ms -81.00ms 🚀
dist/16.fb3dbc8b.js 10.08kb +0.00b 514.00ms -82.00ms 🚀
dist/16.97fc5546.js 9.97kb +0.00b 515.00ms -81.00ms 🚀
dist/16.73638eb8.js 9.91kb +0.00b 515.00ms -81.00ms 🚀
dist/16.2eecf255.js 9.86kb +0.00b 515.00ms -81.00ms 🚀
dist/EmojiTypeAheadComponent.a96819ac.js 9.31kb +0.00b 513.00ms -81.00ms 🚀
dist/date.1c037d1c.js 9.04kb +0.00b 514.00ms -80.00ms 🚀
dist/images.92799093.js 8.98kb +0.00b 514.00ms -80.00ms 🚀
dist/fallback.8bdaa9f9.js 8.97kb +0.00b 514.00ms -80.00ms 🚀
dist/feedback.bffa274a.js 8.95kb +0.00b 514.00ms -80.00ms 🚀
dist/list-number.1316e9f7.js 8.77kb +0.00b 514.00ms -81.00ms 🚀
dist/status.97878d50.js 8.77kb +0.00b 514.00ms -80.00ms 🚀
dist/code.6b50d9e2.js 8.69kb +0.00b 514.00ms -80.00ms 🚀
dist/link.c9af7470.js 8.61kb +0.00b 514.00ms -80.00ms 🚀
dist/heading6.6daffbba.js 8.61kb +0.00b 514.00ms -80.00ms 🚀
dist/heading3.bcae1464.js 8.60kb +0.00b 514.00ms -80.00ms 🚀
dist/emoji.8c2bc3de.js 8.54kb +0.00b 514.00ms -80.00ms 🚀
dist/heading5.6844d092.js 8.48kb +0.00b 514.00ms -80.00ms 🚀
dist/expand.1a4c120f.js 8.46kb +0.00b 514.00ms -80.00ms 🚀
dist/heading2.a19338b9.js 8.42kb +0.00b 514.00ms -79.00ms 🚀
dist/mention.a261500a.js 8.38kb +0.00b 514.00ms -81.00ms 🚀
dist/heading4.02eb6187.js 8.37kb +0.00b 514.00ms -80.00ms 🚀
dist/layout.524db8d2.js 8.36kb +0.00b 514.00ms -80.00ms 🚀
dist/divider.acfaa3b9.js 8.33kb +0.00b 514.00ms -80.00ms 🚀
dist/quote.55197fd6.js 8.33kb +0.00b 514.00ms -80.00ms 🚀
dist/action.536bde1c.js 8.31kb +0.00b 515.00ms -80.00ms 🚀
dist/decision.5cdc67b3.js 8.29kb +0.00b 514.00ms -80.00ms 🚀
dist/panel-warning.cb245541.js 8.29kb +0.00b 514.00ms -80.00ms 🚀
dist/list.624b775a.js 8.26kb +0.00b 514.00ms -81.00ms 🚀
dist/heading1.ef0290b4.js 8.26kb +0.00b 514.00ms -80.00ms 🚀
dist/panel-error.8bc896be.js 8.19kb +0.00b 514.00ms -80.00ms 🚀
dist/panel.6acb9fb3.js 8.18kb +0.00b 514.00ms -80.00ms 🚀
dist/table.500adb35.js 8.18kb +0.00b 514.00ms -80.00ms 🚀
dist/panel-success.7636d22e.js 8.13kb +0.00b 514.00ms -80.00ms 🚀
dist/panel-note.2eea2289.js 8.13kb +0.00b 514.00ms -80.00ms 🚀
dist/16.073347bf.js 5.24kb +0.00b 515.00ms -80.00ms 🚀
dist/16.c4ee6c00.js 5.17kb +0.00b 515.00ms -81.00ms 🚀
dist/16.7f86346a.js 4.89kb +0.00b 515.00ms -80.00ms 🚀
dist/16.263c7d86.js 4.84kb +0.00b 515.00ms -81.00ms 🚀
dist/16.5f13de00.js 4.84kb +0.00b 515.00ms -80.00ms 🚀
dist/16.51c4a0ba.js 4.82kb +0.00b 515.00ms -80.00ms 🚀
dist/16.61fcf150.js 4.78kb +0.00b 515.00ms -80.00ms 🚀
dist/16.7b85ceeb.js 4.73kb +0.00b 515.00ms -80.00ms 🚀
dist/16.ba932c2e.js 4.70kb +0.00b 515.00ms -80.00ms 🚀
dist/16.232fb9da.js 4.69kb +0.00b 515.00ms -80.00ms 🚀
dist/16.60895c0e.js 4.65kb +0.00b 515.00ms -80.00ms 🚀
dist/16.a6594cea.js 4.64kb +0.00b 515.00ms -80.00ms 🚀
dist/16.8a21dead.js 4.64kb +0.00b 515.00ms -80.00ms 🚀
dist/16.ba7ed30e.js 4.64kb +0.00b 515.00ms -80.00ms 🚀
dist/16.ea6e7d4b.js 4.63kb +0.00b 515.00ms -81.00ms 🚀
dist/16.ba0c7d86.js 4.56kb +0.00b 515.00ms -80.00ms 🚀
dist/EmojiPickerComponent.29136bfe.js 3.78kb +0.00b 513.00ms -81.00ms 🚀
dist/ak-editor.47799eae.css 3.43kb +0.00b 513.00ms -81.00ms 🚀
dist/EmojiUploadComponent.b1f515dc.js 2.53kb +0.00b 513.00ms -81.00ms 🚀
dist/ResourcedEmojiComponent.4495d16e.js 2.32kb +0.00b 515.00ms -81.00ms 🚀
dist/media-picker-analytics-error-boundary.a8ed833d.js 1.69kb +0.00b 513.00ms -81.00ms 🚀
dist/media-card-analytics-error-boundary.1e65f6fd.js 1.68kb +0.00b 513.00ms -81.00ms 🚀
dist/workerHasher.853c799b.js 1.67kb +0.00b 514.00ms -80.00ms 🚀
dist/media-viewer-analytics-error-boundary.62b79dc4.js 1.59kb +0.00b 513.00ms -81.00ms 🚀
dist/simpleHasher.3db92b55.js 642.00b +0.00b 513.00ms -81.00ms 🚀
dist/EmojiPickerComponent.39e7a3dc.js 467.00b +0.00b 513.00ms -81.00ms 🚀
dist/index.html 212.00b +0.00b 524.00ms -74.00ms 🚀

Three.js x4 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

Click here to view a detailed benchmark overview.

@mischnic mischnic force-pushed the runtime-async-common branch 3 times, most recently from 95ee0b8 to 1b9a483 Compare February 14, 2020 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2.0 alpha 3.2]TypeError: module.hot is undefined
2 participants