Scope hoisting const { a : b } = require("")
is not handled correctly
#6242
Labels
const { a : b } = require("")
is not handled correctly
#6242
🐛 bug report
If I try to bundle fs-extra with scope hoisting, the resulting code will throw an error during the runtime.
The issue is with this file
This gives this error that
The generated code (part of it) looks like this.
_makeDir
isn't defined in the last line.I tried to reproduce it with this minimal example, but the error looks different.
Gives:
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
😯 Current Behavior
💁 Possible Solution
Don't use scope hoisting on fs-extra
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: