Releases: calebeby/babel-plugin-un-cjs
Releases · calebeby/babel-plugin-un-cjs
v2.6.0
Minor Changes
-
428d52a
Thanks @calebeby! - Handle edge case: instance methods ofFunction.prototype
:If an imported binding only is referenced using properties of
Function.prototype
, this suggests that the imported binding itself is probably a function instead of a namespace, so we create a default import instead of a namespace import.var bind = require('function-bind') bind.call(Function.call, Object.prototype.hasOwnProperty)
to
import bind from 'function-bind' bind.call(Function.call, Object.prototype.hasOwnProperty)
v2.5.0
v2.4.0
v2.3.0
v2.2.1
Patch Changes
-
ec2f33b
Thanks @calebeby! - Handle changed babel output forexport * from ""
The change was introduced in babel PR babel/babel#11739. This was first released as babel v7.12.0. Both the old and new output are supported by babel-plugin-un-cjs