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

Properly visit member expressions #7228

Merged
merged 2 commits into from Nov 2, 2021
Merged

Conversation

mischnic
Copy link
Member

@mischnic mischnic commented Nov 1, 2021

Calling node.prop.fold_children_with if node.prop is an Expr means that fold_expr was never called, because it's only the Expr's children that are visited.

ak-editor was broken without scope hoisting because

import { foo, bar } from "./other";

print(foo[bar]);

was transformed into

var _other = require("./other");
print(_other.foo[bar]);

@height
Copy link

height bot commented Nov 1, 2021

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@parcel-benchmark
Copy link

parcel-benchmark commented Nov 1, 2021

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 2.35s -131.00ms 🚀
Cached 321.00ms -29.00ms 🚀

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 706.00ms -37.00ms 🚀
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 707.00ms -37.00ms 🚀
dist/modern/parcel.7cdb0fad.webp 102.94kb +0.00b 707.00ms -37.00ms 🚀
dist/legacy/index.96016b08.js 1.59kb +0.00b 999.00ms -80.00ms 🚀
dist/legacy/index.8aaa89c9.js 1.20kb +0.00b 1000.00ms -78.00ms 🚀
dist/modern/index.6be20f01.js 1.13kb +0.00b 999.00ms -80.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/index.html 826.00b +0.00b 1.24s +63.00ms ⚠️
dist/modern/index.html 749.00b +0.00b 1.24s +64.00ms ⚠️
dist/legacy/index.c1bc86aa.css 94.00b +0.00b 1.39s +81.00ms ⚠️
dist/modern/index.57a95cbe.css 94.00b +0.00b 1.39s +82.00ms ⚠️

React HackerNews ✅

Timings

Description Time Difference
Cold 11.86s +207.00ms
Cached 513.00ms -8.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/index.js 487.00kb +0.00b 6.62s +396.00ms ⚠️
dist/PermalinkedComment.62775cc6.js 4.20kb +0.00b 6.62s +395.00ms ⚠️
dist/UserProfile.1b7befb5.js 1.57kb +0.00b 6.62s +395.00ms ⚠️
dist/NotFound.e6c89571.js 429.00b +0.00b 6.62s +395.00ms ⚠️
dist/logo.c5bb83f1.png 246.00b +0.00b 6.56s +354.00ms ⚠️

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 1.27m -132.00ms
Cached 1.90s +131.00ms ⚠️

Cold Bundles

Bundle Size Difference Time Difference
dist/index.d173b989.js 693.74kb +0.00b 43.24s -15.46s 🚀
dist/editorView.88c79e9e.js 594.83kb +0.00b 43.24s -14.83s 🚀
dist/popup.64bc9a82.js 209.67kb +0.00b 43.24s -14.83s 🚀
dist/index.d7dbcd3a.js 145.62kb +0.00b 43.24s -15.46s 🚀
dist/Toolbar.e3ba4416.js 107.23kb +0.00b 43.24s -14.83s 🚀
dist/card.8ef34b4f.js 62.67kb +0.00b 43.24s -15.46s 🚀
dist/Modal.cd71eaf3.js 45.33kb +0.00b 43.24s -14.83s 🚀
dist/js.660b75db.js 17.25kb +0.00b 43.24s -14.83s 🚀
dist/ui.5d3f7adc.js 14.94kb +0.00b 43.24s -14.83s 🚀
dist/smartMediaEditor.48c8cf63.js 13.25kb +0.00b 43.24s -14.83s 🚀
dist/dropzone.e0209bf8.js 12.15kb +0.00b 43.24s -14.83s 🚀
dist/card.26823fa1.js 5.77kb +0.00b 43.24s -15.46s 🚀
dist/EmojiPickerComponent.0482d6c0.js 3.73kb +0.00b 43.24s -14.84s 🚀
dist/png-chunks-extract.5c9c0fb9.js 3.58kb +0.00b 43.24s -14.83s 🚀
dist/dropzone.55bef257.js 3.29kb +0.00b 43.24s -14.83s 🚀
dist/Modal.ecafad9e.js 3.15kb +0.00b 43.24s -15.46s 🚀
dist/clipboard.df70240c.js 2.93kb +0.00b 43.24s -14.83s 🚀
dist/ResourcedEmojiComponent.667554b4.js 2.12kb +0.00b 43.24s -14.83s 🚀
dist/browser.4e039ed7.js 1.69kb +0.00b 43.24s -14.83s 🚀
dist/media-card-analytics-error-boundary.c718a9a7.js 1.12kb +0.00b 43.24s -14.83s 🚀
dist/media-picker-analytics-error-boundary.8b2547e5.js 966.00b +0.00b 43.24s -14.83s 🚀
dist/media-card-analytics-error-boundary.30f51dac.js 962.00b +0.00b 43.24s -15.46s 🚀
dist/simpleHasher.fc0d6100.js 643.00b +0.00b 43.24s -14.82s 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/EmojiPickerComponent.2bc79859.js 146.67kb +0.00b 24.34s -11.92s 🚀
dist/esm.f1a592e5.js 33.15kb +0.00b 24.34s -11.92s 🚀
dist/DatePicker.f2994e45.js 22.98kb +0.00b 24.34s -11.92s 🚀
dist/js.660b75db.js 17.25kb +0.00b 44.90s -13.07s 🚀
dist/png-chunks-extract.5c9c0fb9.js 3.58kb +0.00b 44.90s -13.07s 🚀
dist/feedback.c7e69064.js 1.77kb +0.00b 24.34s -11.93s 🚀
dist/workerHasher.3639b1f9.js 1.63kb +0.00b 24.34s -11.92s 🚀
dist/heading6.a693146e.js 1.51kb +0.00b 24.34s -11.93s 🚀
dist/heading5.8bfafe21.js 1.38kb +0.00b 24.34s -11.93s 🚀
dist/expand.a44d10fe.js 1.29kb +0.00b 24.34s -11.92s 🚀

Three.js ✅

Timings

Description Time Difference
Cold 8.12s -106.00ms
Cached 432.00ms +13.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

Click here to view a detailed benchmark overview.

@mischnic mischnic force-pushed the member-expression-imported-prop branch from 068f960 to b686a30 Compare November 1, 2021 19:29
@mischnic mischnic merged commit ff07be5 into v2 Nov 2, 2021
@mischnic mischnic deleted the member-expression-imported-prop branch November 2, 2021 08:27
lettertwo added a commit that referenced this pull request Nov 15, 2021
* v2: (68 commits)
  Fix RangeError in `not export` error with other file type (#7295)
  Apply sourcemap in @parcel/transformer-typescript-tsc (#7287)
  Fix side effects glob matching (#7288)
  Fix changelog headings
  v2.0.1
  Changelog for v2.0.1
  Resolve GLSL relative to the importer, not the asset (#7263)
  fix: add @parcel/diagnostic as dependency of @parcel/transformer-typescript-types (#7248)
  Fixed missing "Parcel" export member in Module "@parcel/core" (#7250)
  Add script to sync engines with core version (#7207)
  Bump swc (#7216)
  Make Webpack loader detection regex dramatically faster (#7226)
  swc optimizer (#7212)
  Update esbuild in optimizer (#7233)
  Properly visit member expressions (#7228)
  Update to prettier 2 (#7209)
  Fix serve mode with target override and target source fields (#7187)
  Update package.json to include the repository (#7184)
  fix #6730: add transformer-raw as dependency of config-webextension (#7193)
  Log warning instead of crash if image optimizer fails (#7119)
  ...
lettertwo added a commit that referenced this pull request Nov 15, 2021
* v2: (68 commits)
  Fix RangeError in `not export` error with other file type (#7295)
  Apply sourcemap in @parcel/transformer-typescript-tsc (#7287)
  Fix side effects glob matching (#7288)
  Fix changelog headings
  v2.0.1
  Changelog for v2.0.1
  Resolve GLSL relative to the importer, not the asset (#7263)
  fix: add @parcel/diagnostic as dependency of @parcel/transformer-typescript-types (#7248)
  Fixed missing "Parcel" export member in Module "@parcel/core" (#7250)
  Add script to sync engines with core version (#7207)
  Bump swc (#7216)
  Make Webpack loader detection regex dramatically faster (#7226)
  swc optimizer (#7212)
  Update esbuild in optimizer (#7233)
  Properly visit member expressions (#7228)
  Update to prettier 2 (#7209)
  Fix serve mode with target override and target source fields (#7187)
  Update package.json to include the repository (#7184)
  fix #6730: add transformer-raw as dependency of config-webextension (#7193)
  Log warning instead of crash if image optimizer fails (#7119)
  ...
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

3 participants