Generated commonJS files with undefined values #8764
Labels
🐛 Bug
🌳 Scope Hoisting
Stale Ignore
This issue is exempt from getting flagged as stale and autoremoved
🐛 bug report
When building using Parcel a package exporting a dependency from another package the resulting commonJS file contains undefined values.
🎛 Configuration (.babelrc, package.json, cli command)
json workspace-a
json workspace-b
🤔 Expected Behavior
The output commonJS file for workspace-b should be:
where
$3bJ5v$workspacea
variable is declared and used to accessfunctionA
.😯 Current Behavior
The output commonJS file for workspace-b is:
where
$3bJ5v$workspacea
variable is declared but not used and$5d4f15474cde7d38$re_export$functionA
is undefined.💁 Possible Solution
We have seen in another project they are using a patch to make everything working as expected.
Is this patch going to be released in the next version?
💻 Code Sample
A repo with a basic set-up using a patch version.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: