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
Export functions only generate the getter for said function in transpiled SWC code, which is different than what is output by Babel, this is an issue for us as we are using the jasmine spyOn method which is not compatible with the SWC compiled code (see expected behavior)
Which is working fine with jasmine SpyOn method: spyOn(<moduleName>, "getSelectorByName")
which is not the code with the SWC transpile code which return the following error: getSelectorByName is not declared writable or has no setter
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
Export functions only generate the getter for said function in transpiled SWC code, which is different than what is output by Babel, this is an issue for us as we are using the jasmine spyOn method which is not compatible with the SWC compiled code (see expected behavior)
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.3.100&code=H4sIAAAAAAAAA0utKMgvKlFIK81LLsnMz1NITy0JTs1JTS7JL3Kq9EvMTdXgUgCCYqgYSESHS1OhGixalFpSWpSHImnNVQsAzfJPSVMAAAA%3D&config=H4sIAAAAAAAAA1WPSw7DMAhE9z6FxbrbbnqHHsJySeTIPwGRakW5e%2B3UTpsdzAw82JTWsLCFh95qWZtsiJHOvipcoph3VUBKRrbkssBtuMLNmoxnPKT964AYmlHaFPK9x8GnxDjiXQsuuqn8A20KmZD5GmxRE2ePV5zqSAjptR5mf6Qd2%2FB1W0hxYfglB%2FHcDo6fY1xoRbV%2FALu7P%2BkZAQAA
SWC Info output
Expected behavior
Babel return the following transpiled code.
Which is working fine with jasmine SpyOn method:
spyOn(<moduleName>, "getSelectorByName")
which is not the code with the SWC transpile code which return the following error:
getSelectorByName is not declared writable or has no setter
Actual behavior
Version
1.3.100
Additional context
No response
The text was updated successfully, but these errors were encountered: