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
I'm trying to use react-virtuoso library in my project, but unfortunately Parcel produces invalid build output and it does not work. Here is the input code sample from react-virtuoso libraries output:
Look like Parcel incorrectly handles destructuring assignment here and produces multiple "_param1" (we can see above that e.g. domIO, followOutput are correct in output).
🐛 bug report
I'm trying to use react-virtuoso library in my project, but unfortunately Parcel produces invalid build output and it does not work. Here is the input code sample from react-virtuoso libraries output:
Building above code in my project, Parcel produces:
Look like Parcel incorrectly handles destructuring assignment here and produces multiple "_param1" (we can see above that e.g. domIO, followOutput are correct in output).
🎛 Configuration (.babelrc, package.json, cli command)
Default configuration (no .parcelrc in project)
Optimization disabled to prove it's not an issue with optimization. Looks like it's an issue with --no-scope-hoist
❌ parcel build ./index.html --no-optimize --no-scope-hoist
✅ parcel build ./index.html --no-optimize
✅ parcel serve ./index.html
react-virtuoso >=4.0.0
🤔 Expected Behavior
Parcel should produce correct output with --no-scope-hoist
😯 Current Behavior
Output is produced as above and does not work properly.
💁 Possible Solution
Don't know
🔦 Context
❌ I tried to use also parcel 2.8.3, but no luck.
✅ I tried to use legacy Parcel 1 and code works.
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: