Skip to content

Apply unresolved mark to inserted undefined identifiers#8151

Merged
devongovett merged 4 commits into
v2from
swc-cleanup
May 27, 2022
Merged

Apply unresolved mark to inserted undefined identifiers#8151
devongovett merged 4 commits into
v2from
swc-cleanup

Conversation

@mischnic

Copy link
Copy Markdown
Member

Fixes #8143

  • swc already has a type alias for (JsWord, SyntaxContext), so just use that instead of our own
  • Apply unresolved mark to inserted undefined identifiers. swc's DCE pass relies on this

@parcel-benchmark

parcel-benchmark commented May 27, 2022

Copy link
Copy Markdown

Benchmark Results

Kitchen Sink 🚨

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...

React HackerNews ✅

Timings

Description Time Difference
Cold 12.45s -298.00ms
Cached 544.00ms -34.00ms 🚀

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 2.12m -4.81s
Cached 3.16s -54.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/index.3a01a3a0.js 1.27mb -1.18kb 🚀 1.59m -3.33s

Cached Bundles

Bundle Size Difference Time Difference
dist/index.3a01a3a0.js 1.27mb -1.18kb 🚀 1.60m -2.87s

Three.js ✅

Timings

Description Time Difference
Cold 8.59s -184.00ms
Cached 335.00ms -9.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 9a5d48d into v2 May 27, 2022
@devongovett devongovett deleted the swc-cleanup branch May 27, 2022 14:15
gorakong pushed a commit that referenced this pull request Nov 3, 2022
* upstream/v2:
  Normalize object literal shorthand even when wrapped (#8155)
  add invalidateOnEnvChange to resolver (#8103)
  Apply unresolved mark to inserted `undefined` identifiers (#8151)
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.

Conditional require produces invalid output

3 participants