Transforming dependencies with babelify breaks underscore.js
aknuds1 opened this issue ยท 1 comments
aknuds1 commented
Choose one: This is a ๐ bug report
Expected Behavior
Building an app depending on underscore.js (directly or indirectly) should work, also the build should be reasonably quick.
Current Behavior
Since bankai transforms dependencies with babelify, at least underscore.js as a dependency gets broken (due to global this
becoming undefined instead of window
or global
). The build also gets slowed down significantly (for me 5-6 times).
Possible Solution
Add option to enable or disable babelify on dependencies.
Context
It breaks my underscore.js dependency and slows down my build 5-6x.
goto-bus-stop commented