Closed jimmydief closed 2 years ago
I really prefer this plugin for building smaller bundle size. Now this issue makes me disable it. Looking forward to a new release.
This was a tricky bug to resolve. Babel's Scope.push
method will happily push declarations before the call to the super constructor. Resolved in bb666824fa522ab88d29a86c7c5aa4d37c6afc1b
Came across an issue with async function class properties in a subclass. For this code:
The output is:
The
const _this = this;
line causes problems at runtime due to the access ofthis
prior to calling the superclass constructor.It seems like this could potentially have a resolution similar to https://github.com/babel/babel/issues/9609.
Plugin version: 0.8.15