swc-project / swc

Rust-based platform for the Web
https://swc.rs
Apache License 2.0
31.26k stars 1.23k forks source link

fix(es/resolver): Ignore `VarDecl` with `declare: true` #9734

Closed kdy1 closed 1 week ago

kdy1 commented 1 week ago

Description:

declare const MY_MAGIC_VARIABLE: string is not a variable declaration.

Related issue:

changeset-bot[bot] commented 1 week ago

⚠️ No Changeset found

Latest commit: 9c9c1817e8e32cb3a9d8563e66a1eb43b24fc90e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

codspeed-hq[bot] commented 1 week ago

CodSpeed Performance Report

Merging #9734 will not alter performance

Comparing kdy1:fix-const-declare (9c9c181) with main (92faf5b)

Summary

✅ 194 untouched benchmarks