marko 6.0.16 → 6.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/translator/index.js +3 -0
- package/package.json +1 -1
package/dist/translator/index.js
CHANGED
@@ -4496,6 +4496,9 @@ function trackReferencesForBinding(babelBinding, binding) {
|
|
4496
4496
|
for (const referencePath of referencePaths) {
|
4497
4497
|
const referenceSection = getOrCreateSection(referencePath);
|
4498
4498
|
if (isSameOrChildSection(binding.section, referenceSection)) {
|
4499
|
+
if (binding.type === 4 /* local */ && referenceSection === binding.section) {
|
4500
|
+
continue;
|
4501
|
+
}
|
4499
4502
|
trackReference(referencePath, binding);
|
4500
4503
|
} else {
|
4501
4504
|
trackHoistedReference(referencePath, binding);
|