You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
When use preset_env to fold ast of using
this.#
and||=
, for examplethis.#a ||= 1
, swc will panic atprivate should be removed by class_properties
.Discovery these after read the logic of swc:
preset_env
will usefolder
according to innerplugin.json
data andtarget
config.class_property
have been natively implemented , see plugin.json . Therefore, it will not be usedlogical_assignments
depends onclass_property
. So it will run into theunreachable!("private should be removed by class_properties")
If change the target to
chrome 73
or includeclass_property
when usepreset_env
, the code will run as normalInput code
Config
No response
Playground link
https://github.com/zhangpanweb/swc-private-assign-error
SWC Info output
No response
Expected behavior
preset_env
will work as normal, and not panicActual behavior
No response
Version
swc_common: 0.31.17
Additional context
No response
The text was updated successfully, but these errors were encountered: