babel / babel-polyfills

A set of Babel plugins that enable injecting different polyfills with different strategies in your compiled code.
MIT License
333 stars 60 forks source link

fix: Cannot polyfilled on optional chains #221

Closed liuxingbaoyu closed 3 weeks ago

liuxingbaoyu commented 4 weeks ago

Fixes: https://github.com/babel/babel/issues/16845

nicolo-ribaudo commented 4 weeks ago

@liuxingbaoyu @JLHwung I added a commit to also support usage-pure, could you take a look?

nicolo-ribaudo commented 4 weeks ago

Hold on, there are a few more bugs.

nicolo-ribaudo commented 4 weeks ago

Ok, it should be good now :)