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
Parcel breaks code where a property on an object is accessed that has the same name as an enclosing function. In that case the property name is transformed to something like $b5397e630a15ea24$export$6a5cdcad01c973fa.
🐛 bug report
Parcel breaks code where a property on an object is accessed that has the same name as an enclosing function. In that case the property name is transformed to something like
$b5397e630a15ea24$export$6a5cdcad01c973fa
.🎛 Configuration (.babelrc, package.json, cli command)
Please see attached .zip file
🤔 Expected Behavior
!async function(){console.log({foo:"123"}?.foo)}();
-> logs "123" when ran😯 Current Behavior
!async function(){console.log({foo:"123"}?.$38da3cfda514bd25$export$6a5cdcad01c973fa)}();
-> logsundefined
when ran💁 Possible Solution
Make so that the property name no longer gets replaced
🔦 Context
Our code stopped working. Turns out this is why. Kudos to @carltheperson for debugging.
💻 Code Sample
parcel-broken-code.zip
run
yarn install
and thenyarn build
🌍 Your Environment
The text was updated successfully, but these errors were encountered: